[z3-five] Five 1.3 bug
Lennart Regebro
regebro at gmail.com
Sat Jan 7 19:26:05 CET 2006
I get this errors, more or less all the time: ;)
GlobalAdapterRegistry object has no attribute getAdapters.
The breaking code is this:
def getAdapters(self, objects, provided):
return self.adapters.getAdapters(objects, provided)
adapters is a property methdod:
def adapters(self):
return getGlobalSiteManager().adapters #XXX wrong
Huh? XXX wrong? Very helpful. :-P
In any case, I seem to get rid of the problem by doing:
def getAdapters(self, objects, provided):
return getGlobalSiteManager().getAdapters(objects, provided)
I haven't checked this much, so I have no idea of if this makes sense
or not. I only used Five 1.2 up to now....
--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
More information about the z3-five
mailing list