web/views/startup.py
changeset 2234 1fbcf202882d
parent 2181 94ca417b9b07
parent 2227 21c9b63a4730
child 2293 7ded2a1416e4
equal deleted inserted replaced
2209:2b91abd9f5a4 2234:1fbcf202882d
   192 
   192 
   193 class SchemaTabTextView(StartupView):
   193 class SchemaTabTextView(StartupView):
   194     id = 'schema-text'
   194     id = 'schema-text'
   195 
   195 
   196     def call(self):
   196     def call(self):
   197         self.w(u'<p>%s</p>' % _('This is the list of types defined in the data '
   197         rset = self.req.execute('Any X ORDERBY N WHERE X is CWEType, X name N, '
   198                                 'model ofin this application.'))
   198                                 'X final FALSE')
   199         self.w(u'<p>%s</p>' % _('<em>meta</em> is True for types that are defined by the '
   199         self.wview('table', rset, displayfilter=True)
   200                                 'framework itself (e.g. User and Group). '
       
   201                                 '<em>final</em> is True for types that can not be the '
       
   202                                 'subject of a relation (e.g. Int and String).'))
       
   203         rset = self.req.execute('Any X,M,F ORDERBY N WHERE X is CWEType, X name N, '
       
   204                                 'X meta M, X final F')
       
   205         self.wview('editable-table', rset, displayfilter=True)
       
   206 
   200 
   207 
   201 
   208 class ManagerSchemaPermissionsView(StartupView, management.SecurityViewMixIn):
   202 class ManagerSchemaPermissionsView(StartupView, management.SecurityViewMixIn):
   209     id = 'schema-security'
   203     id = 'schema-security'
   210     __select__ = StartupView.__select__ & match_user_groups('managers')
   204     __select__ = StartupView.__select__ & match_user_groups('managers')