cubicweb #715482 [reload/win32] reloading in dev mode fails in strange ways [resolved]

some things are probably not properly reloaded.

A typical failure (in the 3.5 branch) is the following :

  • display an entity related with an associated workflow
  • edit some reloadable file (e.g. an unrelated file under the entities package)
  • try to fire a transition on the displayed entity

The traceback I get is:

2010-02-23 10:41:31 - (cubicweb.web) ERROR: FieldNotFound('by_transition',)
Traceback (most recent call last):
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\application.py", line 331, in main_publish
   result = controller.publish(rset=rset)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\views\\basecontrollers.py", line 102, in publish
   rset=rset, view=view)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\cwvreg.py", line 189, in main_template
   res = self.render(oid, req, **kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\cwvreg.py", line 91, in render
   return obj.render(**kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\view.py", line 165, in render
   view_func(**context)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\views\\basetemplates.py", line 125, in call
   view.render(w=w)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\view.py", line165, in render
   view_func(**context)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\view.py", line 191, in call
   self.wview(self.id, rset, row=i, **kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\view.py", line 247, in wview
   self.view(__vid, rset, __fallback_vid, w=self.w, **kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\appobject.py",line 420, in view
   rset=rset, **kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\cwvreg.py", line 91, in render
   return obj.render(**kwargs)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\view.py", line165, in render
   view_func(**context)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubes\\pegase\\views\\run.py", line 122, in cell_call
   super(RunExecChangeStateFormView, self).cell_call(row, col)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\views\\workflow.py", line 48, in cell_call
   form = self.get_form(entity, transition)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\views\\workflow.py", line 73, in get_form
   subform.field_by_name('by_transition').widget = fwdgs.HiddenInput()
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\views\\autoform.py", line 141, in field_by_name
   return super(AutomaticEntityForm, cls_or_self).field_by_name(name, role)
 File "c:\\Documents and Settings\\alf\\My Documents\\Pylos\\cubicweb\\bin\\..\\..\\cubicweb\\web\\form.py", line 247, in field_by_name
   raise FieldNotFound(name)
FieldNotFound: by_transition
prioritynormal
typebug
done in3.8.2
load1.000
load left0.000
closed by<not specified>