appobject.py
changeset 3376 f5c69485381f
parent 2968 0e3460341023
child 3396 fb261afd49cd
equal deleted inserted replaced
3375:ebb11fa58ab9 3376:f5c69485381f
   206 
   206 
   207     The following attributes should be set on concret appobject classes:
   207     The following attributes should be set on concret appobject classes:
   208     :__registry__:
   208     :__registry__:
   209       name of the registry for this object (string like 'views',
   209       name of the registry for this object (string like 'views',
   210       'templates'...)
   210       'templates'...)
   211     :__id__:
   211     :__regid__:
   212       object's identifier in the registry (string like 'main',
   212       object's identifier in the registry (string like 'main',
   213       'primary', 'folder_box')
   213       'primary', 'folder_box')
   214     :__select__:
   214     :__select__:
   215       class'selector
   215       class'selector
   216 
   216 
   237       if a result set is set and the context is about a particular cell in the
   237       if a result set is set and the context is about a particular cell in the
   238       result set, and not the result set as a whole, specify the col number we
   238       result set, and not the result set as a whole, specify the col number we
   239       are interested in, else None
   239       are interested in, else None
   240     """
   240     """
   241     __registry__ = None
   241     __registry__ = None
   242     __id__ = None
   242     __regid__ = None
   243     __select__ = yes()
   243     __select__ = yes()
   244 
   244 
   245     @classmethod
   245     @classmethod
   246     def __registered__(cls, registry):
   246     def __registered__(cls, registry):
   247         """called by the registry when the appobject has been registered.
   247         """called by the registry when the appobject has been registered.