[deprecation] kill a remaining 3.6 warning oldstable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 28 Apr 2011 15:24:11 +0200
brancholdstable
changeset 7265 8eedf71f280e
parent 7254 c0278ad81823
child 7266 f625097d1e99
[deprecation] kill a remaining 3.6 warning
web/views/startup.py
--- a/web/views/startup.py	Wed Apr 27 09:54:22 2011 +0200
+++ b/web/views/startup.py	Thu Apr 28 15:24:11 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),