--- a/web/views/editforms.py Mon Aug 03 15:57:05 2009 +0200
+++ b/web/views/editforms.py Mon Aug 03 16:31:30 2009 +0200
@@ -308,7 +308,7 @@
"""creation view for an entity"""
etype = kwargs.pop('etype', self.req.form.get('etype'))
try:
- entity = self.vreg.etype_class(etype)(self.req)
+ entity = self.vreg['etypes'].etype_class(etype)(self.req)
except:
self.w(self.req._('no such entity type %s') % etype)
else:
@@ -497,7 +497,7 @@
:param role: the role played by the `peid` in the relation
"""
try:
- entity = self.vreg.etype_class(etype)(self.req, None, None)
+ entity = self.vreg['etypes'].etype_class(etype)(self.req, None, None)
except:
self.w(self.req._('no such entity type %s') % etype)
return