equal
deleted
inserted
replaced
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) |