appobject.py
changeset 2829 054a8805da52
parent 2825 87ac03aed941
child 2833 9aa47a3c0dfe
equal deleted inserted replaced
2828:306fe72bfd07 2829:054a8805da52
   202 
   202 
   203     The following attributes should be set on concret appobject classes:
   203     The following attributes should be set on concret appobject classes:
   204     :__registry__:
   204     :__registry__:
   205       name of the registry for this object (string like 'views',
   205       name of the registry for this object (string like 'views',
   206       'templates'...)
   206       'templates'...)
   207     :id:
   207     :__id__:
   208       object's identifier in the registry (string like 'main',
   208       object's identifier in the registry (string like 'main',
   209       'primary', 'folder_box')
   209       'primary', 'folder_box')
   210     :__select__:
   210     :__select__:
   211       class'selector
   211       class'selector
   212 
   212 
   233       if a result set is set and the context is about a particular cell in the
   233       if a result set is set and the context is about a particular cell in the
   234       result set, and not the result set as a whole, specify the col number we
   234       result set, and not the result set as a whole, specify the col number we
   235       are interested in, else None
   235       are interested in, else None
   236     """
   236     """
   237     __registry__ = None
   237     __registry__ = None
   238     id = None
   238     __id__ = None
   239     __select__ = yes()
   239     __select__ = yes()
   240 
   240 
   241     @classmethod
   241     @classmethod
   242     def __registered__(cls, registry):
   242     def __registered__(cls, registry):
   243         """called by the registry when the appobject has been registered.
   243         """called by the registry when the appobject has been registered.