[Zope3-checkins]
SVN: Zope3/branches/srichter-blow-services/src/zope/app/component/bbb/registration.py
Removed some XXX.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Sat Feb 12 21:48:51 EST 2005
Log message for revision 29130:
Removed some XXX.
Changed:
U Zope3/branches/srichter-blow-services/src/zope/app/component/bbb/registration.py
-=-
Modified: Zope3/branches/srichter-blow-services/src/zope/app/component/bbb/registration.py
===================================================================
--- Zope3/branches/srichter-blow-services/src/zope/app/component/bbb/registration.py 2005-02-13 02:16:56 UTC (rev 29129)
+++ Zope3/branches/srichter-blow-services/src/zope/app/component/bbb/registration.py 2005-02-13 02:48:50 UTC (rev 29130)
@@ -75,43 +75,17 @@
return True
def __nonzero__(self):
- # XXX: Needs to be done
- return bool(self.data)
+ return True
def info(self):
- # XXX: Needs to be done
- result = [{'active': False,
- 'registration': registration,
- }
- for registration in data
- ]
+ # This registration stack stub does not really know about the
+ # registration it manages. Thus the registration component is None
+ # here. It might be that someone has a problem with this code, but I
+ # am sceptical that someone used this method manually.
+ return [{'active': True,
+ 'registration': None}]
- if result:
- result[0]['active'] = True
- return [r for r in result if r['registration'] is not None]
-
- def data(self):
- # XXX: Note done
- # Need to convert old path-based data to object-based data
- # It won't affect new objects that get instance-based data attrs
- # on construction.
-
- data = []
- sm = zapi.getServices(self)
- for path in self._data:
- if isinstance(path, basestring):
- try:
- data.append(zapi.traverse(sm, path))
- except KeyError:
- # ignore objects we can't get to
- raise # for testing
- else:
- data.append(path)
-
- return tuple(data)
-
-
NULL_COMPONENT = object()
class BBBComponentRegistration(object):
More information about the Zope3-Checkins
mailing list