appobject.py
changeset 2825 87ac03aed941
parent 2822 f26578339214
child 2829 054a8805da52
equal deleted inserted replaced
2824:3455f72010fe 2825:87ac03aed941
   211       class'selector
   211       class'selector
   212 
   212 
   213     Moreover, the `__abstract__` attribute may be set to True to indicate
   213     Moreover, the `__abstract__` attribute may be set to True to indicate
   214     that a appobject is abstract and should not be registered.
   214     that a appobject is abstract and should not be registered.
   215 
   215 
   216     At registration time, the following attributes are set on the class:
       
   217     :vreg:
       
   218       the instance's registry
       
   219     :schema:
       
   220       the instance's schema
       
   221     :config:
       
   222       the instance's configuration
       
   223 
       
   224     At selection time, the following attributes are set on the instance:
   216     At selection time, the following attributes are set on the instance:
   225     :req:
   217 
       
   218     :cw_req:
   226       current request
   219       current request
   227     :rset:
   220     :cw_extra_kwargs:
       
   221       other received arguments
       
   222 
       
   223     only if rset is found in arguments (in which case rset/row/col will be
       
   224     removed from cwextra_kwargs):
       
   225 
       
   226     :cw_rset:
   228       context result set or None
   227       context result set or None
   229     :row:
   228     :cw_row:
   230       if a result set is set and the context is about a particular cell in the
   229       if a result set is set and the context is about a particular cell in the
   231       result set, and not the result set as a whole, specify the row number we
   230       result set, and not the result set as a whole, specify the row number we
   232       are interested in, else None
   231       are interested in, else None
   233     :col:
   232     :cw_col:
   234       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
   235       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
   236       are interested in, else None
   235       are interested in, else None
   237     """
   236     """
   238     __registry__ = None
   237     __registry__ = None