equal
deleted
inserted
replaced
266 for propid, pdef in pdefs.items(): |
266 for propid, pdef in pdefs.items(): |
267 pdef = pdef.copy() # may be shared |
267 pdef = pdef.copy() # may be shared |
268 pdef['default'] = getattr(cls, propid, pdef['default']) |
268 pdef['default'] = getattr(cls, propid, pdef['default']) |
269 pdef['sitewide'] = getattr(cls, 'site_wide', pdef.get('sitewide')) |
269 pdef['sitewide'] = getattr(cls, 'site_wide', pdef.get('sitewide')) |
270 registry.vreg.register_property(cls._cwpropkey(propid), **pdef) |
270 registry.vreg.register_property(cls._cwpropkey(propid), **pdef) |
|
271 assert callable(cls.__select__), obj |
271 return cls |
272 return cls |
272 |
273 |
273 def __init__(self, req, **extra): |
274 def __init__(self, req, **extra): |
274 super(AppObject, self).__init__() |
275 super(AppObject, self).__init__() |
275 self._cw = req |
276 self._cw = req |