entities/__init__.py
changeset 6039 6e84db1b3e44
parent 5557 1a534c596bff
child 7143 0517e3bf0b84
--- a/entities/__init__.py	Wed Jul 28 16:31:32 2010 +0200
+++ b/entities/__init__.py	Fri Jul 30 10:02:31 2010 +0200
@@ -35,6 +35,11 @@
     __regid__ = 'Any'
     __implements__ = ()
 
+    @classmethod
+    def cw_create_url(cls, req, **kwargs):
+        """ return the url of the entity creation form for this entity type"""
+        return req.build_url('add/%s' % cls.__regid__, **kwargs)
+
     # meta data api ###########################################################
 
     def dc_title(self):