[kforge-dev] Error in kforge trunk related to creation of trac service via web user interface

Rufus Pollock rufus.pollock at okfn.org
Fri Aug 25 13:28:15 UTC 2006


When I try to create a trac service via the web interfact I get the 
following error:

> There's been an error:
> 
> Traceback (most recent call last):
> 
> File
> "/usr/lib/python2.4/site-packages/django-1.0.0-py2.4.egg/django/core/handlers/base.py",
> line 63, in get_response return callback(request, **param_dict)
> 
> File
> "/home/kforge/test.kforgeproject.com/system/lib/python/kforge/django/apps/kui/views/service.py",
> line 198, in extnCreate return view.getResponse()
> 
> File "/usr/lib/python2.4/site-packages/dm/view/base.py", line 367, in
> getResponse self.takeAction()
> 
> File "/usr/lib/python2.4/site-packages/dm/view/base.py", line 641, in
> takeAction self.requestParams = self.getInitialParams()
> 
> File "/usr/lib/python2.4/site-packages/dm/view/base.py", line 802, in
> getInitialParams objectRegister = self.getManipulatedObjectRegister()
> 
> 
> File
> "/home/kforge/test.kforgeproject.com/system/lib/python/kforge/django/apps/kui/views/service.py",
> line 131, in getManipulatedObjectRegister return
> service.plugin.getExtnRegister()
> 
> AttributeError: 'NoneType' object has no attribute 'plugin'

Relevant method is:

     def getManipulatedObjectRegister(self):
         service = self.getAssociationObject()
         return service.plugin.getExtnRegister()

getAssociatedObject is defined in dm.view.base.AbstractHasManyView where 
it is set to None in the __init__ method. I can't see it being set 
anywhere else. John, I know you wrote this section of the code so I 
wondered if you knew what was going on here and what should be fixed 
(would be useful to know what an associationObject was or was supposed 
to do -- some documentation on that class might be useful ...).

Regards,

Rufus




More information about the kforge-dev mailing list