equal
deleted
inserted
replaced
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(): |