[Mpuls-commits] r2088 - wasko/branches/2.0/jmdweb/controllers
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Mar 23 15:25:24 CET 2010
Author: torsten
Date: 2010-03-23 15:25:23 +0100 (Tue, 23 Mar 2010)
New Revision: 2088
Removed:
wasko/branches/2.0/jmdweb/controllers/waska.py
Log:
* jmdweb/controllers/waska.py: Deleted. All functionallity is included
in mpuls.py controller in mpulsweb
Deleted: wasko/branches/2.0/jmdweb/controllers/waska.py
===================================================================
--- wasko/branches/2.0/jmdweb/controllers/waska.py 2010-03-23 14:13:34 UTC (rev 2087)
+++ wasko/branches/2.0/jmdweb/controllers/waska.py 2010-03-23 14:25:23 UTC (rev 2088)
@@ -1,105 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2007, 2008, 2010 Intevation GmbH, Germany, <info at intevation.de>
-#
-# This file is part of mpuls WASKA (CoMPUter-based case fiLeS -
-# Web-Anwendungs-Server fuer Kompetenzagenturen).
-#
-# mpuls WASKA is free software: you can redistribute it and/or modify it under
-# the terms of the GNU Affero General Public License as published by the
-# Free Software Foundation, either version 3 of the License, or (at your
-# option) any later version.
-#
-# mpuls WASKA is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
-# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
-# License for more details.
-#
-# You should have received a copy of the GNU Affero General Public
-# License along with mpuls WASKA. If not, see <http://www.gnu.org/licenses/>.
-#
-# mpuls WASKA has been developed on behalf of the
-# Projekttraeger im Deutschen Zentrum fuer Luft- und Raumfahrt e.V. (PT-DLR)
-# within the programme Kompetenzagenturen (Durchfuehrungsphase) funded by
-# the Bundesministerium fuer Familie, Senioren, Frauen und Jugend and
-# European Social Fund resources.
-#
-# Authors:
-# Torsten Irländer <torsten.irlaender at intevation.de>
-# Sascha L. Teichmann <teichmann at intevation.de>
-#
-
-import logging
-import md5
-
-from mpulsweb.controllers.mpuls import MpulsController, get_newslist, \
- get_global_appointments
-from mpulsweb.controllers.auth import AuthController
-
-from jmdweb.lib.base import BaseController, c, g, h, redirect_to, render, \
- request, response, session
-from mpulsweb.lib.security import checkRole
-from jmdweb.model.appointment import MaxSaveTimeReminderOverview, \
- CaseAppointmentOverview, GlobalAppointmentOverview, CaseReminderOverview
-
-
-log = logging.getLogger(__name__)
-
-
-def get_remindlist():
- """Return an AppointmentOverview instance with reminders.
- The overview always contains the max save time reminders. For case
- managers it also contains the case reminders.
- """
- remindlist = MaxSaveTimeReminderOverview()
- if h.hasRole(['cm_ka']):
- remindlist.join(CaseReminderOverview())
- remindlist.sort()
- return remindlist
-
-def get_case_appointments():
- return CaseAppointmentOverview()
-
-MARK_NEWS_AS_READ_CONFIRM = u"""Nachricht als gelesen markieren"""
-MARK_NEWS_AS_READ_CONFIRM_TEXT = u"""\
-Wollen Sie die Nachricht wirklich als gelesen markieren?
-Sie wird dadurch dauerhaft aus der Übersicht entfernt."""
-
-
-class WaskaController(MpulsController):
-
- def index(self):
- redirect_to(action='start')
-
- @checkRole(('admin_ka', 'cm_ka', 'pb_ka', 'pt_dlr'))
- def start(self):
- user = session['USER_AUTHORIZED']
-
- # LOAD REMINDERS (maxsavetime)
- if g.mpuls_config.is_enabled('case-module', 'reminders'):
- log.debug('Loading reminder list')
- c.remindlist = get_remindlist()
-
- # LOAD APPOINTMENTS
- if g.mpuls_config.is_enabled('module', 'appointments'):
- # Global appointments
- log.debug('Loading global appointment list')
- c.globalappointmentlist = get_global_appointments()
- if g.mpuls_config.is_enabled('case-module', 'appointments'):
- # Case appointments
- log.debug('Loading case appointment list')
- c.appointmentlist = get_case_appointments()
-
- # LOAD NEWS
- if g.mpuls_config.is_enabled('module', 'news'):
- log.debug('Loading news list')
- c.news = get_newslist(user)
- return render('/start/start.mako')
-
- def help(self):
- return render('/start/help.mako')
-
- def info(self):
- return render('/start/responsible.mako')
-
-# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list