web/views/startup.py
branchstable
changeset 7270 5a1e9b90b5c4
parent 7265 8eedf71f280e
child 7681 32c4c9bab046
--- a/web/views/startup.py	Thu Apr 28 10:11:14 2011 +0200
+++ b/web/views/startup.py	Thu Apr 28 15:29:21 2011 +0200
@@ -125,7 +125,7 @@
     def create_links(self):
         self.w(u'<ul class="createLink">')
         for etype in self.add_etype_links:
-            eschema = self.schema.eschema(etype)
+            eschema = self._cw.vreg.schema.eschema(etype)
             if eschema.has_perm(self._cw, 'add'):
                 self.w(u'<li><a href="%s">%s</a></li>' % (
                         self._cw.build_url('add/%s' % eschema),