diff -r 672acc730ce5 -r d628defebc17 goa/appobjects/dbmgmt.py --- a/goa/appobjects/dbmgmt.py Thu May 14 10:24:56 2009 +0200 +++ b/goa/appobjects/dbmgmt.py Thu May 14 11:38:40 2009 +0200 @@ -54,8 +54,8 @@ values.append('__session=%s' % cookie['__session'].value) self.w(u"

pass this flag to the client: --cookie='%s'

" % html_escape('; '.join(values))) - - + + class ContentInit(StartupView): """special management view to initialize content of a repository, @@ -74,7 +74,7 @@ status['stepid'] = stepid Put(status) self.msg(msg) - + def call(self): status = _get_status('creation') if status.get('finished'): @@ -149,7 +149,7 @@ 'delete all datastore content so process can be ' 'reinitialized' % html_escape(self.req.base_url())) Put(status) - + @property @cached def _migrhandler(self): @@ -164,12 +164,12 @@ def continue_link(self): self.w(u'continue
' % html_escape(self.req.url())) - + class ContentClear(StartupView): id = 'contentclear' __select__ = none_rset() & match_user_groups('managers') skip_etypes = ('CWGroup', 'CWUser') - + def call(self): # XXX should use unsafe_execute with all hooks deactivated # XXX step by catching datastore errors?