--- a/web/views/startup.py Tue Dec 08 16:46:56 2009 +0100
+++ b/web/views/startup.py Tue Dec 08 16:50:36 2009 +0100
@@ -45,7 +45,7 @@
def _main_index(self):
req = self._cw
manager = req.user.matching_groups('managers')
- if not manager and 'Card' in self._cw.schema:
+ if not manager and 'Card' in self._cw.vreg.schema:
rset = self._cw.execute('Card X WHERE X wikiid "index"')
else:
rset = None
@@ -55,7 +55,7 @@
self.entities()
self.w(u'<div class="hr"> </div>')
self.startup_views()
- if manager and 'Card' in self._cw.schema:
+ if manager and 'Card' in self._cw.vreg.schema:
self.w(u'<div class="hr"> </div>')
if rset:
href = rset.get_entity(0, 0).absolute_url(vid='edition')
@@ -91,7 +91,7 @@
xml_escape(v.url()), xml_escape(self._cw._(v.title).capitalize())))
def entities(self):
- schema = self._cw.schema
+ schema = self._cw.vreg.schema
self.w(u'<h4>%s</h4>\n' % self._cw._('The repository holds the following entities'))
manager = self._cw.user.matching_groups('managers')
self.w(u'<table class="startup">')
@@ -154,5 +154,5 @@
title = _('view_index')
def display_folders(self):
- return 'Folder' in self._cw.schema and self._cw.execute('Any COUNT(X) WHERE X is Folder')[0][0]
+ return 'Folder' in self._cw.vreg.schema and self._cw.execute('Any COUNT(X) WHERE X is Folder')[0][0]