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