entities/__init__.py
changeset 10095 200bd6a601dc
parent 10019 c4a5865989ee
child 10251 2daa5c6dea4d
child 10396 33e44293b0eb
equal deleted inserted replaced
10094:954765f57fb6 10095:200bd6a601dc
    32     """
    32     """
    33     __regid__ = 'Any'
    33     __regid__ = 'Any'
    34 
    34 
    35     @classproperty
    35     @classproperty
    36     def cw_etype(cls):
    36     def cw_etype(cls):
    37         """entity type as a string"""
    37         """entity type as a unicode string"""
    38         return cls.__regid__
    38         return unicode(cls.__regid__)
    39 
    39 
    40     @classmethod
    40     @classmethod
    41     def cw_create_url(cls, req, **kwargs):
    41     def cw_create_url(cls, req, **kwargs):
    42         """ return the url of the entity creation form for this entity type"""
    42         """ return the url of the entity creation form for this entity type"""
    43         return req.build_url('add/%s' % cls.__regid__, **kwargs)
    43         return req.build_url('add/%s' % cls.__regid__, **kwargs)