view.py
changeset 4045 f4a52abb6f4f
parent 3998 94cc7cad3d2d
child 4059 f1da1a7ef29b
--- a/view.py	Tue Dec 08 16:46:56 2009 +0100
+++ b/view.py	Tue Dec 08 16:50:36 2009 +0100
@@ -201,7 +201,7 @@
         return True
 
     def is_primary(self):
-        return self.extra_kwargs.get('is_primary', self.__regid__ == 'primary')
+        return self.cw_extra_kwargs.get('is_primary', self.__regid__ == 'primary')
 
     def url(self):
         """return the url associated with this view. Should not be
@@ -214,7 +214,7 @@
         coltypes = rset.column_types(0)
         if len(coltypes) == 1:
             etype = iter(coltypes).next()
-            if not self._cw.schema.eschema(etype).final:
+            if not self._cw.vreg.schema.eschema(etype).final:
                 if len(rset) == 1:
                     entity = rset.get_entity(0, 0)
                     return entity.absolute_url(vid=self.__regid__)