goa/appobjects/dbmgmt.py
branchtls-sprint
changeset 1398 5fe84a5f7035
parent 742 99115e029dca
child 1802 d628defebc17
equal deleted inserted replaced
1397:6cbc7bc8ea6d 1398:5fe84a5f7035
   166 
   166 
   167         
   167         
   168 class ContentClear(StartupView):
   168 class ContentClear(StartupView):
   169     id = 'contentclear'
   169     id = 'contentclear'
   170     __select__ = none_rset() & match_user_groups('managers')
   170     __select__ = none_rset() & match_user_groups('managers')
   171     skip_etypes = ('EGroup', 'EUser')
   171     skip_etypes = ('CWGroup', 'CWUser')
   172     
   172     
   173     def call(self):
   173     def call(self):
   174         # XXX should use unsafe_execute with all hooks deactivated
   174         # XXX should use unsafe_execute with all hooks deactivated
   175         # XXX step by catching datastore errors?
   175         # XXX step by catching datastore errors?
   176         for eschema in self.schema.entities():
   176         for eschema in self.schema.entities():