entities/__init__.py
changeset 6039 6e84db1b3e44
parent 5557 1a534c596bff
child 7143 0517e3bf0b84
equal deleted inserted replaced
6033:09db6f4619c9 6039:6e84db1b3e44
    32     """an entity instance has e_schema automagically set on the class and
    32     """an entity instance has e_schema automagically set on the class and
    33     instances have access to their issuing cursor
    33     instances have access to their issuing cursor
    34     """
    34     """
    35     __regid__ = 'Any'
    35     __regid__ = 'Any'
    36     __implements__ = ()
    36     __implements__ = ()
       
    37 
       
    38     @classmethod
       
    39     def cw_create_url(cls, req, **kwargs):
       
    40         """ return the url of the entity creation form for this entity type"""
       
    41         return req.build_url('add/%s' % cls.__regid__, **kwargs)
    37 
    42 
    38     # meta data api ###########################################################
    43     # meta data api ###########################################################
    39 
    44 
    40     def dc_title(self):
    45     def dc_title(self):
    41         """return a suitable *unicode* title for this entity"""
    46         """return a suitable *unicode* title for this entity"""