diff -r c9283c3102ce -r b53e1cdb0398 app/soc/views/models/site.py --- a/app/soc/views/models/site.py Thu Jun 04 22:08:11 2009 +0200 +++ b/app/soc/views/models/site.py Thu Jun 04 22:26:24 2009 +0200 @@ -46,10 +46,6 @@ """View methods for the Document model. """ - DEF_DOWN_FOR_MAINTENANCE_MSG = ugettext("Down for maintenance") - DEF_NOT_IN_MAINTENANCE_MSG = ugettext( - "The site is currently not in maintenance mode.") - def __init__(self, params=None): """Defines the fields and methods required for the base View class to provide the user with list, public, create, edit and delete views. @@ -102,10 +98,6 @@ patterns += [(r'^$', 'soc.views.models.%(module_name)s.main_public', page_name)] - page_name = "Maintenance" - patterns += [(r'^maintenance$', - 'soc.views.models.%(module_name)s.maintenance', page_name)] - page_name = "Edit Site" patterns += [(r'^%(url_name)s/(?Pedit)$', 'soc.views.models.%(module_name)s.main_edit', @@ -159,29 +151,6 @@ params = dicts.merge(params, new_params) return super(View, self).getSidebarMenus(id, user, params=params) - def maintenance(self, request, page_name): - """Returns a 'down for maintenance' view. - """ - - context = responses.getUniversalContext(request) - context['page_name'] = page_name - - notice = context.pop('site_notice') - - if not notice: - context['body_content'] = self.DEF_NOT_IN_MAINTENANCE_MSG - else: - context['body_content'] = notice - context['header_title'] = self.DEF_DOWN_FOR_MAINTENANCE_MSG - context['sidebar_menu_items'] = [ - {'heading': self.DEF_DOWN_FOR_MAINTENANCE_MSG, - 'group': ''}, - ] - - template = 'soc/base.html' - - return responses.respond(request, template, context=context) - def mainPublic(self, request, page_name=None, **kwargs): """Displays the main site settings page. @@ -230,5 +199,4 @@ export = decorators.view(view.export) main_public = decorators.view(view.mainPublic) main_edit = decorators.view(view.mainEdit) -maintenance = decorators.view(view.maintenance) home = decorators.view(view.home)