cubicweb #2807720 traceback in call_service (when synchronous) [done]

2013-04-09 13:24:11 - (cubicweb.web) ERROR: an exception occurred while calling js_view([]): 'NoneType' object has no attribute 'source'
Traceback (most recent call last):
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/ajaxcontroller.py", line 143, in publish
   result = func(*args)
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/ajaxcontroller.py", line 284, in __call__
   return self.serialize(implementation(self, *args, **kwargs))
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/ajaxcontroller.py", line 375, in view
   return self._call_view(viewobj, paginate=req.form.pop('paginate', False))
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/ajaxcontroller.py", line 246, in _call_view
   view.render(**kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 176, in render
   view_func(**context)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 387, in call
   super(EntityView, self).call(**kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 226, in call
   self.cell_call(row=0, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 390, in cell_call
   self.entity_call(self.cw_rset.get_entity(row, col), **kwargs)
 File "/usr/share/cubicweb/cubes/vcreview/views/primary.py", line 91, in entity_call
   tip.view('primary', w=self.w)
 File "/usr/lib/python2.6/dist-packages/cubicweb/entity.py", line 666, in view
   return view.render(row=self.cw_row, col=self.cw_col, w=w, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 176, in render
   view_func(**context)
 File "/usr/lib/python2.6/dist-packages/cubicweb/view.py", line 390, in cell_call
   self.entity_call(self.cw_rset.get_entity(row, col), **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/primary.py", line 121, in entity_call
   self.render_entity(entity)
 File "/usr/lib/python2.6/dist-packages/cubicweb/web/views/primary.py", line 148, in render_entity
   self.render_entity_relations(entity)
 File "/usr/share/cubicweb/cubes/vcsfile/views/primary.py", line 292, in render_entity_relations
   patch = rev.export()
 File "/usr/share/cubicweb/cubes/vcsfile/entities.py", line 233, in export
   nodeid=self.changeset)
 File "/usr/lib/python2.6/dist-packages/cubicweb/dbapi.py", line 371, in call_service
   return self.cnx.call_service(regid, async, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/dbapi.py", line 543, in decorator
   return func(self, *args, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/dbapi.py", line 605, in call_service
   return self._repo.call_service(self.sessionid, regid, async, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/repository.py", line 886, in call_service
   return self._call_service_with_session(session, regid, async, **kwargs)
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/repository.py", line 902, in _call_service_with_session
   return service.call(**kwargs)
 File "/usr/share/cubicweb/cubes/vcsfile/sobjects.py", line 19, in call
   if repo.type != 'mercurial':
 File "/usr/lib/python2.6/dist-packages/cubicweb/entity.py", line 1486, in __get__
   return eobj.cw_attr_value(self._attrname)
 File "/usr/lib/python2.6/dist-packages/cubicweb/entity.py", line 966, in cw_attr_value
   rset = self._cw.execute(rql, {'x': self.eid})
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/session.py", line 877, in execute
   rset = self._execute(self, rql, kwargs, build_descr)
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 734, in execute
   plan = self.plan_factory(rqlst, args, session)
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 648, in plan_factory
   return ExecutionPlan(self, rqlst, args, session)
 File "/usr/lib/python2.6/dist-packages/cubicweb/server/querier.py", line 175, in __init__
   self.syssource = session.cnxset.source('system')
AttributeError: 'NoneType' object has no attribute 'source'
priorityimportant
typebug
done in3.16.3
load0.500
load left0.000
closed by#ad3a1ba9ea74 [service] make sure synchronous call_service has a cnxset
patch[service] make sure synchronous call_service has a cnxset [applied]