[Mpuls-commits] r2827 - in base/trunk: . mpulsweb/controllers mpulsweb/lib mpulsweb/public/images/icons mpulsweb/public/images/svg mpulsweb/templates mpulsweb/templates/administration mpulsweb/templates/administration/dialogs mpulsweb/templates/annotations mpulsweb/templates/appointments mpulsweb/templates/auth mpulsweb/templates/casebundle mpulsweb/templates/casebundle/dialogs mpulsweb/templates/casemanagement mpulsweb/templates/casemanagement/dialogs mpulsweb/templates/dialogs mpulsweb/templates/documents mpulsweb/templates/documents/dialogs mpulsweb/templates/evaluation mpulsweb/templates/formularpage mpulsweb/templates/home mpulsweb/templates/logbook mpulsweb/templates/logbook/dialogs mpulsweb/templates/phase mpulsweb/templates/phase/dialogs mpulsweb/templates/privacy mpulsweb/templates/privacy/default mpulsweb/templates/privacy/dialogs mpulsweb/templates/repeatgroup/dialogs mpulsweb/templates/settings mpulsweb/templates/settings/dialogs mpulsweb/templates/tags mpulsweb/templates/usersettings

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon May 31 12:04:31 CEST 2010


Author: torsten
Date: 2010-05-31 12:04:21 +0200 (Mon, 31 May 2010)
New Revision: 2827

Added:
   base/trunk/mpulsweb/public/images/icons/validity-0-22.png
   base/trunk/mpulsweb/public/images/icons/validity-1-22.png
   base/trunk/mpulsweb/public/images/icons/validity-2-22.png
   base/trunk/mpulsweb/public/images/icons/validity-3-22.png
   base/trunk/mpulsweb/public/images/icons/validity-4-22.png
   base/trunk/mpulsweb/public/images/icons/validity-5-22.png
   base/trunk/mpulsweb/public/images/svg/validity-1.svg
   base/trunk/mpulsweb/public/images/svg/validity.svg
Modified:
   base/trunk/ChangeLog
   base/trunk/mpulsweb/controllers/administration.py
   base/trunk/mpulsweb/controllers/appointment.py
   base/trunk/mpulsweb/controllers/case.py
   base/trunk/mpulsweb/controllers/case_bundle.py
   base/trunk/mpulsweb/controllers/caseappointment.py
   base/trunk/mpulsweb/controllers/casedocument.py
   base/trunk/mpulsweb/controllers/document.py
   base/trunk/mpulsweb/controllers/logbook.py
   base/trunk/mpulsweb/controllers/news.py
   base/trunk/mpulsweb/controllers/privacy.py
   base/trunk/mpulsweb/controllers/repeatgroup.py
   base/trunk/mpulsweb/controllers/settings.py
   base/trunk/mpulsweb/controllers/usersettings.py
   base/trunk/mpulsweb/lib/helpers.py
   base/trunk/mpulsweb/lib/navigation.py
   base/trunk/mpulsweb/lib/renderer.py
   base/trunk/mpulsweb/templates/administration/delete_user_helper.mako
   base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteuser.mako
   base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteusergroup.mako
   base/trunk/mpulsweb/templates/administration/dialogs/confirm_resetpassword.mako
   base/trunk/mpulsweb/templates/administration/dialogs/failed_delete_user.mako
   base/trunk/mpulsweb/templates/administration/dialogs/failed_new_usergroup.mako
   base/trunk/mpulsweb/templates/administration/dialogs/notificate_delete_user_helper.mako
   base/trunk/mpulsweb/templates/administration/dialogs/success_delete_user.mako
   base/trunk/mpulsweb/templates/administration/dialogs/success_deletegroup_user.mako
   base/trunk/mpulsweb/templates/administration/dialogs/success_edit_user.mako
   base/trunk/mpulsweb/templates/administration/dialogs/success_edit_usergroup.mako
   base/trunk/mpulsweb/templates/administration/dialogs/success_new_usergroup.mako
   base/trunk/mpulsweb/templates/administration/edit_user.mako
   base/trunk/mpulsweb/templates/administration/edit_usergroup.mako
   base/trunk/mpulsweb/templates/administration/new_user.mako
   base/trunk/mpulsweb/templates/administration/new_user_result.mako
   base/trunk/mpulsweb/templates/administration/new_usergroup.mako
   base/trunk/mpulsweb/templates/administration/overview_user.mako
   base/trunk/mpulsweb/templates/administration/overview_usergroups.mako
   base/trunk/mpulsweb/templates/administration/reset_password.mako
   base/trunk/mpulsweb/templates/administration/show_user.mako
   base/trunk/mpulsweb/templates/administration/show_usergroup.mako
   base/trunk/mpulsweb/templates/annotations/main.mako
   base/trunk/mpulsweb/templates/appointments/appointment_form.mako
   base/trunk/mpulsweb/templates/appointments/appointmentlist.mako
   base/trunk/mpulsweb/templates/appointments/edit.mako
   base/trunk/mpulsweb/templates/appointments/new.mako
   base/trunk/mpulsweb/templates/appointments/overview.mako
   base/trunk/mpulsweb/templates/appointments/show.mako
   base/trunk/mpulsweb/templates/auth/logout.mako
   base/trunk/mpulsweb/templates/auth/main.mako
   base/trunk/mpulsweb/templates/base.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/confirm_anonymize.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/error.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/success_anonymize.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/success_editor.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/success_markdelete.mako
   base/trunk/mpulsweb/templates/casebundle/dialogs/success_standin.mako
   base/trunk/mpulsweb/templates/casebundle/editor.mako
   base/trunk/mpulsweb/templates/casebundle/standin.mako
   base/trunk/mpulsweb/templates/casemanagement/appointmentlist.mako
   base/trunk/mpulsweb/templates/casemanagement/appointments.mako
   base/trunk/mpulsweb/templates/casemanagement/caselist.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_anonymize.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_appointment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_attachment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/failed_markanonymize.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_create_appointment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_appointment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_attachment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_cm.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_edit_appointment.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_export.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_keepactive.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako
   base/trunk/mpulsweb/templates/casemanagement/dialogs/success_restore.mako
   base/trunk/mpulsweb/templates/casemanagement/digest.mako
   base/trunk/mpulsweb/templates/casemanagement/digest_body.mako
   base/trunk/mpulsweb/templates/casemanagement/editAppointment.mako
   base/trunk/mpulsweb/templates/casemanagement/main.mako
   base/trunk/mpulsweb/templates/casemanagement/new.mako
   base/trunk/mpulsweb/templates/casemanagement/newAppointment.mako
   base/trunk/mpulsweb/templates/casemanagement/organisation.mako
   base/trunk/mpulsweb/templates/casemanagement/overview.mako
   base/trunk/mpulsweb/templates/casemanagement/reminderlist.mako
   base/trunk/mpulsweb/templates/casemanagement/search.mako
   base/trunk/mpulsweb/templates/casemanagement/showAppointment.mako
   base/trunk/mpulsweb/templates/dialogs/confirm.mako
   base/trunk/mpulsweb/templates/dialogs/failed.mako
   base/trunk/mpulsweb/templates/dialogs/notification.mako
   base/trunk/mpulsweb/templates/dialogs/success.mako
   base/trunk/mpulsweb/templates/documents/case_new.mako
   base/trunk/mpulsweb/templates/documents/case_overview.mako
   base/trunk/mpulsweb/templates/documents/dialogs/confirm.mako
   base/trunk/mpulsweb/templates/documents/dialogs/delete_attachment_success.mako
   base/trunk/mpulsweb/templates/documents/dialogs/delete_document_success.mako
   base/trunk/mpulsweb/templates/documents/dialogs/failed_attachment.mako
   base/trunk/mpulsweb/templates/documents/dialogs/failed_document.mako
   base/trunk/mpulsweb/templates/documents/dialogs/success_attachment.mako
   base/trunk/mpulsweb/templates/documents/dialogs/success_documents.mako
   base/trunk/mpulsweb/templates/documents/global_overview.mako
   base/trunk/mpulsweb/templates/documents/global_upload.mako
   base/trunk/mpulsweb/templates/evaluation/evaluate.mako
   base/trunk/mpulsweb/templates/evaluation/evaluate_adele.mako
   base/trunk/mpulsweb/templates/evaluation/result.mako
   base/trunk/mpulsweb/templates/formularpage/formular.mako
   base/trunk/mpulsweb/templates/home/caseappointmentlist.mako
   base/trunk/mpulsweb/templates/home/globalappointmentlist.mako
   base/trunk/mpulsweb/templates/home/remindlist.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako
   base/trunk/mpulsweb/templates/logbook/edit.mako
   base/trunk/mpulsweb/templates/logbook/new.mako
   base/trunk/mpulsweb/templates/logbook/overview.mako
   base/trunk/mpulsweb/templates/logbook/overview_print.mako
   base/trunk/mpulsweb/templates/logbook/show.mako
   base/trunk/mpulsweb/templates/main.mako
   base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako
   base/trunk/mpulsweb/templates/phase/phase.mako
   base/trunk/mpulsweb/templates/privacy/default/privacy_statement.html
   base/trunk/mpulsweb/templates/privacy/dialogs/accept_success.mako
   base/trunk/mpulsweb/templates/privacy/dialogs/confirm.mako
   base/trunk/mpulsweb/templates/privacy/dialogs/decline_failed.mako
   base/trunk/mpulsweb/templates/privacy/dialogs/decline_success.mako
   base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement.mako
   base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement_body.mako
   base/trunk/mpulsweb/templates/privacy/edit_statement.mako
   base/trunk/mpulsweb/templates/privacy/list_statements.mako
   base/trunk/mpulsweb/templates/repeatgroup/dialogs/confirm_delete_rg_entry.mako
   base/trunk/mpulsweb/templates/settings/dialogs/success_edit.mako
   base/trunk/mpulsweb/templates/settings/edit.mako
   base/trunk/mpulsweb/templates/settings/show.mako
   base/trunk/mpulsweb/templates/tags/tags.mako
   base/trunk/mpulsweb/templates/usersettings/show_settings.mako
Log:
Merged



Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/ChangeLog	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,5 +1,356 @@
+2010-05-27  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/helpers.py (tag): Moved here from renderer because
+	it's useful in other modules besides the renderer.
+
+	* mpulsweb/lib/renderer.py (tag): Removed.  It's now imported from
+	helpers.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/usersettings.py
+	(UsersettingsController.editStandinAction): Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/settings.py
+	(SettingsController.editAction): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/repeatgroup.py
+	(RepeatgroupController.delete): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/privacy.py (PrivacyController.decline): Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/news.py (NewsController.hide): Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/appointment.py: Add missing import.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/logbook/overview.mako: Correct some url_for
+	calls.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/logbook.py (LogbookController.show)
+	(LogbookController.newAction, LogbookController.edit)
+	(LogbookController.editAction, LogbookController.delete): Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/document.py
+	(DocumentController.globalDelete): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/casemanagement/caselist.mako: Pass the
+	confirmed flag to url_for with the correct name.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/case.py (CaseController.markForDelete)
+	(CaseController.delete, CaseController.markForAnonymize)
+	(CaseController._markForAnonymize, CaseController.anonymize)
+	(CaseController.anonymize, CaseController.restore): Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/casedocument.py
+	(CasedocumentController.delete): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/case_bundle.py
+	(CaseBundleController._empty_caselist)
+	(CaseBundleController.no_action)
+	(CaseBundleController.markDelete, CaseBundleController.delete)
+	(CaseBundleController.delete)
+	(CaseBundleController.markAnonymize)
+	(CaseBundleController.anonymize, CaseBundleController.restore)
+	(CaseBundleController.set_editor)
+	(CaseBundleController.set_standin): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/caseappointment.py
+	(CaseappointmentController.delete): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/appointment.py
+	(AppointmentController.createAction)
+	(AppointmentController.editAction)
+	(AppointmentController.delete): Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/controllers/administration.py
+	(AdministrationController.editUserAction)
+	(AdministrationController.resetUserPassword)
+	(AdministrationController.deleteUser)
+	(AdministrationController.deleteUserHelper)
+	(AdministrationController.newUserGroupAction)
+	(AdministrationController.editUserGroupAction)
+	(AdministrationController.deleteUserGroup): Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-26  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/auth/logout.mako: Use h.url_for consistently
+	for all-intra application URLs.
+
 2010-05-25  Bernhard Herzog  <bh at intevation.de>
 
+	* mpulsweb/templates/usersettings/show_settings.mako: Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/tags/tags.mako: Use h.url_for consistently
+	for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/settings/dialogs/success_edit.mako,
+	mpulsweb/templates/settings/edit.mako,
+	mpulsweb/templates/settings/show.mako: Use h.url_for consistently
+	for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/repeatgroup/dialogs/confirm_delete_rg_entry.mako:
+	Use h.url_for consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/privacy/default/privacy_statement.html,
+	mpulsweb/templates/privacy/dialogs/accept_success.mako,
+	mpulsweb/templates/privacy/dialogs/confirm.mako,
+	mpulsweb/templates/privacy/dialogs/decline_failed.mako,
+	mpulsweb/templates/privacy/dialogs/decline_success.mako,
+	mpulsweb/templates/privacy/dialogs/missing_statement.mako,
+	mpulsweb/templates/privacy/dialogs/missing_statement_body.mako,
+	mpulsweb/templates/privacy/edit_statement.mako,
+	mpulsweb/templates/privacy/list_statements.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/phase/dialogs/success_set_phase.mako,
+	mpulsweb/templates/phase/phase.mako: Use h.url_for consistently
+	for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/main.mako: Use h.url_for consistently for
+	all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako,
+	mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako,
+	mpulsweb/templates/logbook/edit.mako,
+	mpulsweb/templates/logbook/new.mako,
+	mpulsweb/templates/logbook/overview.mako,
+	mpulsweb/templates/logbook/overview_print.mako,
+	mpulsweb/templates/logbook/show.mako: Use h.url_for consistently
+	for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/home/caseappointmentlist.mako,
+	mpulsweb/templates/home/globalappointmentlist.mako,
+	mpulsweb/templates/home/remindlist.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/formularpage/formular.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/evaluation/evaluate.mako,
+	mpulsweb/templates/evaluation/evaluate_adele.mako,
+	mpulsweb/templates/evaluation/result.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/documents/case_new.mako,
+	mpulsweb/templates/documents/case_overview.mako,
+	mpulsweb/templates/documents/dialogs/confirm.mako,
+	mpulsweb/templates/documents/dialogs/delete_attachment_success.mako,
+	mpulsweb/templates/documents/dialogs/delete_document_success.mako,
+	mpulsweb/templates/documents/dialogs/failed_attachment.mako,
+	mpulsweb/templates/documents/dialogs/failed_document.mako,
+	mpulsweb/templates/documents/dialogs/success_attachment.mako,
+	mpulsweb/templates/documents/dialogs/success_documents.mako,
+	mpulsweb/templates/documents/global_overview.mako,
+	mpulsweb/templates/documents/global_upload.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/dialogs/confirm.mako,
+	mpulsweb/templates/dialogs/failed.mako,
+	mpulsweb/templates/dialogs/notification.mako,
+	mpulsweb/templates/dialogs/success.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/casemanagement/appointmentlist.mako,
+	mpulsweb/templates/casemanagement/appointments.mako,
+	mpulsweb/templates/casemanagement/caselist.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_anonymize.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_delete_appointment.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_delete_attachment.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_export.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako,
+	mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako,
+	mpulsweb/templates/casemanagement/dialogs/failed_markanonymize.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_create_appointment.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_delete.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_delete_appointment.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_delete_attachment.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_delete_cm.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_edit_appointment.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_export.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_keepactive.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako,
+	mpulsweb/templates/casemanagement/dialogs/success_restore.mako,
+	mpulsweb/templates/casemanagement/digest.mako,
+	mpulsweb/templates/casemanagement/digest_body.mako,
+	mpulsweb/templates/casemanagement/editAppointment.mako,
+	mpulsweb/templates/casemanagement/main.mako,
+	mpulsweb/templates/casemanagement/new.mako,
+	mpulsweb/templates/casemanagement/newAppointment.mako,
+	mpulsweb/templates/casemanagement/organisation.mako,
+	mpulsweb/templates/casemanagement/overview.mako,
+	mpulsweb/templates/casemanagement/reminderlist.mako,
+	mpulsweb/templates/casemanagement/search.mako,
+	mpulsweb/templates/casemanagement/showAppointment.mako: Use
+	h.url_for consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/casebundle/dialogs/confirm_anonymize.mako,
+	mpulsweb/templates/casebundle/dialogs/error.mako,
+	mpulsweb/templates/casebundle/dialogs/success_anonymize.mako,
+	mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako,
+	mpulsweb/templates/casebundle/dialogs/success_editor.mako,
+	mpulsweb/templates/casebundle/dialogs/success_markdelete.mako,
+	mpulsweb/templates/casebundle/dialogs/success_standin.mako,
+	mpulsweb/templates/casebundle/editor.mako,
+	mpulsweb/templates/casebundle/standin.mako: Use h.url_for
+	consistently for all-intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/base.mako: Use h.url_for consistently for all
+	intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/annotations/main.mako,
+	mpulsweb/templates/appointments/appointment_form.mako,
+	mpulsweb/templates/appointments/appointmentlist.mako,
+	mpulsweb/templates/appointments/edit.mako,
+	mpulsweb/templates/appointments/new.mako,
+	mpulsweb/templates/appointments/overview.mako,
+	mpulsweb/templates/appointments/show.mako,
+	mpulsweb/templates/auth/main.mako: Use h.url_for consistently for
+	all intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/templates/administration/show_usergroup.mako,
+	mpulsweb/templates/administration/show_user.mako,
+	mpulsweb/templates/administration/reset_password.mako,
+	mpulsweb/templates/administration/overview_usergroups.mako,
+	mpulsweb/templates/administration/overview_user.mako,
+	mpulsweb/templates/administration/new_usergroup.mako,
+	mpulsweb/templates/administration/new_user_result.mako,
+	mpulsweb/templates/administration/new_user.mako,
+	mpulsweb/templates/administration/edit_usergroup.mako,
+	mpulsweb/templates/administration/edit_user.mako,
+	mpulsweb/templates/administration/dialogs/success_new_usergroup.mako,
+	mpulsweb/templates/administration/dialogs/success_edit_usergroup.mako,
+	mpulsweb/templates/administration/dialogs/success_edit_user.mako,
+	mpulsweb/templates/administration/dialogs/success_deletegroup_user.mako,
+	mpulsweb/templates/administration/dialogs/success_delete_user.mako,
+	mpulsweb/templates/administration/dialogs/notificate_delete_user_helper.mako,
+	mpulsweb/templates/administration/dialogs/failed_new_usergroup.mako,
+	mpulsweb/templates/administration/dialogs/failed_delete_user.mako,
+	mpulsweb/templates/administration/dialogs/confirm_resetpassword.mako,
+	mpulsweb/templates/administration/dialogs/confirm_deleteusergroup.mako,
+	mpulsweb/templates/administration/dialogs/confirm_deleteuser.mako,
+	mpulsweb/templates/administration/delete_user_helper.mako: Use
+	h.url_for consistently for all intra application URLs.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	Generate URLs properly so that SCRIPT_NAME is taken into account:
+
+	* mpulsweb/lib/renderer.py (icon): New function to help with icon
+	URL generation.
+	(ViewRenderer.render, ViewRenderer._renderAttributes)
+	(ViewRenderer._renderRepeatList, ViewRenderer._renderRepeatNav)
+	(ViewRenderer._renderInfo, RepeatGroupRenderer.render_digest)
+	(RepeatGroupRenderer.render, ErrorRenderer.render)
+	(ErrorRenderer.render_items): Generate URLs with the url_for and
+	icon functions.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	* mpulsweb/lib/renderer.py (RepeatGroupRenderer.render): Remove
+	some debug prints.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
+	Generate URLs properly so that SCRIPT_NAME is taken into account:
+
+	* mpulsweb/lib/navigation.py (SELECT_ITEM, SELECT_BRANCH)
+	(CLOSE_BRANCH, OPEN_BRANCH): Removed.
+	(select_item_url, select_branch_url, close_branch_url)
+	(open_branch_url): New.  Functions replacing the removed template
+	strings.
+	(FileCache.get_image): Convert image name to byte-string and pass
+	it through url_for to get the correct image url.
+	(TreeItem.render): Adapt to template->function change.
+
+2010-05-25  Bernhard Herzog  <bh at intevation.de>
+
 	* mpulsweb/model/user.py (log): Add logger.
 
 2010-05-25  Bernhard Herzog  <bh at intevation.de>

Modified: base/trunk/mpulsweb/controllers/administration.py
===================================================================
--- base/trunk/mpulsweb/controllers/administration.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/administration.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -8,6 +8,7 @@
 
 from mpulsweb.lib.db import db
 from mpulsweb.lib.base import BaseController, render, redirect_to
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.security import checkRole, getDbName
 from mpulsweb.lib.validators import ValidatorStateObject, NewUserGroupForm, \
     EditUserGroupForm , NewUserForm, EditUserForm, DeleteUserHelperForm
@@ -147,7 +148,8 @@
             c.uo.store()
             c.dialog_title = EDIT_USER_SUCCESS_HEADER
             c.dialog_text = EDIT_USER_SUCCESS_TEXT
-            c.url_ok = "/administration/overviewUser"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUser')
             return render('/administration/dialogs/success_edit_user.mako')
         except formencode.Invalid, error:
             c.form_result = error.value
@@ -168,8 +170,10 @@
             c.dialog_text = "%s %s, %s" % (RESET_PASSWORD_CONFIRM_QUESTION,
                                            c.uo.last_name, c.uo.first_name)
 
-            c.url_yes = "/administration/resetUserPassword/%s/1" % id
-            c.url_no = "/administration/showUser/%s" % id
+            c.url_yes = url_for(controller='/administration',
+                                action='resetUserPassword', id=id, confirmed=1)
+            c.url_no = url_for(controller='/administration',
+                               action='showUser', id=id)
             return render('/administration/dialogs/confirm_resetpassword.mako')
 
     # Old deleteUser method, which does not raise a helper dialog to transfer
@@ -186,7 +190,8 @@
     #    if uo.id == session.get('USER_AUTHORIZED').id:
     #        c.dialog_title = DELETE_SELFUSER_FAILURE
     #        c.dialog_text = DELETE_SELFUSER_FAILURE_TEXT
-    #        c.url_ok = "/administration/overviewUser"
+    #        c.url_ok = url_for(controller='/administration',
+    #                           action='overviewUser')
     #        return render('/administration/dialogs/failed_delete_user.mako')
 
     #    if confirmed:
@@ -195,13 +200,15 @@
     #        if user_has_cases(uo):
     #            c.dialog_title = DELETE_USER_HASCASES
     #            c.dialog_text = DELETE_USER_HASCASES_TEXT
-    #            c.url_ok = "/administration/overviewUser"
+    #            c.url_ok = url_for(controller='/administration',
+    #                               action='overviewUser')
     #            return render('/administration/dialogs/failed_delete_user.mako')
     #        else:
     #            uo.delete()
     #            c.dialog_title = DELETE_USER_SUCCESS_HEADER
     #            c.dialog_text = DELETE_USER_SUCCESS_TEXT
-    #            c.url_ok = "/administration/overviewUser"
+    #            c.url_ok = url_for(controller='/administration',
+    #                               action='overviewUser')
     #            return render('/administration/dialogs/success_delete_user.mako')
 
     #    else:
@@ -210,8 +217,10 @@
     #        c.dialog_text = DELETE_USER_CONFIRM_QUESTION % (uo.last_name,
     #                                                     uo.first_name,
     #                                                     uo.login)
-    #        c.url_yes = "/administration/deleteUser/%s/1" % id
-    #        c.url_no = "/administration/overviewUser/"
+    #        c.url_yes = url_for(controller='/administration',
+    #                            action='deleteUser', id=id, confirmed=1)
+    #        c.url_no = url_for(controller='/administration',
+    #                           action='overviewUser')
     #        return render('/administration/dialogs/confirm_deleteuser.mako')
 
     @checkRole('admin')
@@ -223,7 +232,8 @@
         if uo.id == session.get('USER_AUTHORIZED').id:
             c.failed_for = DELETE_SELFUSER_FAILURE
             c.failed_text = DELETE_SELFUSER_FAILURE_TEXT
-            c.url_ok = "/administration/overviewUser"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUser')
             return render('/administration/dialogs/failed_delete_user.mako')
 
         if confirmed:
@@ -249,7 +259,8 @@
                 uo.delete()
                 c.success_for = DELETE_USER_SUCCESS_HEADER
                 c.success_text = DELETE_USER_SUCCESS_TEXT
-                c.url_ok = "/administration/overviewUser"
+                c.url_ok = url_for(controller='/administration',
+                                   action='overviewUser')
                 return render('/administration/dialogs/success_delete_user.mako')
 
         else:
@@ -258,8 +269,10 @@
             c.question = DELETE_USER_CONFIRM_QUESTION % (uo.last_name,
                                                          uo.first_name,
                                                          uo.login)
-            c.url_yes = "/administration/deleteUser/%s/1" % id
-            c.url_no = "/administration/overviewUser/"
+            c.url_yes = url_for(controller='/administration',
+                                action='deleteUser', id=id, confirmed=1)
+            c.url_no = url_for(controller='/administration',
+                               action='overviewUser')
             return render('/administration/dialogs/confirm_deleteuser.mako')
 
     @checkRole('admin')
@@ -281,8 +294,9 @@
                                 % del_user.id)
                 num  = case_bundle.setEditor(form_result.get('editor'))
                 rest = all_cases.numDatasets() - case_bundle.numDatasets()
-                c.url_ok = ("/administration/deleteUser/%s/1"
-                            % form_result.get('user_id'))
+                c.url_ok = url_for(controller='/administration',
+                                   action='deleteUser',
+                                   id=form_result.get('user_id'), confirmed=1)
                 c.success_for = SETEDITOR_NOTIFICATION_SUCCESS_HEAD
                 if rest > 0:
                     c.success_for  = SETEDITOR_NOTIFICATION_SUCCESS_REST_HEAD
@@ -328,7 +342,8 @@
             c.ugo = factory.create(c.form_result.get('name'))
             c.dialog_title = NEW_USERGROUP_SUCCESS_HEADER
             c.dialog_text = NEW_USERGROUP_SUCCESS_TEXT
-            c.url_ok = "/administration/overviewUserGroups"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUserGroups')
             return render('/administration/dialogs/success_new_usergroup.mako')
         except formencode.Invalid, error:
             c.form_result = error.value
@@ -342,7 +357,8 @@
             log.exception(e)
             c.dialog_title = NEW_USERGROUP_FAILURE_HEADER
             c.dialog_text = NEW_USERGOUP_FAILURE_TEXT
-            c.url_ok = "/administration/overviewUserGroups"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUserGroups')
             return render('/administration/dialogs/failed_new_usergroup.mako')
 
     @checkRole('admin_ka')
@@ -395,7 +411,8 @@
             c.group = group
             c.dialog_title = EDIT_USERGROUP_SUCCESS_HEADER
             c.dialog_text = EDIT_USERGROUP_SUCCESS_TEXT
-            c.url_ok = "/administration/overviewUserGroups"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUserGroups')
             return render('/administration/dialogs/success_edit_usergroup.mako')
         except formencode.Invalid, error:
             c.form_result = error.value
@@ -418,20 +435,25 @@
                 ugo.delete()
                 c.dialog_title = DELETE_USERGROUP_SUCCESS_HEADER
                 c.dialog_text = DELETE_USERGROUP_SUCCESS_TEXT
-                c.url_ok = "/administration/overviewUserGroups"
+                c.url_ok = url_for(controller='/administration',
+                                   action='overviewUserGroups')
                 return render('/administration/dialogs/success_deletegroup_user.mako')
             else:
                 c.context = "../main.mako"
                 c.dialog_title = DELETE_USERGROUP_CONFIRM
                 c.dialog_text = DELETE_USERGROUP_CONFIRM_QUESTION
-                c.url_yes = "/administration/deleteUserGroup/%s/1" % ugo.id
-                c.url_no = "/administration/overviewUserGroups/"
+                c.url_yes = url_for(controller='/administration',
+                                    action='deleteUserGroup', id=ugo.id,
+                                    confirmed=1)
+                c.url_no = url_for(controller='/administration',
+                                   action='overviewUserGroups')
                 return render('/administration/dialogs/confirm_deleteusergroup.mako')
         except Exception, e:
             log.exception(e)
             c.dialog_title = DELETE_USERGROUP_FAILED_HEADER
             c.dialog_text = DELETE_USERGROUP_FAILED_TEXT
-            c.url_ok = "/administration/overviewUserGroups"
+            c.url_ok = url_for(controller='/administration',
+                               action='overviewUserGroups')
             return render('/administration/dialogs/failed_new_usergroup.mako')
 
 

Modified: base/trunk/mpulsweb/controllers/appointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/appointment.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/appointment.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -36,7 +36,7 @@
 from pylons.i18n import _, ungettext
 
 from mpulsweb.lib.base import BaseController, c, redirect_to, render, request
-from mpulsweb.lib.helpers import dd_mm_YYYY, HH_MM
+from mpulsweb.lib.helpers import url_for, dd_mm_YYYY, HH_MM
 from mpulsweb.lib.security import checkRole
 from mpulsweb.model.appointment import GlobalAppointmentOverview, \
      GlobalAppointmentFactory
@@ -97,7 +97,7 @@
             appointment.store()
             c.dialog_title = CREATE_APPOINT_NOTIFICATION_SUCCESS
             c.dialog_text = CREATE_APPOINT_NOTIFICATION_TEXT_SUCCESS
-            c.url_ok = "/appointment/overview"
+            c.url_ok = url_for(controller='/appointment', action='overview')
             return render('/appointments/dialogs/success_create_appointment.mako')
         except formencode.Invalid, error:
             c.form_result = error.value
@@ -149,7 +149,7 @@
             appointment.store()
             c.dialog_title = EDIT_APPOINT_NOTIFICATION_SUCCESS
             c.dialog_text = EDIT_APPOINT_NOTIFICATION_TEXT_SUCCESS
-            c.url_ok = "/appointment/overview"
+            c.url_ok = url_for(controller='/appointment', action='overview')
             return render('/appointments/dialogs/success_edit_appointment.mako')
         except formencode.Invalid, error:
             c.form_result = error.value
@@ -170,14 +170,15 @@
             appointment.delete()
             c.dialog_title = DELETE_APPOINT_NOTIFICATION_SUCCESS
             c.dialog_text = DELETE_APPOINT_NOTIFICATION_TEXT_SUCCESS
-            c.url_ok = "/appointment/overview"
+            c.url_ok = url_for(controller='/appointment', action='overview')
             return render('/appointments/dialogs/success_delete_appointment.mako')
         else:
             c.context = "../main.mako"
             c.dialog_title = DELETE_APPOINT_CONFIRM
             c.dialog_text = DELETE_APPOINT_CONFIRM_TEXT
-            c.url_yes = "/appointment/delete/%s/1" % id
-            c.url_no = "/appointment/overview/"
+            c.url_yes = url_for(controller='/appointment', action='delete',
+                                id=id, confirmed=1)
+            c.url_no = url_for(controller='/appointment', action='overview')
             return render('/appointments/dialogs/confirm.mako')
 
     @checkRole(('admin_ka', 'cm_ka', 'pt_dlr'))

Modified: base/trunk/mpulsweb/controllers/case.py
===================================================================
--- base/trunk/mpulsweb/controllers/case.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/case.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -110,8 +110,9 @@
             c.context = "../main.mako"
             c.dialog_title = DELETE_CONFIRM
             c.dialog_text = MARKDELETE_CONFIRM_TEXT
-            c.url_yes = "/case/markForDelete/%s/1" % id
-            c.url_no = "/case_overview/"
+            c.url_yes = h.url_for(controller='/case', action='markForDelete',
+                                  id=id, confirmed=1)
+            c.url_no = h.url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm.mako')
 
     @checkRole('admin')
@@ -129,8 +130,9 @@
             c.context = "../main.mako"
             c.dialog_title = DELETE_CONFIRM
             c.dialog_text = DELETE_CONFIRM_TEXT
-            c.url_yes = "/case/delete/%s/1" % id
-            c.url_no = "/case_overview/"
+            c.url_yes = h.url_for(controller='/case', action='delete',
+                                  id=id, confirmed=1)
+            c.url_no = h.url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm_delete.mako')
 
     #
@@ -143,7 +145,7 @@
 
     @checkRole('cm')
     def markForAnonymize(self, id, confirmed):
-        url = "/case/digest/%s" % id
+        url = h.url_for(controller='/case', action='digest', id=id)
         return self._markForAnonymize(id, confirmed, url)
 
     def _markForAnonymize(self, id, confirmed, url):
@@ -179,7 +181,8 @@
             
             c.dialog_title = ANONYMIZE_CONFIRM
             c.dialog_text = MARKANONYMIZE_CONFIRM_TEXT % phase
-            c.url_yes = "/case/markForAnonymize/%s/1" % id
+            c.url_yes = h.url_for(controller='/case', action='markForAnonymize',
+                                  id=id, confirmed=1)
             c.url_no = url
             return render('/casemanagement/dialogs/confirm_markanonymize.mako')
 
@@ -195,7 +198,7 @@
         except ConsistenceCheckException, e:
             c.dialog_title = MARKANONYMIZE_FAILED
             c.dialog_text = h.literal(e.value)
-            c.url_ok = "/case/digest/%s" % id
+            c.url_ok = h.url_for(controller='/case', action='digest', id=id)
             return render('/casemanagement/dialogs/failed_markanonymize.mako')
 
         # Ok, show confirmation dialog if the user really wants to anonymize the
@@ -210,8 +213,9 @@
             c.context = "../main.mako"
             c.dialog_title = ANONYMIZE_CONFIRM
             c.dialog_text = ANONYMIZE_CONFIRM_TEXT
-            c.url_yes = "/case/anonymize/%s/1" % id
-            c.url_no = "/case/digest/%s" % id
+            c.url_yes = h.url_for(controller='/case', action='anonymize',
+                                  id=id, confirmed=1)
+            c.url_no = h.url_for(controller='/case', action='digest', id=id)
             return render('/casemanagement/dialogs/confirm_anonymize.mako')
 
     #
@@ -233,8 +237,9 @@
             c.context = "../main.mako"
             c.dialog_title = RESTORE_CONFIRM
             c.dialog_text = RESTORE_CONFIRM_TEXT
-            c.url_yes = "/case/restore/%s/1" % id
-            c.url_no = "/case_overview/"
+            c.url_yes = h.url_for(controller='/case', action='restore', id=id,
+                                  confirmed=1)
+            c.url_no = h.url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm_restore.mako')
 
     #

Modified: base/trunk/mpulsweb/controllers/case_bundle.py
===================================================================
--- base/trunk/mpulsweb/controllers/case_bundle.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/case_bundle.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -11,6 +11,7 @@
 from formed.meta.data import PageNode
 
 from mpulsweb.lib.base import c, render, request, session, BaseController
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.security import checkRole
 from mpulsweb.lib.validators import BundleActionForm, SetBundleEditorForm, \
     SetBundleStandinForm, ExportSelectorValidator
@@ -248,7 +249,7 @@
         return case_bundle
 
     def _empty_caselist(self):
-        c.url_ok = "/case_overview"
+        c.url_ok = url_for(controller='/case_overview')
         c.dialog_title = BUNDLE_NOTIFICATION_EMPTYLIST_HEADER
         c.dialog_text = BUNDLE_NOTIFICATION_EMPTYLIST
         return render('/casebundle/dialogs/error.mako')
@@ -259,7 +260,7 @@
     def no_action(self):
         c.dialog_title= BUNDLE_NOTIFICATION_NOACTION_HEADER
         c.dialog_text = BUNDLE_NOTIFICATION_NOACTION
-        c.url_ok = "/case_overview"
+        c.url_ok = url_for(controller='/case_overview')
         return render('/casebundle/dialogs/error.mako')
 
     # DELETE
@@ -278,7 +279,7 @@
                                                 num) + " " + OK_TO_CONTINUE
             c.dialog_title = MARKDELETE_SUCCESS_HEADER
             c.dialog_text = MARKDELETE_SUCCESS_TEXT % str(num)
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render ('/casebundle/dialogs/success_markdelete.mako')
         else:
@@ -292,8 +293,9 @@
             c.dialog_title = DIALOG_CONFIRM_DELETE
             c.dialog_text = (DIALOG_CONFIRM_EXPLAINATION
                              % "\n".join(self._buildCaseList(case_bundle)))
-            c.url_yes = "/case_bundle/markDelete/1"
-            c.url_no = "/case_overview/"
+            c.url_yes = url_for(controller='/case_bundle', action='markDelete',
+                                confirmed=1)
+            c.url_no = url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm.mako')
 
     @checkRole(('admin'))
@@ -313,7 +315,7 @@
             
             c.dialog_title = DELETE_SUCCESS_HEADER
             c.dialog_text = DELETE_SUCCESS_TEXT % str(num)
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render('/casebundle/dialogs/success_delete_admin.mako')
         else:
@@ -326,8 +328,9 @@
             c.dialog_title = DIALOG_CONFIRM_DELETE
             c.dialog_text = (DIALOG_CONFIRM_EXPLAINATION
                              % "\n".join(self._buildCaseList(case_bundle)))
-            c.url_yes = "/case_bundle/delete/1"
-            c.url_no = "/case_overview/"
+            c.url_yes = url_for(controller='/case_bundle', action='delete',
+                                confirmed=1)
+            c.url_no = url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm.mako')
 
      # ANONYMIZE
@@ -348,7 +351,7 @@
 
             c.success_for = MARKANONYMIZE_SUCCESS_HEADER
             c.success_text = MARKANONYMIZE_SUCCESS_TEXT % str(num)
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render ('/casebundle/dialogs/success_anonymize.mako')
         else:
@@ -368,8 +371,9 @@
             c.dialog_title = DIALOG_CONFIRM_MARKANONYMIZE
             c.dialog_text = (DIALOG_CONFIRM_MARKANONYMIZE_EXPLAINATION
                              % "\n".join(self._buildCaseList(case_bundle)))
-            c.url_yes = "/case_bundle/markAnonymize/1"
-            c.url_no = "/case_overview/"
+            c.url_yes = url_for(controller='/case_bundle',
+                                action='markAnonymize', confirmed=1)
+            c.url_no = url_for(controller='/case_overview')
             return render('/casebundle/dialogs/confirm_anonymize.mako')
 
     @checkRole(('admin'))
@@ -389,7 +393,7 @@
             
             c.dialog_text  = ANONYMIZE_SUCCESS_TEXT % str(num)
             c.dialog_title = ANONYMIZE_SUCCESS_HEADER
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render ('/casebundle/dialogs/success_anonymize.mako')
         else:
@@ -407,8 +411,9 @@
             c.dialog_title = DIALOG_CONFIRM_ANONYMIZE
             c.dialog_text = (DIALOG_CONFIRM_ANONYMIZE_EXPLAINATION
                              % "\n".join(self._buildCaseList(case_bundle)))
-            c.url_yes = "/case_bundle/anonymize/1"
-            c.url_no = "/case_overview/"
+            c.url_yes = url_for(controller='/case_bundle', action='anonymize',
+                                confirmed=1)
+            c.url_no = url_for(controller='/case_overview')
             return render('/casebundle/dialogs/confirm_anonymize.mako')
 
     # RESTORE
@@ -427,7 +432,7 @@
                                             num) + " " + OK_TO_CONTINUE
             c.dialog_title = RESTORE_SUCCESS_HEADER
             c.dialog_text = RESTORE_SUCCESS_TEXT % str(num)
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render ('/casemanagement/dialogs/success_restore.mako')
         else:
@@ -441,8 +446,9 @@
             c.dialog_title = DIALOG_CONFIRM_RESTORE
             c.dialog_text = (DIALOG_CONFIRM_RESTORE_EXPLAINATION
                              % "\n".join(self._buildCaseList(case_bundle)))
-            c.url_yes = "/case_bundle/restore/1"
-            c.url_no = "/case_overview/"
+            c.url_yes = url_for(controller='/case_bundle', action='restore',
+                                confirmed=1)
+            c.url_no = url_for(controller='/case_overview')
             return render('/casemanagement/dialogs/confirm_restore.mako')
 
     # ORGANISATION
@@ -461,7 +467,7 @@
                                                 num) + " " + OK_TO_CONTINUE
             c.dialog_text= (TRANSFER_SUCCESS_TEXT
                             % (str(num), user.first_name, user.last_name))
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render('/casebundle/dialogs/success_editor.mako')
         except formencode.Invalid, error:
@@ -482,7 +488,7 @@
                                             u"%s cases were sucessfully assigend to a substitute.",
                                             num) + " " + OK_TO_CONTINUE
             c.dialog_text = STANDIN_SUCCESS_TEXT % str(num)
-            c.url_ok = "/case_overview"
+            c.url_ok = url_for(controller='/case_overview')
             del session['casebundle']
             return render('/casebundle/dialogs/success_standin.mako')
         except formencode.Invalid, error:

Modified: base/trunk/mpulsweb/controllers/caseappointment.py
===================================================================
--- base/trunk/mpulsweb/controllers/caseappointment.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/caseappointment.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -182,15 +182,18 @@
             appointment.delete()
             c.success_for = DELETE_APPOINT_NOTIFICATION_SUCCESS
             c.success_text = DELETE_APPOINT_NOTIFICATION_TEXT_SUCCESS
-            c.url_ok = "/caseappointment/index/%s" % appointment.case_id
+            c.url_ok = url_for(controller='/caseappointment', action='index',
+                               id=appointment.case_id)
             return render('/casemanagement/dialogs/'
                           'success_delete_appointment.mako')
         else:
             c.context = "../main.mako"
             c.confirm_for = DELETE_APPOINT_CONFIRM
             c.question = DELETE_APPOINT_CONFIRM_TEXT
-            c.url_yes = "/caseappointment/delete/%s/1" % id
-            c.url_no = "/caseappointment/index/%s" % appointment.case_id
+            c.url_yes = url_for(controller='/caseappointment', action='delete',
+                                id=id, confirmed=1)
+            c.url_no = url_for(controller='/caseappointment', action='index',
+                               id=appointment.case_id)
             return render('/casemanagement/dialogs/'
                           'confirm_delete_appointment.mako')
 

Modified: base/trunk/mpulsweb/controllers/casedocument.py
===================================================================
--- base/trunk/mpulsweb/controllers/casedocument.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/casedocument.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -111,7 +111,8 @@
             c.context = "../main.mako"
             c.confirm_for = SET_ATTACHMENT_CONFIRM_DELETE_HEADER
             c.question = SET_ATTACHMENT_CONFIRM_DELETE_TEXT
-            c.url_yes = "/casedocument/delete/%d/1" % (id)
+            c.url_yes = h.url_for(controller='/casedocument', action='delete',
+                                  id=id, confirmed=1)
             c.url_no = h.url_for(controller="/casedocument", action="index",
                                  id=session['case'].id)
             return render('/casemanagement/dialogs/'

Modified: base/trunk/mpulsweb/controllers/document.py
===================================================================
--- base/trunk/mpulsweb/controllers/document.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/document.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -141,8 +141,10 @@
             c.context = "../main.mako"
             c.dialog_title = SET_DOCUMENT_CONFIRM_DELETE_HEADER
             c.dialog_text = SET_DOCUMENT_CONFIRM_DELETE_TEXT
-            c.url_yes = "/document/globalDelete/%d/1" % id
-            c.url_no = "/document/globalOverview/"
+            c.url_yes = h.url_for(controller='/document',
+                                  action='globalDelete', id=id, confirmed=1)
+            c.url_no = h.url_for(controller='/document',
+                                 action='globalOverview')
             return render('/documents/dialogs/confirm.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

Modified: base/trunk/mpulsweb/controllers/logbook.py
===================================================================
--- base/trunk/mpulsweb/controllers/logbook.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/logbook.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -34,6 +34,7 @@
 from mpulsweb.lib.security import checkRole
 from mpulsweb.model.logbook import Logbook, LogbookEntry, LogbookEntryChecker
 
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.base import BaseController, c, render, request, session
 from mpulsweb.lib.validators import CreateLogbookForm, EditLogbookForm
 
@@ -97,7 +98,8 @@
         except Exception, e:
             c.failed_for = LOGBOOK_ENTRY_SHOW_FAILED
             c.failed_text = LOGBOOK_ENTRY_SHOW_FAILED_TEXT
-            c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             log.exception(e)
             return render('/logbook/dialogs/failed_show_logbook_entry.mako')
 
@@ -154,7 +156,8 @@
             logbook = Logbook(checker.getCaseId())
             logbook.addEntry(checker.getLogbookEntry())
             logbook.store(session['USER_AUTHORIZED'].id)
-            c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             c.success_for = CREATE_LOGBOOK_ENTRY_SUCCESS
             c.success_text = CREATE_LOGBOOK_ENTRY_SUCCESS_TEXT
             return render('/logbook/dialogs/success_create_logbook_entry.mako')
@@ -162,7 +165,8 @@
             traceback.print_exc(file=sys.stderr)
             c.failed_for = LOGBOOK_ENTRY_CREATE_FAILED
             c.failed_text = LOGBOOK_ENTRY_CREATE_FAILED_TEXT
-            c.url_ok = "/case/logbook/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/case', action='logbook',
+                               id=session['case'].id)
             return render('/logbook/dialogs/failed_create_logbook_entry.mako')
 
     @checkRole('cm_ka')
@@ -190,7 +194,8 @@
             log.exception(e)
             c.failed_for = LOGBOOK_ENTRY_SHOW_FAILED
             c.failed_text = LOGBOOK_ENTRY_SHOW_FAILED_TEXT
-            c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             return render('/logbook/dialogs/failed_show_logbook_entry.mako')
 
     @checkRole('cm_ka')
@@ -223,13 +228,15 @@
             entry.storeForUser(session['USER_AUTHORIZED'].id)
             c.success_for = LOGBOOK_ENTRY_SAVE_SUCCESS
             c.success_text = LOGBOOK_ENTRY_SAVE_SUCCESS_TEXT
-            c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             return render('/logbook/dialogs/success_save_logbook_entry.mako')
         except Exception, e:
             log.exception(e)
             c.failed_for = LOGBOOK_ENTRY_SAVE_FAILED
             c.failed_text = LOGBOOK_ENTRY_SAVE_FAILED_TEXT
-            c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+            c.url_ok = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             return render('/logbook/dialogs/failed_save_logbook_entry.mako')
 
     @checkRole('cm_ka')
@@ -241,19 +248,23 @@
                 Logbook().deleteEntryById(int(id))
                 c.success_for = LOGBOOK_ENTRY_DELETE_SUCCESS
                 c.success_text = LOGBOOK_ENTRY_DELETE_SUCCESS_TEXT
-                c.url_ok = "/case/logbook/%s" % str(session['case'].id)
+                c.url_ok = url_for(controller='/case', action='logbook',
+                                   id=session['case'].id)
                 return render('/logbook/dialogs/success_delete_logbook_entry.mako')
             except Exception, e:
                 log.exception(e)
                 c.failed_for = LOGBOOK_ENTRY_DELETE_FAILED
                 c.failed_text = LOGBOOK_ENTRY_DELETE_FAILED_TEXT
-                c.url_ok = "/logbook/index/%s" % str(session['case'].id)
+                c.url_ok = url_for(controller='/logbook', action='index',
+                                   id=session['case'].id)
                 return render('/logbook/dialogs/failed_delete_logbook_entry.mako')
         else:
             c.confirm_for = DELETE_LOGBOOK_ENTRY_CONFIRM
             c.question = DELETE_LOGBOOK_ENTRY_CONFIRM_TEXT
-            c.url_yes = "/logbook/delete/%s/1" % id
-            c.url_no = "/logbook/index/%s" % session['case'].id
+            c.url_yes = url_for(controller='/logbook', action='delete', id=id,
+                                confirmed=1)
+            c.url_no = url_for(controller='/logbook', action='index',
+                               id=session['case'].id)
             return render('/logbook/dialogs/confirm_delete_logbook_entry.mako')
 
     @checkRole(('cm_ka'))

Modified: base/trunk/mpulsweb/controllers/news.py
===================================================================
--- base/trunk/mpulsweb/controllers/news.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/news.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,6 +6,7 @@
 from pylons.controllers.util import redirect_to
 from pylons.i18n import _, ungettext
 
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.model.user import UserObject
 
@@ -34,8 +35,9 @@
         else:
             c.dialog_title = MARK_NEWS_AS_READ_CONFIRM
             c.dialog_text = MARK_NEWS_AS_READ_CONFIRM_TEXT
-            c.url_yes = "/news/hide/%s/1" % id
-            c.url_no = "/"
+            c.url_yes = url_for(controller='/news', action='hide', id=id,
+                                confirmed=1)
+            c.url_no = url_for("/")
             return render('/news/dialogs/confirm_mark_news_as_read.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

Modified: base/trunk/mpulsweb/controllers/privacy.py
===================================================================
--- base/trunk/mpulsweb/controllers/privacy.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/privacy.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -138,7 +138,8 @@
                         errors.append(v.msg)
                 c.dialog_title = MARKANONYMIZE_FAILED
                 c.dialog_text = MARKANONYMIZE_FAILED_TEXT % "<br>".join(errors) 
-                c.url_ok = h.url_for ('/case/select/%s/1' % case.id)
+                c.url_ok = h.url_for(controller='/case', action='select',
+                                     id=case.id, confirmed=1)
                 return render('/privacy/dialogs/decline_failed.mako')
 
         else:

Modified: base/trunk/mpulsweb/controllers/repeatgroup.py
===================================================================
--- base/trunk/mpulsweb/controllers/repeatgroup.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/repeatgroup.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -64,8 +64,10 @@
         else:
             c.confirm_for = DELETE_RG_ENTRY_CONFIRM
             c.question = DELETE_RG_ENTRY_CONFIRM_TEXT
-            c.url_yes = "/repeatgroup/delete/%s/1" % id
-            c.url_no = "/formularpage/select/%s" % session['case'].getPageId()
+            c.url_yes = h.url_for(controller='/repeatgroup', action='delete',
+                                  id=id, confirmed=1)
+            c.url_no = h.url_for(controller='/formularpage', action='select',
+                                 id=session['case'].getPageId())
             return render('/repeatgroup/dialogs/confirm_delete_rg_entry.mako')
 
     def new(self, id):

Modified: base/trunk/mpulsweb/controllers/settings.py
===================================================================
--- base/trunk/mpulsweb/controllers/settings.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/settings.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -5,6 +5,7 @@
 from pylons import request, tmpl_context as c
 from pylons.i18n import _
 
+from mpulsweb.lib.helpers import url_for
 from mpulsweb.lib.base import BaseController, render
 from mpulsweb.lib.validators import EditSettingsForm
 from mpulsweb.lib.security import checkRole
@@ -51,7 +52,7 @@
         c.agency.store(c.form_result)
         c.dialog_title = EDIT_AGENCY_SUCCESS_HEADER
         c.dialog_text = EDIT_AGENCY_SUCCESS_TEXT
-        c.url_ok = "/settings"
+        c.url_ok = url_for(controller='/settings')
         return render ('/settings/dialogs/success_edit.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

Modified: base/trunk/mpulsweb/controllers/usersettings.py
===================================================================
--- base/trunk/mpulsweb/controllers/usersettings.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/controllers/usersettings.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -166,7 +166,8 @@
         c.dialog_title = EDIT_STANDIN_SUCCESS_HEADER
         c.dialog_text = EDIT_STANDIN_SUCCESS_TEXT
         uid = c.form_result.get('uid')
-        c.url_ok = "/usersettings/showSettings/%s" % (uid)
+        c.url_ok = h.url_for(controller='/usersettings', action='showSettings',
+                             id=uid)
         return render ('/usersettings/dialogs/success_edit_standin.mako')
 
 # vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

Modified: base/trunk/mpulsweb/lib/helpers.py
===================================================================
--- base/trunk/mpulsweb/lib/helpers.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/lib/helpers.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -34,6 +34,7 @@
 import re
 import datetime
 from string import printable
+from xml.sax.saxutils import quoteattr
 
 from pylons import c, cache, config, g, request, response, session, url
 from pylons.i18n import _
@@ -68,7 +69,68 @@
         return s
     return unicode(str(s), 'utf-8')
 
+# html helper
+def tag(tagname, _close=False,
+        _booleans=('checked', 'disabled', 'multiple', 'selected'), **attrs):
+    """Create an opening HTML tag with properly escaped attributes.
 
+    The tagname parameter gives the name of the tag.  The attributes and
+    their values are given as keyword parameters.  Most attributes have
+    string values.  Boolean attributes are treated as described below.
+    The values of string attributes are converted to strings if they are
+    not aleady strings (byte-strings or unicode) using these rules: None
+    is converted to the empty string, other values are converted using
+    the str function.  After conversion the values of string attributes
+    will be properly escaped as attribute values when inserted into the
+    tag.
+
+    Boolean flags are treated differently: if the value of such an
+    attribute is true, the attribute is included in the tag without a
+    value, if the value is false, the attribute is omitted.  The boolean
+    attributes handled in this way are given by the _booleans parameter,
+    which is a sequence of attribute names.  Its default value is
+    ('checked', 'disabled', 'multiple', 'selected')
+
+    To allow for attribute names that are also python keywords, a single
+    trailing underscore character is removed from an attribute name if
+    it is preset, so that e.g. the class attribute can be specified
+    using the class_ keyword parameters.
+
+    A few attribute names are not valid Python identifiers because they
+    contain a minus-sign (e.g. accept-charset).  However, since there
+    are no attribute names that contain underscores, underscores in a
+    keyword argument will be converted to minus-signs to determine the
+    attribute name.  For instance the accept-charset attribute can be
+    given as accept_charset to this function.
+
+    Examples:
+    >>> from mpulsweb.lib.renderer import tag
+    >>> tag("input", type="text", name="title", disabled=False)
+    '<input type="text" name="title">'
+    >>> 
+    """
+    out = ["<%s" % tagname]
+    for name, value in attrs.items():
+        if name.endswith("_"):
+            name = name[:-1]
+        name = name.replace("_", "-")
+        if name in _booleans:
+            if value:
+                out.append(' %s="%s"' % (name, name))
+        else:
+            if value is None:
+                value = ""
+            elif not isinstance(value, basestring):
+                value = str(value)
+            out.append(" %s=%s" % (name, quoteattr(value)))
+    if _close:
+        out.append(">")
+    else:
+        out.append(">")
+    return "".join(out)
+
+
+
 # Helper functions used in the UI to show some information like status messages
 # or icons
 

Modified: base/trunk/mpulsweb/lib/navigation.py
===================================================================
--- base/trunk/mpulsweb/lib/navigation.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/lib/navigation.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -40,18 +40,32 @@
 from formed.instance.backends.postgres import DBFactory as InstanceFactory
 
 from mpulsweb.lib.db import PostgresDBInterface
+import mpulsweb.lib.helpers
 
-SELECT_ITEM = u"/formularpage/select/%s"
-SELECT_BRANCH = u"/navigation/select_branch/%s"
-CLOSE_BRANCH = u"/navigation/close_branch/%s"
-OPEN_BRANCH = u"/navigation/open_branch/%s"
 
-CHECK_MODIFICATION = u'onclick="return checkModification();"'
+log = logging.getLogger(__name__)
 
 
-log = logging.getLogger(__name__)
+def select_item_url(id):
+    return mpulsweb.lib.helpers.url_for(controller="/formularpage",
+                                        action="select", id=id)
 
+def select_branch_url(id):
+    return mpulsweb.lib.helpers.url_for(controller="/navigation",
+                                        action="select_branch", id=id)
 
+def close_branch_url(id):
+    return mpulsweb.lib.helpers.url_for(controller="/navigation",
+                                        action="close_branch", id=id)
+
+def open_branch_url(id):
+    return mpulsweb.lib.helpers.url_for(controller="/navigation",
+                                        action="open_branch", id=id)
+
+
+CHECK_MODIFICATION = u'onclick="return checkModification();"'
+
+
 def get_navigation(id, openfolders=None):
     factory = InstanceFactory(g.formedTree, PostgresDBInterface())
     instance_tree = factory.loadInstanceTreeByIdentifier(id,
@@ -95,7 +109,10 @@
         self.cache = {}
 
     def get_image(self, name, attributes=""):
-        return '<img src="%s" %s>' % (name, attributes)
+        if isinstance(name, unicode):
+            name = name.encode("utf-8")
+        return '<img src="%s" %s>' % (mpulsweb.lib.helpers.url_for(name),
+                                      attributes)
 
     def get_base(self):
         return self.base
@@ -159,7 +176,7 @@
         icon = []
         entry = []
         if self.is_child():
-            select_link = SELECT_ITEM % self.key
+            select_link = select_item_url(self.key)
             icon.append(u'<a href="%s" %s>'
                         % (select_link, CHECK_MODIFICATION))
             icon.append(get_image("/images/icons/navigation/entry.png",
@@ -169,9 +186,9 @@
                                   % (_('entry'), _('Open page'))))
         else:
             deepest = self.deepest_item()
-            select_link = SELECT_BRANCH %  deepest.key
+            select_link = select_branch_url(deepest.key)
             if self.is_open:
-                action = CLOSE_BRANCH % self.key
+                action = close_branch_url(self.key)
                 icon.append(u'<a href="%s" %s>' % (action, CHECK_MODIFICATION))
                 icon.append(get_image("/images/icons/navigation/folder_open.png",
                                       u' border="0"'
@@ -179,7 +196,7 @@
                                       u' title="%s"'
                                       % (_('entry'), _('Open page'))))
             else:
-                action = OPEN_BRANCH % self.key
+                action = open_branch_url(self.key)
                 icon.append(u'<a href="%s" %s>' % (action, CHECK_MODIFICATION))
                 icon.append(get_image("/images/icons/navigation/folder_closed.png",
                                       u' border="0"'

Modified: base/trunk/mpulsweb/lib/renderer.py
===================================================================
--- base/trunk/mpulsweb/lib/renderer.py	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/lib/renderer.py	2010-05-31 10:04:21 UTC (rev 2827)
@@ -30,7 +30,6 @@
 
 import re
 from cgi import escape
-from xml.sax.saxutils import quoteattr
 import logging
 
 from pylons.i18n import _
@@ -41,7 +40,7 @@
 from formed.instance.backends.common import RuleEvalContext
 
 from mpulsweb.lib.helper.filters import NA
-from mpulsweb.lib.helpers import dd_mm_YYYY as format_date
+from mpulsweb.lib.helpers import tag, url_for, dd_mm_YYYY as format_date
 
 
 log = logging.getLogger(__name__)
@@ -73,66 +72,6 @@
     return depth
 
 
-def tag(tagname, _close=False,
-        _booleans=('checked', 'disabled', 'multiple', 'selected'), **attrs):
-    """Create an opening HTML tag with properly escaped attributes.
-
-    The tagname parameter gives the name of the tag.  The attributes and
-    their values are given as keyword parameters.  Most attributes have
-    string values.  Boolean attributes are treated as described below.
-    The values of string attributes are converted to strings if they are
-    not aleady strings (byte-strings or unicode) using these rules: None
-    is converted to the empty string, other values are converted using
-    the str function.  After conversion the values of string attributes
-    will be properly escaped as attribute values when inserted into the
-    tag.
-
-    Boolean flags are treated differently: if the value of such an
-    attribute is true, the attribute is included in the tag without a
-    value, if the value is false, the attribute is omitted.  The boolean
-    attributes handled in this way are given by the _booleans parameter,
-    which is a sequence of attribute names.  Its default value is
-    ('checked', 'disabled', 'multiple', 'selected')
-
-    To allow for attribute names that are also python keywords, a single
-    trailing underscore character is removed from an attribute name if
-    it is preset, so that e.g. the class attribute can be specified
-    using the class_ keyword parameters.
-
-    A few attribute names are not valid Python identifiers because they
-    contain a minus-sign (e.g. accept-charset).  However, since there
-    are no attribute names that contain underscores, underscores in a
-    keyword argument will be converted to minus-signs to determine the
-    attribute name.  For instance the accept-charset attribute can be
-    given as accept_charset to this function.
-
-    Examples:
-    >>> from mpulsweb.lib.renderer import tag
-    >>> tag("input", type="text", name="title", disabled=False)
-    '<input type="text" name="title">'
-    >>> 
-    """
-    out = ["<%s" % tagname]
-    for name, value in attrs.items():
-        if name.endswith("_"):
-            name = name[:-1]
-        name = name.replace("_", "-")
-        if name in _booleans:
-            if value:
-                out.append(' %s="%s"' % (name, name))
-        else:
-            if value is None:
-                value = ""
-            elif not isinstance(value, basestring):
-                value = str(value)
-            out.append(" %s=%s" % (name, quoteattr(value)))
-    if _close:
-        out.append(">")
-    else:
-        out.append(">")
-    return "".join(out)
-
-
 def hidden_bool_tag(id):
     """Return the hidden HTML input tag for the plain boolean field given by id.
 
@@ -165,6 +104,11 @@
             form_result[fieldid] = ""
 
 
+def icon(name):
+    """Return the url for the icon given by name."""
+    return url_for("/images/icons/" + name)
+
+
 class Text:
 
     def __init__(self, txt):
@@ -239,9 +183,11 @@
     def render(self, showNext=False):
         out = []
         if not self.ro_mode:
-            out.append('<form id="formularpage"'
-                       ' action="/formularpage/save"'
-                       ' accept-charset="UTF-8" method="POST">\n')
+            out.append(tag("form", id="formularpage",
+                           action=url_for(controller="formularpage",
+                                          action="save"),
+                           accept_charset="UTF-8",
+                           method="POST"))
             # Add submitbutton at the top of the page too
             out.append('<div class="widget formbuttons">')
             out.append(tag("input", type="submit", name="save",
@@ -326,25 +272,25 @@
 
         out = []
         if meta.hasHelp():
-            out.append(tag("a", href="/annotations/help/%s" % meta.getName(),
-                           target="_blank"))
-            out.append('<img src="/images/icons/formular/help.png" alt="help">')
+            out.append(tag("a", target="_blank",
+                           href=url_for(controller="annotations",
+                                        action="help", id=meta.getName())))
+            out.append(tag("img", src=icon("formular/help.png"), alt="help"))
             out.append('</a>')
         if is_required(meta.getFlags()):
-            out.append(tag("a",
-                           href="/annotations/required/%s" % meta.getName(),
-                           target="_blank"))
-            out.append('<img src="/images/icons/formular/required.png"'
-                       ' width="12"'
-                       ' height="12"'
-                       ' alt="required">')
+            out.append(tag("a", target="_blank",
+                           href=url_for(controller="annotations",
+                                        action="required", id=meta.getName())))
+            out.append(tag("img", src=icon("formular/required.png"),
+                           width="12", height="12", alt="required"))
             out.append('</a>')
         if is_evaluation_relevant(meta.getFlags()):
-            out.append(tag("a",
-                           href="/annotations/evaluation/%s" % meta.getName(),
-                           target="_blank"))
-            out.append('<img src="/images/icons/formular/evaluation.png"'
-                       ' alt="evaluation">')
+            out.append(tag("a", target="_blank",
+                           href=url_for(controller="annotations",
+                                        action="evaluation",
+                                        id=meta.getName())))
+            out.append(tag("img", src=icon("formular/evaluation.png"),
+                           alt="evaluation"))
             out.append('</a>')
         return "".join(out)
 
@@ -442,7 +388,7 @@
             out.append('<td class="vcontrol" width="15">')
             if not self.ro_mode:
                 out.append(tag("input", name="del_rg", type="image",
-                               src="/images/icons/delete_active_16.png",
+                               src=icon("delete_active_16.png"),
                                value=child.getIdentifier(),
                                alt=_('Delete RG'), title=_('Delete RG')))
             out.append('</td>')
@@ -454,9 +400,8 @@
             out.append('<tr>')
             out.append('<td class="hcontrol" style="text-align: right;"'
                        ' colspan="2">')
-            out.append(tag("input", width="16", name="add_rg",
-                           type="image", src="/images/icons/new_16.png",
-                           value=node.getIdentifier(),
+            out.append(tag("input", width="16", name="add_rg", type="image",
+                           src=icon("new_16.png"), value=node.getIdentifier(),
                            alt=_('Add new RG'), title=_('Add new RG')))
             out.append("</td>")
             out.append("</tr>")
@@ -477,36 +422,42 @@
         out.append('<td class="hcontrol">')
 
         out.append(tag("a", name=_('Select first'),
-                       href="/repeatgroup/select_first/%s" % child_id))
-        out.append('<img src="/images/icons/go_first_16.png"/>')
+                       href=url_for(controller="repeatgroup",
+                                    action="select_first", id=child_id)))
+        out.append(tag("img", src=icon("go_first_16.png")))
         out.append('</a>')
 
         out.append(tag("a", name=_('Select previous'),
-                       href="/repeatgroup/select_prev/%s" % child_id))
-        out.append('<img src="/images/icons/go_previous_16.png"/>')
+                       href=url_for(controller="repeatgroup",
+                                    action="select_prev", id=child_id)))
+        out.append(tag("img", src=icon("go_previous_16.png")))
         out.append('</a>')
 
         out.append(tag("a", name=_('Select next'),
-                       href="/repeatgroup/select_next/%s" % child_id))
-        out.append('<img src="/images/icons/go_next_16.png"/>')
+                       href=url_for(controller="repeatgroup",
+                                    action="select_next", id=child_id)))
+        out.append(tag("img", src=icon("go_next_16.png")))
         out.append('</a>')
 
         out.append(tag("a", name=_('Select last'),
-                       href="/repeatgroup/select_last/%s" % child_id))
-        out.append('<img src="/images/icons/go_last_16.png"/>')
+                       href=url_for(controller="repeatgroup",
+                                    action="select_last", id=child_id)))
+        out.append(tag("img", src=icon("go_last_16.png")))
         out.append('</a>')
 
         out.append(' | ?/? | ')
 
         if not self.ro_mode:
             out.append(tag("a", name=_('Create new'),
-                           href="/repeatgroup/new/%s" % child_id))
-            out.append('<img src="/images/icons/formular/rg_new.png"/>')
+                           href=url_for(controller="repeatgroup", action="new",
+                                        id=child_id)))
+            out.append(tag("img", src=icon("formular/rg_new.png")))
             out.append('</a>')
 
             out.append(tag("a", name=_('Delete'),
-                           href="/repeatgroup/delete/%s" % child_id))
-            out.append('<img src="/images/icons/formular/rg_delete.png"/>')
+                           href=url_for(controller="repeatgroup",
+                                        action="delete", id=child_id)))
+            out.append(tag("img", src=icon("formular/rg_delete.png")))
             out.append('</a>')
 
         out.append('</td>')
@@ -538,7 +489,7 @@
         depth = 1 #visibleDepth(node)
         if text:
             out.append('<p class="text">')
-            out.append('<img src="/images/icons/formular/info.png"> ')
+            out.append(tag("img", src=icon("formular/info.png")))
             out.append(escape(text))
             out.append('</p>')
             self.toTarget(Item("".join(out)), meta.getTarget())
@@ -929,22 +880,23 @@
                         rg.getIdentifier())
             out.append('<tr><td>%s</td></tr>' % escape(rg.getIdentifier()))
         else:
+            child_identifier = rg.getChildren()[0].getIdentifier()
             for num, field in enumerate(fields):
                 item = self.it.getItem('%s:%s:%s'
                                        % (field, rg.getInternalIdentifier(),
                                           case_id))
                 out.append('<tr>')
                 out.append('<td class="label">')
-                out.append(tag("a",
-                               href=("/navigation/select_branch/%s"
-                                     % rg.getChildren()[0].getIdentifier())))
+                out.append(tag("a", href=url_for(controller="navigation",
+                                                 action="select_branch",
+                                                 id=child_identifier)))
                 out.append(escape(self._getMeta(item).getDescription()))
                 out.append('</a>')
                 out.append('</td>')
                 out.append('<td>')
-                out.append(tag("a",
-                               href=("/navigation/select_branch/%s"
-                                     % rg.getChildren()[0].getIdentifier())))
+                out.append(tag("a", href=url_for(controller="navigation",
+                                                 action="select_branch",
+                                                 id=child_identifier)))
                 value = item.getValue()
                 if isinstance(self._getMeta(item), data.DateLeaf):
                     value = format_date(value)
@@ -984,8 +936,6 @@
                                                rg.getInternalIdentifier(),
                                                case_id)).getValue())
                 self.fields = fields
-                print "RepeatGroupRenderer.render.SortDummy.__init__", fields
-                print "RepeatGroupRenderer.render.SortDummy.__init__", str(self.value)
 
         unsorted_items = []
         reverse_order = False
@@ -1014,15 +964,17 @@
             out.append('</td>')
             out.append('<td class="actions">')
             out.append(tag("a",
-                           href=("/navigation/select_branch/%s"
-                                 % sd.rg.getChildren()[0].getIdentifier())))
-            out.append(tag("img", src="/images/icons/open_active_22.png",
+                           href=url_for(controller="navigation",
+                                        action="select_branch",
+                                   id=sd.rg.getChildren()[0].getIdentifier())))
+            out.append(tag("img", src=icon("open_active_22.png"),
                            border="0", alt=_('view'), title=_('view')))
             out.append("</a>")
             if not self.ro_mode:
-                out.append(tag("a", href=("/repeatgroup/delete/%s"
-                                          % sd.rg.getIdentifier())))
-                out.append(tag("img", src="/images/icons/delete_active_22.png",
+                out.append(tag("a", href=url_for(controller="repeatgroup",
+                                                 action="delete",
+                                                 id=sd.rg.getIdentifier())))
+                out.append(tag("img", src=icon("delete_active_22.png"),
                                border="0", alt=_('delete'), title=_('delete')))
                 out.append("</a>")
             out.append('</td>')
@@ -1035,8 +987,9 @@
             out.append('<div>')
             out.append('<br>')
             out.append(tag("a", class_="button",
-                           href=("/repeatgroup/new/%s"
-                                 % self.page.getIdentifier())))
+                           href=url_for(controller="repeatgroup",
+                                        action="new",
+                                        id=self.page.getIdentifier())))
             out.append(escape(_('Create new item')))
             out.append("</a>")
             out.append("</div>")
@@ -1053,25 +1006,21 @@
         tree = page.getInstanceTree()
 
         out = []
-        out.append(self.render_items(self.error_items,
-                                     _('Formular errors'),
-                                     "/images/icons/info/alert.png",
-                                     tree))
-        out.append(self.render_items(self.warnings,
-                                     _('Formular warnings'),
-                                     "/images/icons/info/info.png",
-                                     tree,
-                                     css_class = 'warning-box'))
+        out.append(self.render_items(self.error_items, _('Formular errors'),
+                                     icon("info/alert.png"), tree))
+        out.append(self.render_items(self.warnings, _('Formular warnings'),
+                                     icon("info/info.png"), tree,
+                                     css_class='warning-box'))
         return "".join(out)
 
-    def render_items(self, items, title, icon, tree, css_class=""):
+    def render_items(self, items, title, title_icon, tree, css_class=""):
         if not items:
             return ""
 
         out = []
         out.append(tag("div", class_=("widget dialog %s" % css_class)))
         out.append('<h1>')
-        out.append(tag("img", src=icon, alt=''))
+        out.append(tag("img", src=title_icon, alt=''))
         out.append(escape(title))
         out.append('</h1>')
         out.append('<ol>')
@@ -1085,8 +1034,9 @@
                 values = [values]
             for v in values:
                 out.append('<li>')
-                out.append(tag("a", href="/formularpage/undo/%s" % k))
-                out.append(tag("img", src="/images/icons/formular/undo.png",
+                out.append(tag("a", href=url_for(controller="formularpage",
+                                                 action="undo", id=k)))
+                out.append(tag("img", src=icon("formular/undo.png"),
                                border="0", alt="undo",
                                title=_('Restore last valid value'),
                                _close=True))

Added: base/trunk/mpulsweb/public/images/icons/validity-0-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-0-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/icons/validity-1-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-1-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/icons/validity-2-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-2-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/icons/validity-3-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-3-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/icons/validity-4-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-4-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/icons/validity-5-22.png
===================================================================
(Binary files differ)


Property changes on: base/trunk/mpulsweb/public/images/icons/validity-5-22.png
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: base/trunk/mpulsweb/public/images/svg/validity-1.svg
===================================================================
--- base/trunk/mpulsweb/public/images/svg/validity-1.svg	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/public/images/svg/validity-1.svg	2010-05-31 10:04:21 UTC (rev 2827)
@@ -0,0 +1,250 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48"
+   height="48"
+   id="svg4289"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/actions"
+   sodipodi:docname="validity-1.svg"
+   inkscape:export-filename="/home/roland/Projekte/mpuls/base-trunk/mpulsweb/public/images/icons/validity-5-22.png"
+   inkscape:export-xdpi="41.596642"
+   inkscape:export-ydpi="41.596642"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <defs
+     id="defs4291">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective14" />
+    <linearGradient
+       id="linearGradient4622">
+      <stop
+         style="stop-color:#b4b5b3;stop-opacity:1;"
+         offset="0"
+         id="stop4624" />
+      <stop
+         style="stop-color:#d8d9d7;stop-opacity:1"
+         offset="1"
+         id="stop4626" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient4320"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.810197,0,0,2.747234,1.562312,1.675085)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3289"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532645,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3293"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532644,2.747234,0,-17.383207,49.695159)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3297"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532643,2.747234,0,-17.383207,49.695156)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3310"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532645,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       gradientUnits="userSpaceOnUse"
+       y2="83.594818"
+       x2="173.17017"
+       y1="83.594818"
+       x1="25.458191"
+       id="linearGradient3653"
+       xlink:href="#linearGradient3647"
+       inkscape:collect="always" />
+    <linearGradient
+       id="linearGradient3647">
+      <stop
+         id="stop3649"
+         offset="0"
+         style="stop-color: rgb(251, 251, 251); stop-opacity: 1;" />
+      <stop
+         id="stop3651"
+         offset="1"
+         style="stop-color: rgb(0, 102, 34); stop-opacity: 0;" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient4550">
+      <stop
+         id="stop4552"
+         offset="0"
+         style="stop-color: black; stop-opacity: 1;" />
+      <stop
+         id="stop4554"
+         offset="1"
+         style="stop-color: rgb(0, 102, 34); stop-opacity: 0;" />
+    </linearGradient>
+    <inkscape:perspective
+       id="perspective3219"
+       inkscape:persp3d-origin="90 : 61.666667 : 1"
+       inkscape:vp_z="180 : 92.5 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_x="0 : 92.5 : 1"
+       sodipodi:type="inkscape:persp3d" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="5.6568543"
+     inkscape:cx="31.435635"
+     inkscape:cy="-2.8840927"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     width="48px"
+     height="48px"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     inkscape:window-width="1227"
+     inkscape:window-height="880"
+     inkscape:window-x="444"
+     inkscape:window-y="41" />
+  <metadata
+     id="metadata4294">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
+        <dc:title>List remove</dc:title>
+        <dc:date>August 2006</dc:date>
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>Andreas Nilsson</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source>http://www.gnome.org</dc:source>
+        <dc:subject>
+          <rdf:Bag>
+            <rdf:li>remove</rdf:li>
+            <rdf:li>minus</rdf:li>
+          </rdf:Bag>
+        </dc:subject>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/GPL/2.0/">
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Reproduction" />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Distribution" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/Notice" />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/ShareAlike" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/SourceCode" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <rect
+       style="opacity:1;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1.01900005000000005;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3162"
+       width="9.0008926"
+       height="16.310526"
+       x="0.2175142"
+       y="31.505323"
+       rx="2.032932"
+       ry="2.0329323"
+       inkscape:export-filename="/home/roland/Projekte/mpuls/base-trunk/mpulsweb/public/images/icons/rect3162.png"
+       inkscape:export-xdpi="30"
+       inkscape:export-ydpi="30" />
+    <rect
+       ry="2.0329323"
+       rx="2.032932"
+       y="23.903925"
+       x="9.8500967"
+       height="23.911924"
+       width="9.0008926"
+       id="rect3172"
+       style="opacity:1;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1.01900005000000005;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+    <rect
+       style="opacity:1;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1.01900005000000005;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3174"
+       width="9.0008926"
+       height="32.485592"
+       x="19.482679"
+       y="15.330257"
+       rx="2.032932"
+       ry="2.0329323" />
+    <rect
+       ry="2.0329323"
+       rx="2.032932"
+       y="8.3475761"
+       x="29.115261"
+       height="39.468273"
+       width="9.0008926"
+       id="rect3176"
+       style="opacity:1;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1.01900005000000005;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+    <rect
+       style="opacity:1;fill:#2e3436;fill-opacity:1;stroke:none;stroke-width:1.01900005000000005;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       id="rect3178"
+       width="9.0008926"
+       height="47.599998"
+       x="38.747845"
+       y="0.21585064"
+       rx="2.032932"
+       ry="2.0329323" />
+  </g>
+</svg>

Added: base/trunk/mpulsweb/public/images/svg/validity.svg
===================================================================
--- base/trunk/mpulsweb/public/images/svg/validity.svg	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/public/images/svg/validity.svg	2010-05-31 10:04:21 UTC (rev 2827)
@@ -0,0 +1,249 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="48"
+   height="48"
+   id="svg4289"
+   sodipodi:version="0.32"
+   inkscape:version="0.46"
+   version="1.0"
+   sodipodi:docbase="/home/dobey/Projects/gnome-icon-theme/scalable/actions"
+   sodipodi:docname="validity.svg"
+   inkscape:export-filename="/home/roland/Projekte/mpuls/base-trunk/mpulsweb/public/images/icons/validity.[mg.png"
+   inkscape:export-xdpi="43.659554"
+   inkscape:export-ydpi="43.659554"
+   inkscape:output_extension="org.inkscape.output.svg.inkscape">
+  <defs
+     id="defs4291">
+    <inkscape:perspective
+       sodipodi:type="inkscape:persp3d"
+       inkscape:vp_x="0 : 24 : 1"
+       inkscape:vp_y="0 : 1000 : 0"
+       inkscape:vp_z="48 : 24 : 1"
+       inkscape:persp3d-origin="24 : 16 : 1"
+       id="perspective14" />
+    <linearGradient
+       id="linearGradient4622">
+      <stop
+         style="stop-color:#b4b5b3;stop-opacity:1;"
+         offset="0"
+         id="stop4624" />
+      <stop
+         style="stop-color:#d8d9d7;stop-opacity:1"
+         offset="1"
+         id="stop4626" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient4320"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.810197,0,0,2.747234,1.562312,1.675085)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient2476"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.810197,0,0,2.747234,1.4414549,1.987585)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3282"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.810197,0,0,2.747234,1.4414549,1.987585)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3285"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532645,2.747234,0,-17.383207,49.69516)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3289"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532645,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3293"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532644,2.747234,0,-17.383207,49.695159)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3297"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532643,2.747234,0,-17.383207,49.695156)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3301"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532644,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3305"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532644,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3307"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(2.5419329,0,0,2.747234,2.0488972,-6.7124138)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient4622"
+       id="linearGradient3310"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(0,-1.4532645,2.747234,0,-17.383207,49.695158)"
+       x1="8.6790628"
+       y1="6.7354665"
+       x2="8.7223368"
+       y2="10.858153" />
+  </defs>
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="5.6568543"
+     inkscape:cx="35.099308"
+     inkscape:cy="17.006944"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     width="48px"
+     height="48px"
+     showguides="true"
+     inkscape:guide-bbox="true"
+     inkscape:window-width="1116"
+     inkscape:window-height="707"
+     inkscape:window-x="556"
+     inkscape:window-y="92" />
+  <metadata
+     id="metadata4294">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" />
+        <dc:title>List remove</dc:title>
+        <dc:date>August 2006</dc:date>
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>Andreas Nilsson</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source>http://www.gnome.org</dc:source>
+        <dc:subject>
+          <rdf:Bag>
+            <rdf:li>remove</rdf:li>
+            <rdf:li>minus</rdf:li>
+          </rdf:Bag>
+        </dc:subject>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/GPL/2.0/">
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Reproduction" />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Distribution" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/Notice" />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/ShareAlike" />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/SourceCode" />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <path
+       style="fill:url(#linearGradient3310);fill-opacity:1;stroke:#555753;stroke-width:1.01900005;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 11.51057,46.044966 L 16.476057,46.044966 L 16.431786,28.321761 L 11.51057,28.321761 L 11.51057,46.044966 z"
+       id="path4314"
+       sodipodi:nodetypes="ccccc" />
+    <path
+       sodipodi:nodetypes="ccccc"
+       id="path3278"
+       d="M 2.3547637,46.044904 L 7.3202507,46.044904 L 7.2759797,34.256214 L 2.3547637,34.256214 L 2.3547637,46.044904 z"
+       style="fill:url(#linearGradient3285);fill-opacity:1;stroke:#555753;stroke-width:1.019;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+    <path
+       style="fill:url(#linearGradient3289);fill-opacity:1;stroke:#555753;stroke-width:1.01900005;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 20.666375,46.044904 L 25.631862,46.044904 L 25.587591,22.412176 L 20.666375,22.412176 L 20.666375,46.044904 z"
+       id="path3287"
+       sodipodi:nodetypes="ccccc" />
+    <path
+       sodipodi:nodetypes="ccccc"
+       id="path3291"
+       d="M 29.822181,46.044904 L 34.787668,46.044904 L 34.743397,13.926894 L 29.822181,13.926894 L 29.822181,46.044904 z"
+       style="fill:url(#linearGradient3293);fill-opacity:1;stroke:#555753;stroke-width:1.01900005;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
+    <path
+       style="fill:url(#linearGradient3297);fill-opacity:1;stroke:#555753;stroke-width:1.01900005;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+       d="M 38.977986,46.044904 L 43.943473,46.044904 L 43.899202,5.0880604 L 38.977986,5.0880604 L 38.977986,46.044904 z"
+       id="path3295"
+       sodipodi:nodetypes="ccccc" />
+  </g>
+</svg>

Modified: base/trunk/mpulsweb/templates/administration/delete_user_helper.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/delete_user_helper.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/delete_user_helper.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,10 +3,10 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-  <li><a href="/administration/deleteUser/${c.delete_user_id}">${_('adm_np_deleteuser')}</a></li>
-  <li><a href="/administration/deleteUser/${c.delete_user_id}/1">${_('adm_np_deleteuser_helper')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id)}">${_('adm_np_deleteuser')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id, confirmed=1)}">${_('adm_np_deleteuser_helper')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">

Modified: base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteuser.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteuser.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteuser.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,11 +2,11 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
 	<li><a href="#">${_('adm_np_delteuser')}</a></li>
-        <li><a href="/administration/deleteUser/${c.delete_user_id}">${_('adm_np_deleteuser')}</a></li>
-        <li><a href="/administration/deleteUser/${c.delete_user_id}/1">${_('adm_np_deleteuser_helper')}</a></li>i
+        <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id)}">${_('adm_np_deleteuser')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id, confirmed=1)}">${_('adm_np_deleteuser_helper')}</a></li>i
         <li><a href="#">${_('adm_np_delteuser_success')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteusergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteusergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/confirm_deleteusergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/deleteUserGroup">${_('adm_np_deleteusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='deleteUserGroup')}">${_('adm_np_deleteusergroup')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/confirm_resetpassword.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/confirm_resetpassword.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/confirm_resetpassword.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,9 +2,9 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-	<li><a href="/administration/showUser">${_('adm_np_showuser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='showUser')}">${_('adm_np_showuser')}</a></li>
 	<li><a href="#">${_('adm_np_resetpassword')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/failed_delete_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/failed_delete_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/failed_delete_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('adm_np_root')}</a></li>
-        <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('adm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
 	<li><a href="#">${_('adm_np_failed_deleteuser')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/failed_new_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/failed_new_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/failed_new_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/newUserGroup">${_('adm_np_newusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='newUserGroup')}">${_('adm_np_newusergroup')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/notificate_delete_user_helper.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/notificate_delete_user_helper.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/notificate_delete_user_helper.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,10 +2,10 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-        <li><a href="/administration/deleteUser/${c.delete_user_id}">${_('adm_np_deleteuser')}</a></li>
-  <li><a href="/administration/deleteUser/${c.delete_user_id}/1">${_('adm_np_deleteuser_helper')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id)}">${_('adm_np_deleteuser')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='deleteUser', id=c.delete_user_id, confirmed=1)}">${_('adm_np_deleteuser_helper')}</a></li>
 	<li><a href="#">${_('adm_np_deleteuser_helper_set_editor')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/success_delete_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/success_delete_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/success_delete_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('adm_np_root')}</a></li>
-        <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('adm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
 	<li><a href="#">${_('adm_np_success_deleteuser')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/success_deletegroup_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/success_deletegroup_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/success_deletegroup_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/deleteUserGroup">${_('adm_np_deleteusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='deleteUserGroup')}">${_('adm_np_deleteusergroup')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/success_edit_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/success_edit_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/success_edit_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,10 +2,10 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('adm_np_root')}</a></li>
-        <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-        <li><a href="/administration/showUser/${c.uo.id}">${_('adm_np_showuser')}</a></li>
-	<li><a href="/administration/editUser">${_('adm_np_edituser')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('adm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}">${_('adm_np_showuser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='editUser')}">${_('adm_np_edituser')}</a></li>
         <li><a href="#">${_('adm_np_edituser_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/success_edit_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/success_edit_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/success_edit_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/editUserGroup/${c.group.id}">${_('adm_np_editusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='editUserGroup', id=c.group.id)}">${_('adm_np_editusergroup')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/dialogs/success_new_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/dialogs/success_new_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/dialogs/success_new_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/newUserGroup">${_('adm_np_newusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='newUserGroup')}">${_('adm_np_newusergroup')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/administration/edit_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/edit_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/edit_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -10,10 +10,10 @@
 %>
 <%def name="buildNavipath()">
 		${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-        <li><a href="/administration/showUser/${c.uo.id}">${_('adm_np_showuser')}</a></li>
-	<li><a href="/administration/editUser">${_('adm_np_edituser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}">${_('adm_np_showuser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='editUser')}">${_('adm_np_edituser')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -22,8 +22,8 @@
   <div id="modusfield">
     <div class="actions">
 	<ul>
-		<li> <a href="/administration/resetUserPassword/${c.uo.id}"> ${_('adm_actions_link_userpassreset')}</a> </li>
-		<li> <a href="/administration/showUser/${c.uo.id}">  ${_('menu_adm_link_useredit_back')} </a></li>
+		<li> <a href="${h.url_for(controller='/administration', action='resetUserPassword', id=c.uo.id)}"> ${_('adm_actions_link_userpassreset')}</a> </li>
+		<li> <a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}">  ${_('menu_adm_link_useredit_back')} </a></li>
 	</ul>
     </div>
   </div>
@@ -31,7 +31,8 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="admin_edit_user">
 <div id="waska_form">
-<form action="/administration/editUserAction" method="POST">
+<form action="${h.url_for(controller='/administration', action='editUserAction')}"
+      method="POST">
 
 	<fieldset>
         

Modified: base/trunk/mpulsweb/templates/administration/edit_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/edit_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/edit_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -7,9 +7,9 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/editUserGroup/${c.group.id}">${_('adm_np_editusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='editUserGroup', id=c.group.id)}">${_('adm_np_editusergroup')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -28,7 +28,7 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="admin_new_user">
   <div id="waska_form">
-    <form action="/administration/editUserGroupAction" method="POST">
+    <form action="${h.url_for(controller='/administration', action='editUserGroupAction')}" method="POST">
       <input type="hidden" name="id">
       <fieldset><legend>${_('adm_form_legend_groupdata')}</legend>
         <div class="w25">

Modified: base/trunk/mpulsweb/templates/administration/new_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/new_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/new_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -11,9 +11,9 @@
 
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-  <li><a href="/administration/newUser">${_('adm_np_newuser')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='newUser')}">${_('adm_np_newuser')}</a></li>
 </%def>
 
 <div id="content_header_small">
@@ -35,7 +35,8 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="admin_new_user">
   <div id="waska_form">
-    <form action="/administration/newUserAction" method="POST">
+    <form action="${h.url_for(controller='/administration', action='newUserAction')}"
+          method="POST">
       <fieldset><legend>${_('adm_form_legend_personal')}</legend>
         <div class="w25">
           % if c.form_errors.get('firstname'):

Modified: base/trunk/mpulsweb/templates/administration/new_user_result.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/new_user_result.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/new_user_result.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,9 +3,9 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
 		${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-	<li><a href="/administration/newUser">${_('adm_np_newuser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='newUser')}">${_('adm_np_newuser')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">

Modified: base/trunk/mpulsweb/templates/administration/new_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/new_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/new_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,9 +6,9 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
-  <li><a href="/administration/newUserGroup">${_('adm_np_newusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='newUserGroup')}">${_('adm_np_newusergroup')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -27,7 +27,8 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="admin_new_user">
 <div id="waska_form">
-<form action="/administration/newUserGroupAction" method="POST">
+<form action="${h.url_for(controller='/administration', action='newUserGroupAction')}" 
+      method="POST">
   <fieldset><legend>${_('adm_form_legend_groupdata')}</legend>
   <div class="w25">
   % if c.form_errors.get('name'):

Modified: base/trunk/mpulsweb/templates/administration/overview_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/overview_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/overview_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
 </%def>
 
 
@@ -15,7 +15,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/administration/newUser"> ${_('adm_actions_link_newuser')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='newUser')}"> ${_('adm_actions_link_newuser')}</a></li>
       </ul>
     </div>
   </div>
@@ -37,17 +37,17 @@
        <tr class="table_row_h">
        <% idset = 0 %>
        % endif
-         <td><a href="/administration/showUser/${user.id}">${user.last_name| F.NA}</a></td>
-         <td><a href="/administration/showUser/${user.id}">${user.first_name| F.NA}</a></td>
+         <td><a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}">${user.last_name| F.NA}</a></td>
+         <td><a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}">${user.first_name| F.NA}</a></td>
          % if user.getRole() == 'Admin':
-           <td><img src="/images/icons/admin_grey_tag.gif" alt="Administratorin, Administrator" title="Administrator/in"></td>
+           <td><img src="${h.url_for('/images/icons/admin_grey_tag.gif')}" alt="Administratorin, Administrator" title="Administrator/in"></td>
          % else:
-           <td><img src="/images/icons/cm_grey_tag_width.gif" alt="Case-Managerin, Case-Manager" title="Case-Manager/in"></td>
+           <td><img src="${h.url_for('/images/icons/cm_grey_tag_width.gif')}" alt="Case-Managerin, Case-Manager" title="Case-Manager/in"></td>
          % endif
          <td>
-           <a href="/administration/showUser/${user.id}"><img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+           <a href="${h.url_for(controller='/administration', action='showUser', id=user.id)}"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
            % if str(user.id) != str(session.get('USER_AUTHORIZED').id):
-            <a href="/administration/deleteUser/${user.id}"><img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
+            <a href="${h.url_for(controller='/administration', action='deleteUser', id=user.id)}"><img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
            % endif
          </td>
        </tr>

Modified: base/trunk/mpulsweb/templates/administration/overview_usergroups.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/overview_usergroups.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/overview_usergroups.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUserGroups">${_('adm_np_usergroup_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUserGroups')}">${_('adm_np_usergroup_overview')}</a></li>
 </%def>
 
 
@@ -15,7 +15,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/administration/newUserGroup"> ${_('adm_actions_link_newusergroup')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='newUserGroup')}"> ${_('adm_actions_link_newusergroup')}</a></li>
       </ul>
     </div>
   </div>
@@ -35,11 +35,11 @@
     <% idset = 0 %>
      % endif
        <td>
-            <a href="/administration/showUserGroup/${group.id}">${group.name| F.NA}</a>
+            <a href="${h.url_for(controller='/administration', action='showUserGroup', id=group.id)}">${group.name| F.NA}</a>
        </td>
        <td>
-         <a href="/administration/showUserGroup/${group.id}"><img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
-         <a href="/administration/deleteUserGroup/${group.id}"><img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
+         <a href="${h.url_for(controller='/administration', action='showUserGroup', id=group.id)}"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+         <a href="${h.url_for(controller='/administration', action='deleteUserGroup', id=group.id)}"><img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
        </td>
      </tr>
   % endfor

Modified: base/trunk/mpulsweb/templates/administration/reset_password.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/reset_password.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/reset_password.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,14 +3,14 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-	<li><a href="/administration/showUser">${_('adm_np_showuser')}</a></li>
+	<li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='showUser')}">${_('adm_np_showuser')}</a></li>
 	<li><a href="#">${_('adm_np_resetpassword')}</a></li>
 </%def>
 <div class="dialog">
-<h1><img src="/images/icons/info/confirmation.png" alt="Bestäntigung"</> ${_('adm_header_resetpassword')}</h1>
+<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="Bestäntigung"</> ${_('adm_header_resetpassword')}</h1>
 <p>${_('adm_con_rp_the_password')} <strong>${c.uo.first_name| F.NA} ${c.uo.last_name| F.NA}</strong> ${_('adm_con_rp_has_been_changed')}<br>
 ${_('adm_con_rp_new_pw')} <strong>${h.literal(c.new_password) | h}</strong></p>
-<a class="button" href="/administration/overviewUser">${_('adm_con_rp_to_useroverview')}</a>
+<a class="button" href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_con_rp_to_useroverview')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/administration/show_user.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/show_user.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/show_user.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,9 +2,9 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-  <li><a href="/administration/showUser/${c.uo.id}">${_('adm_np_showuser')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='showUser', id=c.uo.id)}">${_('adm_np_showuser')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -13,7 +13,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li> <a href="/administration/editUser/${c.uo.id}"> ${_('adm_actions_link_edituser')}</a> </li>
+        <li> <a href="${h.url_for(controller='/administration', action='editUser', id=c.uo.id)}"> ${_('adm_actions_link_edituser')}</a> </li>
         <li><a href="${h.url_for(controller='administration', action='overviewUser')}"> ${_('menu_adm_link_useroverview_back')}</a></li>
       </ul>
     </div>

Modified: base/trunk/mpulsweb/templates/administration/show_usergroup.mako
===================================================================
--- base/trunk/mpulsweb/templates/administration/show_usergroup.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/administration/show_usergroup.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,9 +3,9 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/administration">${_('adm_np_root')}</a></li>
-  <li><a href="/administration/overviewUser">${_('adm_np_overview')}</a></li>
-  <li><a href="/administration/showUserGroup/${c.group.id}">${_('adm_np_showusergroup')}</a></li>
+  <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='overviewUser')}">${_('adm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/administration', action='showUserGroup', id=c.group.id)}">${_('adm_np_showusergroup')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -14,7 +14,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/administration/editUserGroup/${c.group.id}"> ${_('adm_actions_link_editusergroup')}</a> </li>
+        <li><a href="${h.url_for(controller='/administration', action='editUserGroup', id=c.group.id)}"> ${_('adm_actions_link_editusergroup')}</a> </li>
         <li><a href="${h.url_for(controller='administration', action='overviewUserGroups')}"> ${_('menu_adm_link_usergroupoverview_back')}</a></li>
       </ul>
     </div>

Modified: base/trunk/mpulsweb/templates/annotations/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/annotations/main.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/annotations/main.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -13,7 +13,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <meta http-equiv="content-style-type" content="text/css">
     <meta http-equiv="expires" content="0">
-    <link rel="shortcut icon" type="image/x-icon" href="/images/kompetenz3.ico">
+    <link rel="shortcut icon" type="image/x-icon" href="${h.url_for('/images/kompetenz3.ico')}">
     % if c.print_version:
     <link href="${h.url_for('/styles/all.css')}" media="all" rel="stylesheet" type="text/css">
     <link href="${h.url_for('/styles/print.css')}" media="screen" rel="stylesheet" type="text/css">

Modified: base/trunk/mpulsweb/templates/appointments/appointment_form.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/appointment_form.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/appointment_form.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,6 +1,7 @@
 <div id="appointment">
 <div id="waska_form">
-<form action="/appointment/save" method="post">
+<form action="${h.url_for(controller='/appointment', action='save')}"
+      method="post">
 <div class="w25">
 	<label for="title">${_('app_form_label_title')}</label><br>
 	<input type="text" class="field" name="title" id="title" maxlength="128">

Modified: base/trunk/mpulsweb/templates/appointments/appointmentlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/appointmentlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/appointmentlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 <%inherit file="/appointments/overview_body.mako" />
 <%def name="showAppointmentActions(appointment)">
-<a href="${h.url_for(controller='/appointment', action='show', id=appointment.id)}"><img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+<a href="${h.url_for(controller='/appointment', action='show', id=appointment.id)}"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
 % if h.hasRole(['admin_ka']):
-  <a href="${h.url_for(controller='/appointment', action='delete', id=appointment.id, confirmed=0)}"><img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
+  <a href="${h.url_for(controller='/appointment', action='delete', id=appointment.id, confirmed=0)}"><img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
 % endif
 </%def>

Modified: base/trunk/mpulsweb/templates/appointments/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/edit.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/edit.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -9,7 +9,7 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/appointment/overview">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/appointment', action='overview')}">${_('app_np_list')}</a></li>
   <li><a href="#">${_('app_np_edit')}</a></li>
 </%def>
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/appointments/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/new.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/new.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -9,8 +9,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/appointment/overview">${_('app_np_list')}</a></li>
-  <li><a href="/appointment/new/">${_('app_np_new')}</a></li>
+  <li><a href="${h.url_for(controller='/appointment', action='overview')}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/appointment', action='new')}">${_('app_np_new')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">

Modified: base/trunk/mpulsweb/templates/appointments/overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/overview.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/overview.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/appointment/overview">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/appointment', action='overview')}">${_('app_np_list')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -11,7 +11,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/appointment/create"> ${_('app_actions_link_newappointment')}</a></li>
+        <li><a href="${h.url_for(controller='/appointment', action='create')}"> ${_('app_actions_link_newappointment')}</a></li>
       </ul>
     </div>
   </div>

Modified: base/trunk/mpulsweb/templates/appointments/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/appointments/show.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/appointments/show.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
 ${parent.buildNavipath()}
-  <li><a href="/appointment/overview">${_('app_np_list')}</a></li>
-  <li><a href="/appointment/show/"></a>${_('app_np_show')}</li>
+  <li><a href="${h.url_for(controller='/appointment', action='overview')}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/appointment', action='show')}"></a>${_('app_np_show')}</li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">

Modified: base/trunk/mpulsweb/templates/auth/logout.mako
===================================================================
--- base/trunk/mpulsweb/templates/auth/logout.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/auth/logout.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,6 +3,6 @@
 <h1>${_('%s Abmeldung') % h.get_app_title()}</h1>
 <div id="waska_form_login">
   <p>
-    ${_('logout_p_logout successful')} <a href="/">${_('logout_a_login')}</a>${_('logout_p_login_again')}.
+    ${_('logout_p_logout successful')} <a href="${h.url_for('/')}">${_('logout_a_login')}</a>${_('logout_p_login_again')}.
   </p>
 </div>

Modified: base/trunk/mpulsweb/templates/auth/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/auth/main.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/auth/main.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -12,11 +12,11 @@
   <div id="footer_login">
     <p>${_('main_login_bmf_phrase') % h.get_app_title()}</p>
      <a target="_blank" href="http://www.bmfsfj.de">
-      <img src="/images/logos/BMFSFJ_C_M_web.jpg" 
+      <img src="${h.url_for('/images/logos/BMFSFJ_C_M_web.jpg')}" 
         alt="Logo Bundesministerium f&#252;r Familie, Senioren, Frauen und Jugend" border="0">
     </a>
      <a target="_blank" href="http://ec.europa.eu/employment_social/esf2000/index_de.html">
-      <img src="/images/logos/eu_logo_4c_pos_web2.jpg" 
+      <img src="${h.url_for('/images/logos/eu_logo_4c_pos_web2.jpg')}" 
         alt="Logo Europ&#228;ische Union - Europ&#228;ische Sozialfonds" border="0">
     </a>
   </div>
@@ -40,4 +40,4 @@
     </ul>
   </div>
   % endif
-</%def>
\ No newline at end of file
+</%def>

Modified: base/trunk/mpulsweb/templates/base.mako
===================================================================
--- base/trunk/mpulsweb/templates/base.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/base.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -27,7 +27,7 @@
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     <meta http-equiv="content-style-type" content="text/css">
     <meta http-equiv="expires" content="0">
-    <link rel="shortcut icon" type="image/x-icon" href="/images/kompetenz3.ico">
+    <link rel="shortcut icon" type="image/x-icon" href="${h.url_for('/images/kompetenz3.ico')}">
     % if c.print_version:
       <link href="${h.url_for('/styles/all.css')}" media="all" rel="stylesheet" 
             type="text/css">
@@ -47,8 +47,10 @@
       <link href="${h.url_for('/styles/menu.css')}" media="screen" 
             rel="stylesheet" type="text/css">
       <!--[if IE 6]>
-        <script defer type="text/javascript" src="/js/ie6-png.js"></script>
-        <script defer type="text/javascript" src="/js/ie6-menu.js"></script>
+        <script defer type="text/javascript" 
+                src="${h.url_for('/js/ie6-png.js')}"></script>
+        <script defer type="text/javascript" 
+                src="${h.url_for('/js/ie6-menu.js')}"></script>
         <link href  = "${h.url_for('/styles/ie6.css')}"
               media = "screen" 
               rel   = "stylesheet" type="text/css">
@@ -64,7 +66,7 @@
               rel   = "stylesheet" type="text/css">
       <![endif]-->
     % endif
-    <script src="/js/check.js" type="text/javascript"></script>
+    <script src="${h.url_for('/js/check.js')}" type="text/javascript"></script>
   </head>
   <body onload="clearModification();">
     ${next.body()}

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/confirm_anonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/confirm_anonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/confirm_anonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/error.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/error.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/error.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
   <li><a href="#">Aktion für mehrere Fallakten durchführen</a></li>
 </%def>
 <%include file="../../dialogs/notification.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/success_anonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/success_anonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/success_anonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/success_delete_admin.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/success_editor.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/success_editor.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/success_editor.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
         <li>${_('cm_np_bundled_editor')}</li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/success_markdelete.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/success_markdelete.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/success_markdelete.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/dialogs/success_standin.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/dialogs/success_standin.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/dialogs/success_standin.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
         <li>${_('cm_np_bundled_standin')}</li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casebundle/editor.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/editor.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/editor.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,7 +3,7 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
     ${parent.buildNavipath()}
-    <li><a href="/case">${_('cm_np_root')}</a></li>
+    <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
     <li>${_('cm_np_bundled_editor')}</li>
 </%def>
 

Modified: base/trunk/mpulsweb/templates/casebundle/standin.mako
===================================================================
--- base/trunk/mpulsweb/templates/casebundle/standin.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casebundle/standin.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,7 +3,7 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
   <li>${_('cm_np_bundled_standin')}</li>
 </%def>
 

Modified: base/trunk/mpulsweb/templates/casemanagement/appointmentlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/appointmentlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/appointmentlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,13 +3,14 @@
   <a href="${h.url_for(controller='/caseappointment', 
                        action='show', id=appointment.id, 
                        confirmed='1')}">
-    <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" 
-     title="${_('cm_overview_a_show')}">
+    <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" 
+         alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}">
   </a>
   % if h.hasRole(['cm_ka']):
     <a href="${h.url_for(controller='/caseappointment', action='delete', 
                         id=appointment.id, confirmed=0)}">
-      <img src="/images/icons/delete_active_22.png" border="0" 
+      <img src="${h.url_for('/images/icons/delete_active_22.png')}"
+           border="0"
            alt="${_('cm_overview_a_delete')}" 
            title="${_('cm_overview_a_delete')}">
     </a>

Modified: base/trunk/mpulsweb/templates/casemanagement/appointments.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/appointments.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/appointments.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${session.get('case').id}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('app_np_list')}</a></li>
 </%def>
 
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/casemanagement/caselist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/caselist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -24,7 +24,7 @@
   fn = d.overview_label
   fs = d.overview_style
   print f
-  field = (fn,f,fs, all_roles, 
+  field = (fn,f,fs, all_roles,
            lambda case, f=f: h.shorten(case.get_value(f), 15))
   fields.append(field)
 
@@ -47,28 +47,29 @@
   % for title, urlpart, style, roles, get_value in fields:
     % if h.hasRole(roles):
       <th class="${style} table_header_h">${title}
-        <a href="/case_overview/overview?sort_field=${urlpart}&amp;sort_order=asc">
+        <a href="${h.url_for(controller='case_overview', action='overview',
+                             sort_field=urlpart, sort_order='asc')}">
             <img class   = "sorticon"
             %if c.sort_field == urlpart and c.sort_order == 'asc':
-                src    = "/images/icons/sort_asc_active.png"
+                src    = "${h.url_for('/images/icons/sort_asc_active.png')}"
                 alt    = "${_("Sorted by %s in ascending order") % title}"
                 title  = "${_("Sorted by %s in ascending order") % title}"
             %else:
-                src    = "/images/icons/sort_asc.png"
+                src    = "${h.url_for('/images/icons/sort_asc.png')}"
                 alt    = "${_("Sort in ascending order")}"
                 title  = "${_("Sort in ascending order")}"
-                title  = "${c.sort_field} - ${c.sort_order}"
             %endif
                 width  = "10"
                 height = "9"></a>
-        <a href="/case_overview/overview?sort_field=${urlpart}&amp;sort_order=desc">
+        <a href="${h.url_for(controller='case_overview', action='overview',
+                             sort_field=urlpart, sort_order='desc')}">
             <img class   = "sorticon"
             %if c.sort_field == urlpart and c.sort_order == 'desc':
-                src    = "/images/icons/sort_desc_active.png"
+                src    = "${h.url_for('/images/icons/sort_desc_active.png')}"
                 alt    = "${_("Sorted by %s in descending order") % title}"
                 title  = "${_("Sorted by %s in descending order") % title}"
             %else:
-                src    = "/images/icons/sort_desc.png"
+                src    = "${h.url_for('/images/icons/sort_desc.png')}"
                 alt    = "${_("Sort in descending order")}"
                 title  = "${_("Sort in descending order")}"
             %endif
@@ -94,11 +95,12 @@
   % endif
   % for title, urlpart, style, roles, get_value in fields:
     % if h.hasRole(roles):
-     <td><a href="/case/select/${case.id}/0/">${get_value(case) | F.NA}</a></td>
+     <td><a href="${h.url_for(controller='/case', action='select',
+                              id=case.id, confirmed=0)}">${get_value(case) | F.NA}</a></td>
     % endif
   % endfor
   <td>
-    ${get_phase_icon(case)} 
+    ${get_phase_icon(case)}
   </td>
   <td>
     ${get_state_icon(case)}
@@ -143,40 +145,46 @@
 <%def name="get_state_icon(case)">
   % if h.hasRole(['cm_ka']):
     % if str(case.getEditor().id) == str(session.get('USER_AUTHORIZED').id):
-      <img src    = "/images/icons/edit_editor.png" border="0"
-           alt    = "${_('cm_overview_img_editor')}" 
+      <img src    = "${h.url_for('/images/icons/edit_editor.png')}"
+           border = "0"
+           alt    = "${_('cm_overview_img_editor')}"
            title  = "${_('cm_overview_img_editor')}"
            width  = "22"
            height = "22">
     % else:
-      <img src    = "/images/icons/edit_editors_22.png" border="0"
-           alt    = "${_('cm_overview_img_standin')}" 
+      <img src    = "${h.url_for('/images/icons/edit_editors_22.png')}"
+           border = "0"
+           alt    = "${_('cm_overview_img_standin')}"
            title  = "${_('cm_overview_img_standin')}"
            width  = "22"
            height = "22">
     % endif
   % endif
   % if case.getState().getState() in (1,2):
-    <img src    = "/images/icons/edit_22.png" border="0" 
-         alt    = "${_('case_state_label_open')}" 
+    <img src    = "${h.url_for('/images/icons/edit_22.png')}"
+         border = "0"
+         alt    = "${_('case_state_label_open')}"
          title  = "${_('case_state_label_open')}"
          width  = "22"
          height = "22">
   % elif case.getState().getState() == 3:
-    <img src    = "/images/icons/delete_inactive_22.png" border="0"
-         alt    = "${_('case_state_label_markdelete')}" 
+    <img src    = "${h.url_for('/images/icons/delete_inactive_22.png')}"
+         border = "0"
+         alt    = "${_('case_state_label_markdelete')}"
          title  = "${_('case_state_label_markdelete')}"
          width  = "22"
          height = "22">
   % elif case.getState().getState() == 4:
-    <img src    = "/images/icons/anonymise_inactive_22.png" border="0"
-         alt    = "${_('case_state_label_markanonym')}" 
+    <img src    = "${h.url_for('/images/icons/anonymise_inactive_22.png')}"
+         border = "0"
+         alt    = "${_('case_state_label_markanonym')}"
          title  = "${_('case_state_label_markanonym')}"
          width  = "22"
          height = "22">
   % elif case.getState().getState() == 5:
-    <img src    = "/images/icons/anonymise_inactive_22.png" border="0"
-         alt    = "${_('case_state_label_anonym')}" 
+    <img src    = "${h.url_for('/images/icons/anonymise_inactive_22.png')}"
+         border = "0"
+         alt    = "${_('case_state_label_anonym')}"
          title  = "${_('case_state_label_anonym')}"
          width  = "22"
          height = "22">
@@ -185,48 +193,61 @@
 
 <%def name="get_actions(case)">
   % if case.getState().getState() != 5:
-    <a href="/case/select/${case.id}/0/">
-      <img src    = "/images/icons/open_active_22.png" border="0"
-           alt    = "${_('cm_overview_a_show')}" 
+    <a href="${h.url_for(controller='case', action='select', id=case.id,
+                         confirmed=0)}">
+      <img src    = "${h.url_for('/images/icons/open_active_22.png')}"
+           border = "0"
+           alt    = "${_('cm_overview_a_show')}"
            title  = "${_('cm_overview_a_show')}"
            width  = "22"
            height = "22"></a>
   % endif
   % if h.hasRole(['admin_ka']):
     % if case.getState().getState() in (3, 5):
-      <a href="/case/delete/${case.id}/0/">
-        <img src    = "/images/icons/delete_active_22.png" border="0"
-             alt    = "${_('Delete case')}" 
+      <a href="${h.url_for(controller='case', action='delete', id=case.id,
+                           confirmed=0)}">
+        <img src    = "${h.url_for('/images/icons/delete_active_22.png')}"
+             border = "0"
+             alt    = "${_('Delete case')}"
              title  = "${_('Delete case')}"
              width  = "22"
              height = "22"></a>
     % endif
     % if case.getState().getState() == 4:
-      <a href="/case/anonymize/${case.id}/0/">
-        <img src    = "/images/icons/anonymise_active_22.png" border="0"
-             alt    = "${_('cm_overview_a_anonymize')}" 
+      <a href="${h.url_for(controller='case', action='anonymize', id=case.id,
+                           confirmed=0)}">
+        <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}"
+             border = "0"
+             alt    = "${_('cm_overview_a_anonymize')}"
              title  = "${_('cm_overview_a_anonymize')}"
              width  = "22"
              height = "22"></a>
     % endif
     % if case.getState().getState() in (3, 4):
-      <a href="/case/restore/${case.id}/0/">
-        <img src    = "/images/icons/refresh_active_22.png" border="0"
-             alt    = "${_('cm_overview_a_restore')}" 
+      <a href="${h.url_for(controller='case', action='restore', id=case.id, 
+                           confirmed=0)}">
+        <img src    = "${h.url_for('/images/icons/refresh_active_22.png')}" 
+             border = "0"
+             alt    = "${_('cm_overview_a_restore')}"
              title  = "${_('cm_overview_a_restore')}"
              width  = "22"
              height = "22"></a>
     % endif
   % elif h.hasRole(['cm_ka']) and case.getState().getState() in (1, 2):
-    <a href="/case/markForAnonymizeFromOverview/${case.id}/0/">
-      <img src    = "/images/icons/anonymise_active_22.png" border="0"
-           alt    = "${_('cm_overview_a_anonymize')}" 
+    <a href="${h.url_for(controller='case', 
+                         action='markForAnonymizeFromOverview', id=case.id,
+                         confirmed=0)}">
+      <img src    = "${h.url_for('/images/icons/anonymise_active_22.png')}" 
+           border = "0"
+           alt    = "${_('cm_overview_a_anonymize')}"
            title  = "${_('cm_overview_a_anonymize')}"
            width  = "22"
-           height = "22"></a> 
-    <a href="/case/markForDelete/${case.id}/0/">
-      <img src    = "/images/icons/delete_active_22.png" border="0" 
-           alt    = "${_('cm_overview_a_delete')}" 
+           height = "22"></a>
+    <a href="${h.url_for(controller='case', action='markForDelete', id=case.id,
+                         confirmed=0)}">
+      <img src    = "${h.url_for('/images/icons/delete_active_22.png')}" 
+           border = "0"
+           alt    = "${_('cm_overview_a_delete')}"
            title  = "${_('cm_overview_a_delete')}"
            width  = "22"
            height = "22"></a>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('cm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_anonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_anonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_anonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,9 +6,10 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   %if case:
-    <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+    <li><a href="${h.url_for(controller='/case', action='select',
+                             id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
   %else:
-    <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
   %endif
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('cm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_appointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_appointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_appointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/caseappointment/index/${session.get('case').id}">${_('menu_app_link_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('menu_app_link_overview')}</a></li>
 	<li><a href="#">${_('app_np_delete')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_attachment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_attachment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_delete_attachment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../../casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/casedocument/index/${session.get('case').id}">${_('cm_np_att_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">${_('cm_np_att_overview')}</a></li>
 	<li><a href="#">${_('cm_np_attachment_confirm')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_export.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,12 +2,14 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('cm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_export')}</a></li>
 </%def>
 <div class="dialog" />
-<h1><img src="/images/icons/info/question.png" alt="achtung"/>${c.dialog_title or c.confirm_for}</h1>
-<form action="/case_bundle/exportAction" method="GET">
+<h1><img src="${h.url_for('/images/icons/info/question.png')}" 
+         alt="achtung"/>${c.dialog_title or c.confirm_for}</h1>
+<form action="${h.url_for(controller='/case_bundle', action='exportAction')}"
+      method="GET">
 <% case_bundle = session.get('casebundle') %>
 % if case_bundle and len(case_bundle.case_list) > 1:
 <h3>Ausgewählte Fallakten</h3>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,9 +6,9 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   %if case:
-    <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+    <li><a href="${h.url_for(controller='/case', action='select', id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
   %else:
-    <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
   %endif
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/confirm_restore.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/case/">${_('cm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_restore')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/failed_markanonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/failed_markanonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/failed_markanonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>
 <%include file="/dialogs/notification.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_anonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,9 +6,9 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   %if case:
-    <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+    <li><a href="${h.url_for(controller='/case', action='select', id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
   %else:
-    <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
   %endif
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_create_appointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_create_appointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_create_appointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${session.get('case').id}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('app_np_list')}</a></li>
   <li><a href="#">${_('app_np_new')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_appointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_appointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_appointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/caseappointment/index/${session.get('case').id}">${_('menu_app_link_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('menu_app_link_overview')}</a></li>
 	<li><a href="#">${_('app_np_delete')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_attachment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_attachment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_attachment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,10 +1,10 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
-        <li><a href="/case/case_overview">${_('cm_np_overview')}</a></li>
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/casedocument/index/${session.get('case').id}">${_('cm_np_doc_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='case_overview')}">${_('cm_np_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">${_('cm_np_doc_overview')}</a></li>
 	<li><a href="#">${_('cm_np_delete_attachment_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_cm.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_cm.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_delete_cm.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_delete_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_edit_appointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_edit_appointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_edit_appointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${session.get('case').id}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('app_np_list')}</a></li>
   <li><a href="#">${_('app_np_edit')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_export.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_export.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_export.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_export_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_keepactive.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_keepactive.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_keepactive.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_keepactive_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -6,9 +6,9 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   %if case:
-    <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+    <li><a href="${h.url_for(controller='/case', action='select', id=case.id, confirmed=1)}">${_('cm_np_select')}</a></li>
   %else:
-    <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+    <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
   %endif
   <li><a href="#">${_('cm_np_anonymize')}</a></li>
 </%def>

Modified: base/trunk/mpulsweb/templates/casemanagement/dialogs/success_restore.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/dialogs/success_restore.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/dialogs/success_restore.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case">${_('cm_np_root')}</a></li>
+        <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
 	<li><a href="#">${_('cm_np_restore_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/casemanagement/digest.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/digest.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/digest.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,7 +3,9 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/case/digest/${session.get('case').id}">${_('cm_np_digest')}</a></li>
+  <li><a href="${h.url_for(controller='case', action='select', 
+                           id=session['case'].id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='case', action='digest',
+                           id=session['case'].id)}">${_('cm_np_digest')}</a></li>
 </%def>
 <%include file="digest_body.mako"/>

Modified: base/trunk/mpulsweb/templates/casemanagement/digest_body.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/digest_body.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/digest_body.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -14,7 +14,8 @@
     <div class="dialog">
       % if c.finished:
         <h1>
-          <img src="/images/icons/info/alert.png" alt="achtung"/>
+          <img src="${h.url_for('/images/icons/info/alert.png')}" 
+               alt="achtung"/>
           Maximale Speicherdauer überschritten!
         </h1>
         <p>
@@ -27,7 +28,8 @@
         </p>
       % else:
         <h1>
-          <img src="/images/icons/info/question.png" alt="achtung"/>Inaktiver Fall?
+          <img src="${h.url_for('/images/icons/info/question.png')}" 
+               alt="achtung"/>Inaktiver Fall?
         </h1>
         <p>
           Für die Fallakte konnte seit
@@ -67,7 +69,9 @@
     <div class="actions">
       <ul>
         <li>
-          <a href="/case/printdigest/${session['case'].id}" target="_blank" 
+          <a href="${h.url_for(controller='case', action='printdigest', 
+                               id=session['case'].id)}" 
+             target="_blank" 
              onclick="return checkModification();"> 
             ${_('cm_actions_link_printout')}
           </a>

Modified: base/trunk/mpulsweb/templates/casemanagement/editAppointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/editAppointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/editAppointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -9,8 +9,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${c.appointment.case_id}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=c.appointment.case_id)}">${_('app_np_list')}</a></li>
   <li><a href="#"></a>${_('app_np_edit')}</li>
 </%def>
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/casemanagement/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/main.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -5,8 +5,10 @@
 
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/" onclick="return checkModification();">${_('cm_np_root')}</a></li>
-  <li><a href="/case_overview/overview/" onclick="return checkModification();">${_('cm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='case')}"
+         onclick="return checkModification();">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='case_overview', action='overview')}" 
+         onclick="return checkModification();">${_('cm_np_overview')}</a></li>
 </%def>
 <%def name="buildModusfield()">
 </%def>
@@ -35,26 +37,34 @@
                 % if session.get('case').getState().getState() not in (3,4,5):
                   % if not session.get('case').hasPrivacyStatement():
                       <li>
-                      <a href="/privacy/set/${session.get('case').id}" 
-                          onclick="return checkModification();">${_('cm_main_set_statement')}
+                      <a href="${h.url_for(controller='privacy', action='set',
+                                           id=session.get('case').id)}"
+                         onclick="return checkModification();">${_('cm_main_set_statement')}
                       </a>
                       </li>
                   % elif session.get('case').hasPrivacyStatement():
                       <li>
-                      <a href="/privacy/decline/${session.get('case').id}/0" 
-                          onclick="return checkModification();">${_('cm_main_revoke_statement')}
+                      <a href="${h.url_for(controller='privacy',
+                                           action='decline', 
+                                           id=session.get('case').id,
+                                           confirmed=0)}" 
+                         onclick="return checkModification();">${_('cm_main_revoke_statement')}
                       </a>
                       </li>
                   % endif
                   <li>
-                  <a href="/case/markForAnonymize/${session.get('case').id}/0" 
+                  <a href="${h.url_for(controller='case',
+                                       action='markForAnonymize', 
+                                       id=session.get('case').id,
+                                       confirmed=0)}" 
                       onclick="return checkModification();">${_('cm_main_anonymize_case')}
                   </a>
                   </li>
                 % endif
                 <li>
-                <a href="/privacy/listStatements" 
-                    onclick="return checkModification();"> ${_('statement_list_statement')}
+                <a href="${h.url_for(controller='privacy',
+                                     action='listStatements')}" 
+                   onclick="return checkModification();"> ${_('statement_list_statement')}
                 </a>
                 </li>
             </ul>
@@ -76,14 +86,16 @@
             onclick="return checkModification();">${_('cm_menu_link_backtooverview')}</a>
         </li>
         <li>
-            <a href="/case/digest/${session.get('case').id}" 
-                onclick="return checkModification();">
+            <a href="${h.url_for(controller='case', action='digest',
+                                 id=session.get('case').id)}" 
+               onclick="return checkModification();">
                 ${_('cm_menu_link_digest')}
             </a>
         </li>
         <li>
-            <a href="/phase/overview/${session.get('case').id}"
-            onclick="return checkModification();">${_('case_cm_phase')}</a>
+            <a href="${h.url_for(controller='phase', action='overview',
+                                 id=session.get('case').id)}"
+               onclick="return checkModification();">${_('case_cm_phase')}</a>
         </li>
       </ul>
     % endif
@@ -93,35 +105,46 @@
             <ul>
             % if h.hasRole(['cm_ka', 'admin_ka']):
                 <li>
-                    <a href="/case/organisation/${session.get('case').id}" 
+                    <a href="${h.url_for(controller='case', 
+                                         action='organisation', 
+                                         id=session.get('case').id)}" 
                     onclick="return checkModification();">
                         ${_('cm_menu_link_organisation')}
                     </a>
                 </li>
                 % if g.mpuls_config.is_enabled('case-module', 'tags'):
                 <li>
-                    <a href="/tags/overview/${session.get('case').id}" 
-                    onclick="return checkModification();">
+                    <a href="${h.url_for(controller='tags',
+                                         action='overview',
+                                         id=session.get('case').id)}" 
+                       onclick="return checkModification();">
                         ${_('Tags')}
                     </a>
                 </li>
                 % endif
                 % if g.mpuls_config.is_enabled('case-module', 'appointments'):
                     <li>
-                        <a href="/caseappointment/index/${session.get('case').id}" 
-                            onclick="return checkModification();">
+                        <a href="${h.url_for(controller='caseappointment',
+                                             action='index',
+                                             id=session.get('case').id)}" 
+                           onclick="return checkModification();">
                             ${_('cm_menu_link_appointment')}
                         </a>
                     </li>
                 % endif
                 % if g.mpuls_config.is_enabled('case-module', 'reminders'):
                 <li>
-                    <a href="/caseappointment/newReminder/${session.get('case').id}" onclick="return checkModification();"> ${_('cm_menu_link_create_reminder')}</a>
+                    <a href="${h.url_for(controller='caseappointment',
+                                         action='newReminder',
+                                         id=session.get('case').id)}"
+                       onclick="return checkModification();"> ${_('cm_menu_link_create_reminder')}</a>
                 </li>
                 % endif
                 % if h.hasRole(['cm_ka']) and g.mpuls_config.is_enabled('case-module', 'logbook'):
                     <li>
-                        <a href="/logbook/index/${session.get('case').id}" 
+                        <a href="${h.url_for(controller='logbook',
+                                             action='index',
+                                             id=session.get('case').id)}" 
                             onclick="return checkModification();">
                             Tagebuch
                         </a>
@@ -129,14 +152,18 @@
                 % endif
                 % if g.mpuls_config.is_enabled('case-module', 'documents'):
                     <li>
-                        <a href="/casedocument/index/${session.get('case').id}" 
-                            onclick="return checkModification();">
+                        <a href="${h.url_for(controller='casedocument',
+                                             action='index',
+                                             id=session.get('case').id)}" 
+                           onclick="return checkModification();">
                             ${_('cm_menu_link_documents')}
                         </a>
                     </li>
                 % endif
                 <li>
-                    <a href="/case/printAll/${session.get('case').id}/0"
+                    <a href="${h.url_for(controller='case', action='printAll', 
+                                         id=session.get('case').id,
+                                         confirmed=0)}"
                     onclick="return checkModification();"
                     target="_blank">${_('cm_menu_link_print')}</a>
                 </li>
@@ -151,27 +178,27 @@
     <div class="actions">
       <ul>
         <li>
-          <a href="/case/digest/${session.get('case').id}" 
+          <a href="${h.url_for(controller='case', action='digest', id=session.get('case').id)}" 
              onclick="return checkModification();">
               ${_('cm_menu_link_digest')}
           </a>
         </li>
         % if h.hasRole(['cm_ka', 'admin_ka']):
           <li>
-            <a href="/phase/overview/${session.get('case').id}"
+            <a href="${h.url_for(controller='phase', action='overview', id=session.get('case').id)}"
                onclick="return checkModification();">
                 ${_('case_cm_phase')}
             </a>
           </li>
           <li>
-            <a href="/case/organisation/${session.get('case').id}" 
+            <a href="${h.url_for(controller='case', action='organisation', id=session.get('case').id)}" 
                onclick="return checkModification();">
                 ${_('cm_menu_link_organisation')}
             </a>
           </li>
           % if g.mpuls_config.is_enabled('case-module', 'appointments'):
             <li>
-              <a href="/caseappointment/index/${session.get('case').id}" 
+              <a href="${h.url_for(controller='caseappointment', action='index', id=session.get('case').id)}" 
                  onclick="return checkModification();">
                   ${_('cm_menu_link_appointment')}
               </a>
@@ -179,7 +206,7 @@
           % endif
           % if h.hasRole(['cm_ka']) and g.mpuls_config.is_enabled('case-module', 'logbook'):
             <li>
-              <a href="/logbook/index/${session.get('case').id}" 
+              <a href="${h.url_for(controller='logbook', action='index', id=session.get('case').id)}" 
                  onclick="return checkModification();">
                   Tagebuch
               </a>
@@ -187,7 +214,7 @@
           % endif
           % if g.mpuls_config.is_enabled('case-module', 'documents'):
             <li>
-              <a href="/casedocument/index/${session.get('case').id}" 
+              <a href="${h.url_for(controller='casedocument', action='index', id=session.get('case').id)}" 
                  onclick="return checkModification();">
                  ${_('cm_menu_link_documents')}
               </a>

Modified: base/trunk/mpulsweb/templates/casemanagement/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/new.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/new.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,12 +3,12 @@
 
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
-  <li><a href="/case/new2">${_('cm_np_new')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='new2')}">${_('cm_np_new')}</a></li>
 </%def>
 
 <div class="waska_form">
-  <form id="waska_form" action="/case/newAction" accept-charset="UTF-8"
+  <form id="waska_form" action="${h.url_for(controller='/case', action='newAction')}" accept-charset="UTF-8"
         name="waska_form" method="POST">
     <h1>Neue Fallakte anlegen</h1>
     <fieldset>
@@ -84,24 +84,24 @@
     ##  <table>
     ##    <tr>
     ##      <td class="table_row_h">
-    ##        Arabisch <a href="/documents/ee_ar.pdf">download</a>
+    ##        Arabisch <a href="${h.url_for('/documents/ee_ar.pdf')}">download</a>
     ##      </td>
     ##      <td class="table_row_h">
-    ##        Englisch <a href="/documents/ee_en.pdf">download</a>
+    ##        Englisch <a href="${h.url_for('/documents/ee_en.pdf')}">download</a>
     ##      </td>
     ##    </tr>
     ##    <tr>
-    ##      <td>Polnisch <a href="/documents/ee_pl.pdf">download</a></td>
-    ##      <td>Russisch <a href="/documents/ee_ru.pdf">download</a></td>
+    ##      <td>Polnisch <a href="${h.url_for('/documents/ee_pl.pdf')}">download</a></td>
+    ##      <td>Russisch <a href="${h.url_for('/documents/ee_ru.pdf')}">download</a></td>
     ##    </tr>
     ##    <tr>
     ##      <td class="table_row_h">
-    ##        Türkisch <a href="/documents/ee_tr.pdf">download</a>
+    ##        Türkisch <a href="${h.url_for('/documents/ee_tr.pdf')}">download</a>
     ##      </td>
     ##      <td class="table_row_h">
     ##        Deutsch
     ##        (Einwilligungserklärung ohne Hinweise zu Teilnehmernachweisen)
-    ##        <a href="/documents/ee_de_ohnetn.pdf">download</a>
+    ##        <a href="${h.url_for('/documents/ee_de_ohnetn.pdf')}">download</a>
     ##      </td>
     ##    </tr>
     ##  </table>

Modified: base/trunk/mpulsweb/templates/casemanagement/newAppointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/newAppointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/newAppointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -9,8 +9,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${session.get('case').id}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=session.get('case').id)}">${_('app_np_list')}</a></li>
   <li><a href="#">${_('app_np_new')}</a></li>
 </%def>
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/casemanagement/organisation.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/organisation.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/organisation.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
 		${parent.buildNavipath()}
-	<li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/organisation/${session.get('case').id}">${_('cm_np_organisation')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='organisation', id=session.get('case').id)}">${_('cm_np_organisation')}</a></li>
 </%def>
 
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/casemanagement/overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/overview.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/overview.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case">${_('cm_np_root')}</a></li>
-  <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
 </%def>
 <h1>${_('cm_header_overview')}</h1>
 % if h.hasRole(['admin_ka']):
@@ -17,7 +17,8 @@
 <%include file="/casemanagement/search.mako" />
 ${ungettext('%s case was found.', '%s cases where found.', c.count_all) % c.count_all}
 <div class="waska_form">
-  <form action="/case_bundle/bundleAction" method="POST">
+  <form action="${h.url_for(controller='/case_bundle', action='bundleAction')}"
+        method="POST">
   <%include file="./caselist.mako" />
   % if g.mpuls_config.is_enabled('case-module', 'casebundle'):
   <div class="waska_form_element">

Modified: base/trunk/mpulsweb/templates/casemanagement/reminderlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/reminderlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/reminderlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,10 +1,16 @@
 <%inherit file="/appointments/remindlist_body.mako" />
 <%def name="showAppointmentActions(appointment)">
-<a href="${h.url_for(controller='/caseappointment', action='show', id=appointment.id)}">
-  <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+<a href="${h.url_for(controller='/caseappointment', action='show',
+                     id=appointment.id)}">
+  <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" 
+       alt="${_('cm_overview_a_show')}" 
+       title="${_('cm_overview_a_show')}"></a>
 % if h.hasRole(['cm_ka']):
-  <a href="${h.url_for(controller='/caseappointment', action='delete', id=appointment.id, confirmed=0)}">
-    <img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}">
+  <a href="${h.url_for(controller='/caseappointment', action='delete',
+                       id=appointment.id, confirmed=0)}">
+    <img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0"
+         alt="${_('cm_overview_a_delete')}" 
+         title="${_('cm_overview_a_delete')}">
   </a>
 % endif
 </%def>

Modified: base/trunk/mpulsweb/templates/casemanagement/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/search.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,9 @@
 ## -*- coding: utf-8 -*-
 
 % if g.mpuls_config.is_enabled('case-module', 'search'):
-  <form method="post" name="case_search" action="/case_overview/search/" accept-charset="UTF-8">
+  <form method="post" name="case_search"
+        action="${h.url_for(controller='/case_overview', action='search')}" 
+        accept-charset="UTF-8">
   <div class="widget container">
     <table>
       <tr>
@@ -27,11 +29,11 @@
           <td>
             <input type="checkbox" name="own" id="show_own" value="1" checked="checked">
             <label for="show_own">
-              <img title="Eigene Fallakten" alt="Bearbeiter"  src="/images/icons/edit_editor.png">Eigene (${c.count_own})
+              <img title="Eigene Fallakten" alt="Bearbeiter"  src="${h.url_for('/images/icons/edit_editor.png')}">Eigene (${c.count_own})
             </label><br>
             <input type="checkbox" name="standin" id="show_other" value="1" checked="checked">
             <label for="show_other">
-              <img title="Vertreter Fallakten" alt="Vertreter"  src="/images/icons/edit_editors_22.png">Vertretung (${c.count_standin})
+              <img title="Vertreter Fallakten" alt="Vertreter"  src="${h.url_for('/images/icons/edit_editors_22.png')}">Vertretung (${c.count_standin})
             </label>
           </td>
         </tr>
@@ -41,18 +43,18 @@
         <td>
           <input type="checkbox" name="state" id="show_open" value="1">
           <label for="show_open">
-            <img title="Bearbeitbare Fallakten" alt="Bearbeitbare" src="/images/icons/edit_22.png">Bearbeitbare Fallakten</label><br>
+            <img title="Bearbeitbare Fallakten" alt="Bearbeitbare" src="${h.url_for('/images/icons/edit_22.png')}">Bearbeitbare Fallakten</label><br>
           <input type="checkbox" name="state" id="show_markdelete" value="3" checked="checked">
           <label for="show_markdelete">
-            <img title="Zu löschende Fallakten" alt="Schwebend Gelöscht" src="/images/icons/delete_inactive_22.png">Schwebend gelöscht (${c.count_del})
+            <img title="Zu löschende Fallakten" alt="Schwebend Gelöscht" src="${h.url_for('/images/icons/delete_inactive_22.png')}">Schwebend gelöscht (${c.count_del})
           </label><br>
           <input type="checkbox" name="state" id="show_markanonymize" value="4" checked="checked">
           <label for="show_markanonymize">
-            <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="/images/icons/anonymise_inactive_22.png">Schwebend anonymisiert (${c.count_markanon})
+            <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Schwebend anonymisiert (${c.count_markanon})
           </label><br>
           <input type="checkbox" name="state" id="show_anonymized" value="5" checked="checked">
           <label for="show_anonymized">
-            <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="/images/icons/anonymise_inactive_22.png">Anonymisiert (${c.count_anon})
+            <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Anonymisiert (${c.count_anon})
           </label>
         </td>
       </tr>
@@ -89,12 +91,15 @@
         <td>
           <input type="submit" value="${_('cm_form_overview_search_submit')}">
           % if c.extended_search:
-            <a href="/case_overview/overview_extended/">Erweiterte Suche ausblenden</a>
+            <a href="${h.url_for(controller='case_overview',
+                                 action='overview_extended')}">Erweiterte Suche ausblenden</a>
           % else:
-            <a href="/case_overview/overview_extended/">Erweiterte Suche einblenden</a>
+            <a href="${h.url_for(controller='case_overview', 
+                                 action='overview_extended')}">Erweiterte Suche einblenden</a>
           % endif
           ${h.getHelp('extended_search')}
-          <a href="/case_overview/overview?reset=1">Suche zurücksetzen</a>
+          <a href="${h.url_for(controller='case_overview', action='overview',
+                               reset=1)}">Suche zurücksetzen</a>
         </td>
       </tr>
     </table>
@@ -104,14 +109,16 @@
 
 
 ##<div id="search_field">
-##  <form method="post" name="case_search" action="/case_overview/search/" accept-charset="UTF-8">
+##  <form method="post" name="case_search" 
+##        action="${h.url_for(controller='/case_overview', action='search')}" 
+##        accept-charset="UTF-8">
 ##  <div>
 ##    <input type="text" size="30" name="search_str" maxlength="256">
 ##    <input type="submit" value="${_('cm_form_overview_search_submit')}">
 ##    % if c.extended_search:
-##      <a href="/case_overview/overview_extended/">Erweiterte Suche ausblenden</a>
+##      <a href="${h.url_for(controller='case_overview', action='overview_extended')}">Erweiterte Suche ausblenden</a>
 ##    % else:
-##      <a href="/case_overview/overview_extended/">Erweiterte Suche einblenden</a>
+##      <a href="${h.url_for(controller='case_overview', action='overview_extended')}">Erweiterte Suche einblenden</a>
 ##    % endif
 ##    ${h.getHelp('extended_search')}
 ##  </div>
@@ -120,26 +127,26 @@
 ##    % if h.hasRole(['cm_ka']):
 ##      <input type="checkbox" name="show_own" id="show_own" value="1" checked="checked">
 ##      <label for="show_own">
-##        <img title="Eigene Fallakten" alt="Bearbeiter"  src="/images/icons/edit_editor.png">Eigene (${c.count_own})
+##        <img title="Eigene Fallakten" alt="Bearbeiter"  src="${h.url_for('/images/icons/edit_editor.png')}">Eigene (${c.count_own})
 ##      </label>
 ##      <input type="checkbox" name="show_other" id="show_other" value="1" checked="checked">
 ##      <label for="show_other">
-##        <img title="Vertreter Fallakten" alt="Vertreter"  src="/images/icons/edit_editors_22.png">Vertretung (${c.count_standin})
+##        <img title="Vertreter Fallakten" alt="Vertreter"  src="${h.url_for('/images/icons/edit_editors_22.png')}">Vertretung (${c.count_standin})
 ##      </label>
 ##    % endif
 ##    % if h.hasRole(['admin_ka']):
 ##      <input type="checkbox" name="show_markdelete" id="show_markdelete" value="1" checked="checked">
 ##      <label for="show_markdelete">
-##        <img title="Zu löschende Fallakten" alt="Schwebend Gelöscht" src="/images/icons/delete_inactive_22.png">Schwebend gelöscht (${c.count_del})
+##        <img title="Zu löschende Fallakten" alt="Schwebend Gelöscht" src="${h.url_for('/images/icons/delete_inactive_22.png')}">Schwebend gelöscht (${c.count_del})
 ##      </label>
 ##      <input type="checkbox" name="show_markanonymize" id="show_markanonymize" value="1" checked="checked">
 ##      <label for="show_markanonymize">
-##        <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="/images/icons/anonymise_inactive_22.png">Schwebend anonymisiert (${c.count_markanon})
+##        <img title="Schwebend anonymisierte Fallakten" alt="Schwebend anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Schwebend anonymisiert (${c.count_markanon})
 ##      </label>
 ##    % endif
 ##      <input type="checkbox" name="show_anonymized" id="show_anonymized" value="1" checked="checked">
 ##    <label for="show_anonymized">
-##      <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="/images/icons/anonymise_inactive_22.png">Anonymisiert (${c.count_anon})
+##      <img title="Anonymisierte Fallakten" alt="Anonymisiert" src="${h.url_for('/images/icons/anonymise_inactive_22.png')}">Anonymisiert (${c.count_anon})
 ##    </label>
 ##  </div>
 ##  % if c.extended_search:
@@ -227,12 +234,12 @@
 ##        <td valign="top">
 ##          <input type="checkbox" name="show_open" id="show_open" value="1" checked="checked">
 ##          <label for="show_open">
-##            <img title="Bearbeitbare Fallakten" alt="Bearbeitbare" src="/images/icons/edit_22.png">Bearbeitbare Fallakten
+##            <img title="Bearbeitbare Fallakten" alt="Bearbeitbare" src="${h.url_for('/images/icons/edit_22.png')}">Bearbeitbare Fallakten
 ##          </label>
 ##          <!--
 ##          <input type="checkbox" name="show_closed" id="show_closed" value="1" checked="checked">
 ##          <label for="show_closed">
-##            <img title="Geschlossene Fallakten" alt="Geschlossene" src="/images/icons/done_grey.gif">Geschlossen
+##            <img title="Geschlossene Fallakten" alt="Geschlossene" src="${h.url_for('/images/icons/done_grey.gif')}">Geschlossen
 ##          </label>
 ##          -->
 ##        </td>

Modified: base/trunk/mpulsweb/templates/casemanagement/showAppointment.mako
===================================================================
--- base/trunk/mpulsweb/templates/casemanagement/showAppointment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/casemanagement/showAppointment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,9 +1,9 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${c.appointment.case_id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/caseappointment/index/${c.appointment.case_id}">${_('app_np_list')}</a></li>
-  <li><a href="/caseappointment/show/${c.appointment.id}">${_('app_np_show')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=c.appointment.case_id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='index', id=c.appointment.case_id)}">${_('app_np_list')}</a></li>
+  <li><a href="${h.url_for(controller='/caseappointment', action='show', id=c.appointment.id)}">${_('app_np_show')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">

Modified: base/trunk/mpulsweb/templates/dialogs/confirm.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/confirm.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/dialogs/confirm.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="/images/icons/info/question.png" alt="achtung"/>${c.dialog_title or c.confirm_for}</h1>
+<h1><img src="${h.url_for('/images/icons/info/question.png')}" alt="achtung"/>${c.dialog_title or c.confirm_for}</h1>
 <p>${h.literal(c.dialog_text or c.question)}</p>
 <a class="button" href="${c.url_yes}">${_('dialog_header_confirm_option_yes')}</a>
 <a class="button" href="${c.url_no}">${_('dialog_header_confirm_option_no')}</a>

Modified: base/trunk/mpulsweb/templates/dialogs/failed.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/failed.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/dialogs/failed.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="/images/icons/info/failure.png" alt="Fehler" width="48" height="48"/>${c.dialog_title | F.NA}</h1>
+<h1><img src="${h.url_for('/images/icons/info/failure.png')}" alt="Fehler" width="48" height="48"/>${c.dialog_title | F.NA}</h1>
 <p>${h.literal(c.dialog_text) | F.NA}</p>
 <a class="button" href="${c.url_ok}">${_('dialog_header_confirm_option_ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/notification.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/notification.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/dialogs/notification.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="/images/icons/info/alert.png" alt="Achtung"/>${c.dialog_title}</h1>
+<h1><img src="${h.url_for('/images/icons/info/alert.png')}" alt="Achtung"/>${c.dialog_title}</h1>
 <p>${c.dialog_text}</p>
 <a class="button" href="${c.url_ok}">${_('dialog_header_notification_option_ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/dialogs/success.mako
===================================================================
--- base/trunk/mpulsweb/templates/dialogs/success.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/dialogs/success.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="/images/icons/info/confirmation.png" alt="Erledigt"/>${c.dialog_title or c.success_for | F.NA}</h1>
+<h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="Erledigt"/>${c.dialog_title or c.success_for | F.NA}</h1>
 <p>${c.dialog_text or c.success_text | F.NA}</p>
 <a class="button" href="${c.url_ok}">${_('dialog_header_confirm_option_ok')}</a>
 </div>

Modified: base/trunk/mpulsweb/templates/documents/case_new.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/case_new.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/case_new.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,17 +3,17 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   <li>
-    <a href="/case/select/${session.get('case').id}/1">
+    <a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">
       ${_('cm_np_select')}
     </a>
   </li>
   <li>
-    <a href="/casedocument/index/${session.get('case').id}">
+    <a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">
       ${_('cm_np_doc_overview')}
     </a>
   </li>
   <li>
-    <a href="/casedocument/new">
+    <a href="${h.url_for(controller='/casedocument', action='new')}">
       ${_('cm_np_doc_upload')}
     </a>
   </li>
@@ -27,7 +27,7 @@
     <div class="actions">
       <ul>
 	<li>
-          <a href="/casedocument/index/${session.get('case').id}">
+          <a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">
             ${_('cm_menu_link_document_back')}
           </a>
         </li>

Modified: base/trunk/mpulsweb/templates/documents/case_overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/case_overview.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/case_overview.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,12 +3,12 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   <li>
-    <a href="/case/select/${session.get('case').id}/1">
+    <a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">
       ${_('cm_np_select')}
     </a>
   </li>
   <li>
-    <a href="/casedocument/index/${session.get('case').id}">
+    <a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">
       ${_('cm_np_doc_overview')}
     </a>
   </li>
@@ -22,7 +22,7 @@
     <div id="modusfield">
       <div class="actions">
 	<ul>
-	  <li><a href="/casedocument/new/">${_('cm_actions_link_doc_new')}</a></li>
+	  <li><a href="${h.url_for(controller='/casedocument', action='new')}">${_('cm_actions_link_doc_new')}</a></li>
 	</ul>
       </div>
     </div>
@@ -51,13 +51,13 @@
         <td>${ f.getName() | F.shorten}</td>
         <td class="number_field">${kb(f.size)} KB</td>
         <td class="actions">
-          <a href="/casedocument/show/${f.id}/${f.getName()}" 
+          <a href="${h.url_for(controller='/casedocument', action='show', id=f.id, url=f.getName())}" 
           target="_blank">
-            <img src="/images/icons/open_active_22.png" border="0" 
+            <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" 
             alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
           % if h.hasRole(['cm_ka']):
-            <a href="/casedocument/delete/${f.id}/0">
-              <img src="/images/icons/delete_active_22.png" border="0" 
+            <a href="${h.url_for(controller='/casedocument', action='delete', id=f.id, confirmed=0)}">
+              <img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" 
               alt="${_('cm_overview_a_delete')}" 
               title="${_('cm_overview_a_delete')}">
             </a>

Modified: base/trunk/mpulsweb/templates/documents/dialogs/confirm.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/confirm.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/confirm.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-	<li><a href="/document/overview">${_('doc_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/document', action='overview')}">${_('doc_np_overview')}</a></li>
 	<li><a href="#">${_('doc_np_delete')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/delete_attachment_success.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/delete_attachment_success.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/delete_attachment_success.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/casedocument/index/${session.get('case').id}">${_('cm_np_doc_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">${_('cm_np_doc_overview')}</a></li>
 	<li><a href="#">${_('cm_np_delete_attachment_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/delete_document_success.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/delete_document_success.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/delete_document_success.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/document/globalOverview">${_('doc_np_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/document', action='globalOverview')}">${_('doc_np_overview')}</a></li>
 	<li><a href="#">${_('cm_np_delete_document_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/failed_attachment.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/failed_attachment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/failed_attachment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../../casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/casedocument/index/${session.get('case').id}">${_('cm_np_doc_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">${_('cm_np_doc_overview')}</a></li>
 	<li><a href="#">${_('cm_np_doc_failed')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/failed_document.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/failed_document.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/failed_document.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/document/globalOverview">${_('doc_np_overview')}</a></li>
-	<li><a href="/document/globalUpload">${_('doc_np_upload')}</a></li>
+        <li><a href="${h.url_for(controller='/document', action='globalOverview')}">${_('doc_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/document', action='globalUpload')}">${_('doc_np_upload')}</a></li>
 	<li><a href="#">${_('cm_np_doc_failed')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/success_attachment.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/success_attachment.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/success_attachment.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,7 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()} 
-        <li><a href="/casedocument/index/${session.get('case').id}">${_('cm_np_att_overview')}</a></li>
+        <li><a href="${h.url_for(controller='/casedocument', action='index', id=session.get('case').id)}">${_('cm_np_att_overview')}</a></li>
 	<li><a href="#">${_('cm_np_attachment_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/documents/dialogs/success_documents.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/dialogs/success_documents.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/dialogs/success_documents.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,8 +1,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/document/globalOverview">${_('doc_np_overview')}</a></li>
-	<li><a href="/document/globalUpload">${_('doc_np_upload')}</a></li>
+        <li><a href="${h.url_for(controller='/document', action='globalOverview')}">${_('doc_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/document', action='globalUpload')}">${_('doc_np_upload')}</a></li>
 	<li><a href="#">${_('cm_np_doc_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/documents/global_overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/global_overview.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/global_overview.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,7 +3,7 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
 		${parent.buildNavipath()}
-	<li><a href="/document/globalOverview">${_('doc_np_overview')}</a></li>
+	<li><a href="${h.url_for(controller='/document', action='globalOverview')}">${_('doc_np_overview')}</a></li>
 </%def>
 <div id="content_header_small">
   <div id="content_ueberschrift">
@@ -13,7 +13,7 @@
   <div id="modusfield">
     <div class="actions">
         <ul>
-            <li><a href="/document/globalUpload/"> ${_('doc_actions_link_new')}</a></li>
+            <li><a href="${h.url_for(controller='/document', action='globalUpload')}"> ${_('doc_actions_link_new')}</a></li>
         </ul>
     </div>
 
@@ -34,16 +34,16 @@
   % if idset==0:
   <tr>
     <td>
-        <a href="/document/globalShow/${f.id}/${f.getName()}" target="_blank">${ f.getName() | F.shorten}</a>
+        <a href="${h.url_for(controller='/document', action='globalShow', id=f.id, url=f.getName())}" target="_blank">${ f.getName() | F.shorten}</a>
     </td>
     <td class="number_field">
         ${kb(f.size)} KB
     </td>
     <td class="table_action">
-        <a href="/document/globalShow/${f.id}/${f.getName()}" target="_blank"><img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" 
+        <a href="${h.url_for(controller='/document', action='globalShow', id=f.id, url=f.getName())}" target="_blank"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" 
         title="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
         % if h.hasRole(['admin_ka']):
-        <a href="/document/globalDelete/${f.id}"><img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
+        <a href="${h.url_for(controller='/document', action='globalDelete', id=f.id)}"><img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
         % endif
     </td>
   </tr>
@@ -51,16 +51,16 @@
   % else:
     <tr  class="table_row_h">
       <td>
-        <a href="/document/globalShow/${f.id}/${f.getName()}" target="_blank">${ f.getName() | F.shorten}</a>
+        <a href="${h.url_for(controller='/document', action='globalShow', id=f.id, url=f.getName())}" target="_blank">${ f.getName() | F.shorten}</a>
       </td>
       <td class="number_field">
         ${kb(f.size)} KB
       </td>
       <td class="table_action">
-        <a href="/document/globalShow/${f.id}/${f.getName()}" target="_blank"><img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" 
+        <a href="${h.url_for(controller='/document', action='globalShow', id=f.id, url=f.getName())}" target="_blank"><img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" 
         title="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
         % if h.hasRole(['admin_ka']):
-          <a href="/document/globalDelete/${f.id}"><img src="/images/icons/delete_active_22.png" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
+          <a href="${h.url_for(controller='/document', action='globalDelete', id=f.id)}"><img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="${_('cm_overview_a_delete')}" title="${_('cm_overview_a_delete')}"></a>
         % endif
       </td>
     </tr>

Modified: base/trunk/mpulsweb/templates/documents/global_upload.mako
===================================================================
--- base/trunk/mpulsweb/templates/documents/global_upload.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/documents/global_upload.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/document/globalOverview">${_('doc_np_overview')}</a></li>
-  <li><a href="/document/globalUpload">${_('doc_np_upload')}</a></li>
+  <li><a href="${h.url_for(controller='/document', action='globalOverview')}">${_('doc_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/document', action='globalUpload')}">${_('doc_np_upload')}</a></li>
 </%def>
 
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/evaluation/evaluate.mako
===================================================================
--- base/trunk/mpulsweb/templates/evaluation/evaluate.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/evaluation/evaluate.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -4,8 +4,8 @@
 <div>
   ##<div class="widget modusfield actions">
   ##  <ul>
-  ##    <li><a href="/administration/resetPassword/${c.user.id}">${_('Reset password')}</a></li>
-  ##    <li><a href="/administration/listUsers">${_('Back to userlist')}</a></li>
+  ##    <li><a href="${h.url_for(controller='/administration', action='resetPassword', id=c.user.id)}">${_('Reset password')}</a></li>
+  ##    <li><a href="${h.url_for(controller='/administration', action='listUsers')}">${_('Back to userlist')}</a></li>
   ##  </ul>
   ##</div>
   <div class="header">
@@ -13,7 +13,7 @@
   </div>
 </div>
 <div>
-<form action="/evaluate/evaluateAction" method="POST" target="_blank">
+<form action="${h.url_for(controller='/evaluate', action='evaluateAction')}" method="POST" target="_blank">
 <input type="hidden" name="id">
 <table>
   <tr>
@@ -56,7 +56,7 @@
   <tr>
     <td class="label">${_('Filter')}</td>
     <td>
-      Yes (<a href="/evaluate/resetFilter/${c.evalconfig.get_setid()}">Reset</a>)<br>
+      Yes (<a href="${h.url_for(controller='/evaluate', action='resetFilter', id=c.evalconfig.get_setid())}">Reset</a>)<br>
       ${session['evaluation.options'].get('sql')}
     </td>
   </tr>

Modified: base/trunk/mpulsweb/templates/evaluation/evaluate_adele.mako
===================================================================
--- base/trunk/mpulsweb/templates/evaluation/evaluate_adele.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/evaluation/evaluate_adele.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -4,8 +4,8 @@
 <div>
   ##<div class="widget modusfield actions">
   ##  <ul>
-  ##    <li><a href="/administration/resetPassword/${c.user.id}">${_('Reset password')}</a></li>
-  ##    <li><a href="/administration/listUsers">${_('Back to userlist')}</a></li>
+  ##    <li><a href="${h.url_for(controller='/administration', action='resetPassword', id=c.user.id)}">${_('Reset password')}</a></li>
+  ##    <li><a href="${h.url_for(controller='/administration', action='listUsers')}">${_('Back to userlist')}</a></li>
   ##  </ul>
   ##</div>
   <div class="header">
@@ -13,7 +13,7 @@
   </div>
 </div>
 <div>
-<form action="/evaluate/evaluateAction" method="POST" target="_blank">
+<form action="${h.url_for(controller='/evaluate', action='evaluateAction')}" method="POST" target="_blank">
 <input type="hidden" name="id">
 <table>
   <tr>
@@ -55,7 +55,7 @@
   <tr>
     <td class="label">${_('Filter')}</td>
     <td>
-      Yes (<a href="/evaluate/resetFilter/${c.evalconfig.get_setid()}">Reset</a>)<br>
+      Yes (<a href="${h.url_for(controller='/evaluate', action='resetFilter', id=c.evalconfig.get_setid())}">Reset</a>)<br>
       ${session['evaluation.options'].get('sql')}
     </td>
   </tr>

Modified: base/trunk/mpulsweb/templates/evaluation/result.mako
===================================================================
--- base/trunk/mpulsweb/templates/evaluation/result.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/evaluation/result.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -7,18 +7,29 @@
     <meta http-equiv="content-style-type" content="text/css">
     <meta http-equiv="expires" content="0">
 
-    <link rel="shortcut icon" type="image/x-icon" href="/images/kompetenz3.ico">
-    <link href="/styles/all.css" media="all" rel="stylesheet" type="text/css">
-    <link href="/styles/screen.css" media="screen" rel="stylesheet" type="text/css">
-    <link href="/styles/print.css" media="print" rel="stylesheet" type="text/css">
+    <link rel="shortcut icon" type="image/x-icon"
+          href="${h.url_for('/images/kompetenz3.ico')}">
+    <link href="${h.url_for('/styles/all.css')}" media="all" 
+          rel="stylesheet" type="text/css">
+    <link href="${h.url_for('/styles/screen.css')}" media="screen" 
+          rel="stylesheet" type="text/css">
+    <link href="${h.url_for('/styles/print.css')}" media="print"
+          rel="stylesheet" type="text/css">
   </head>
   <body>
     <div id="content_header_large">
     <div id="modusfield">
       <div class="actions">
         <ul>
-          <li><a href="/evaluate/exportXML/evaluation_export.xml" target="_blank">${_('Export XML')}</a></li>
-          <li><a href="/evaluate/exportCSV/evaluation_export.csv" target="_blank">${_('Export CSV')}</a></li>
+          ## In the following two url_for calls for /evaluate/exportXML
+          ## and /evaluate/exportXML, the filename is not actually an
+          ## id, but as far as routing is concerned, it is one.
+          <li><a href="${h.url_for(controller='/evaluate', action='exportXML',
+                                   id='evaluation_export.xml')}"
+                 target="_blank">${_('Export XML')}</a></li>
+          <li><a href="${h.url_for(controller='/evaluate', action='exportCSV',
+                                   id='evaluation_export.csv')}"
+                 target="_blank">${_('Export CSV')}</a></li>
         </ul>
       </div>
     </div>

Modified: base/trunk/mpulsweb/templates/formularpage/formular.mako
===================================================================
--- base/trunk/mpulsweb/templates/formularpage/formular.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/formularpage/formular.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -4,11 +4,17 @@
 
 <%def name="buildNavipath()">
       	${parent.buildNavipath()}
-	<li><a href="/case/select/${session.get('case').id}/1" onclick="return checkModification();">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='select',
+                                 id=session.get('case').id, confirmed=1)}"
+               onclick="return checkModification();">${_('cm_np_select')}</a></li>
         % if session.get('render_mode') == 'ro':
-	<li><a href="/formularpage/show/${c.page_id}" onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
+	<li><a href="${h.url_for(controller='/formularpage', action='show',
+                                 id=c.page_id)}"
+               onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
         % else:
-	<li><a href="/formularpage/edit/${c.page_id}" onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
+	<li><a href="${h.url_for(controller='/formularpage', action='edit',
+                                 id=c.page_id)}" 
+               onclick="return checkModification();">${h.get_pagename(c.page_id)}</a></li>
         % endif
 </%def>
 
@@ -25,12 +31,18 @@
       <ul>
         % if h.hasRole(['cm_ka']) and session.get('case').getState().state not in (3,4,5):
           % if session.get('render_mode') == 'ro':
-            <li><a href="/formularpage/edit/${c.page_id}" onclick="return checkModification();"> ${_('cm_actions_link_edit')}</a></li>
+            <li><a href="${h.url_for(controller='/formularpage', action='edit',
+                                     id=c.page_id)}" 
+                   onclick="return checkModification();"> ${_('cm_actions_link_edit')}</a></li>
           % else:
-            <li><a href="/formularpage/show/${c.page_id}" onclick="return checkModification();"> ${_('cm_actions_link_show')}</a></li>
+            <li><a href="${h.url_for(controller='/formularpage', action='show',
+                                     id=c.page_id)}" 
+                   onclick="return checkModification();"> ${_('cm_actions_link_show')}</a></li>
           % endif
         % endif
-        <li><a href="/formularpage/printout/${c.page_id}" target="_blank" onclick="return checkModification();"> ${_('cm_actions_link_printout')}</a></li>
+        <li><a href="${h.url_for(controller='/formularpage', action='printout',
+                                 id=c.page_id)}" 
+               target="_blank" onclick="return checkModification();"> ${_('cm_actions_link_printout')}</a></li>
       </ul>
     </div>
   </div>

Modified: base/trunk/mpulsweb/templates/home/caseappointmentlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/home/caseappointmentlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/home/caseappointmentlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,13 +3,13 @@
   %if appointment.case_id:
     % if appointment.type == 0:
       <a href="${h.url_for(controller='/caseappointment', action='show', id=appointment.id, confirmed=0)}">
-        <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+        <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
     % else:
       <a href="${h.url_for(controller='/case', action='select', id=appointment.case_id, confirmed=0)}">
-        <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+        <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
     % endif
   % else:
     <a href="${h.url_for(controller='/caseappointment', action='show', id=appointment.id)}">
-      <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+      <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
   % endif
 </%def>

Modified: base/trunk/mpulsweb/templates/home/globalappointmentlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/home/globalappointmentlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/home/globalappointmentlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,7 +1,9 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="showAppointmentActions(appointment)">
   <a href="${h.url_for(controller='/appointment', action='show', id=appointment.id)}">
-    <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+    <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" 
+         alt="${_('cm_overview_a_show')}" 
+         title="${_('cm_overview_a_show')}"></a>
 </%def>
 
 <table class="appointment">

Modified: base/trunk/mpulsweb/templates/home/remindlist.mako
===================================================================
--- base/trunk/mpulsweb/templates/home/remindlist.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/home/remindlist.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,9 +1,14 @@
 <%inherit file="/appointments/remindlist_body.mako" />
 <%def name="showAppointmentActions(appointment)">
-  <a href="${h.url_for(controller='/case', action='select', id=appointment.case_id, confirmed=0)}">
-    <img src="/images/icons/open_active_22.png" border="0" alt="${_('cm_overview_a_show')}" title="${_('cm_overview_a_show')}"></a>
+  <a href="${h.url_for(controller='/case', action='select',
+                       id=appointment.case_id, confirmed=0)}">
+    <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" 
+         alt="${_('cm_overview_a_show')}" 
+         title="${_('cm_overview_a_show')}"></a>
 </%def>
 <%def name="showKeepActiveActions(appointment)">
   <a href="${h.url_for(controller='/case', action='keepActive', id=appointment.case_id, confirmed=0)}">
-    <img src="/images/icons/refresh_active_22.png" border="0" alt="${_('cm_overview_a_keepactive')}" title="${_('cm_overview_a_keepactive')}"></a>
+    <img src="${h.url_for('/images/icons/refresh_active_22.png')}" border="0" 
+         alt="${_('cm_overview_a_keepactive')}" 
+         title="${_('cm_overview_a_keepactive')}"></a>
 </%def>

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/confirm_delete_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag löschen</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_create_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag vornehmen</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_delete_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag löschen fehlgeschlagen</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_save_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag speichern fehlgeschlagen</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/failed_show_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag ansehen fehlgeschlagen</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_create_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag vornehmen</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_delete_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag löschen erfolgreich</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/dialogs/success_save_logbook_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
 	<li><a href="#">Eintrag abspeichern</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/logbook/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/edit.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/edit.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -8,8 +8,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/logbook/index/${session.get('case').id}">Tagebuch</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Tagebuch</a></li>
   <li><a href="#"></a>Eintrag bearbeiten</li>
 </%def>
 <div id="content_header_small">
@@ -19,7 +19,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/logbook/show/${c.entry.id}">Zur&uuml;ck zu: Eintrag ansehen</a></li>
+        <li><a href="${h.url_for(controller='/logbook', action='show', id=c.entry.id)}">Zur&uuml;ck zu: Eintrag ansehen</a></li>
       </ul>
     </div>
   </div>
@@ -27,7 +27,8 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="appointment">
   <div id="waska_form">
-    <form action="/logbook/editAction" accept-charset="UTF-8" method="POST">
+    <form action="${h.url_for(controller='/logbook', action='editAction')}"
+          accept-charset="UTF-8" method="POST">
       <%include file="../logbook/edit_body.mako" />
       <input type="hidden" name="id">
     </form>

Modified: base/trunk/mpulsweb/templates/logbook/new.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/new.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/new.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -8,8 +8,8 @@
 %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/logbook/index/${session.get('case').id}">Tagebuch</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Tagebuch</a></li>
   <li><a href="#"></a>Eintrag vornehmen</li>
 </%def>
 <div id="content_header_small">
@@ -19,7 +19,7 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/logbook/index/${session.get('case').id}">Zur&uuml;ck zu: Tagebuch</a></li>
+        <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Zur&uuml;ck zu: Tagebuch</a></li>
       </ul>
     </div>
   </div>
@@ -27,7 +27,8 @@
 ${self.buildFormErrors(formular_labels)}
 <div id="appointment">
 <div id="waska_form">
-  <form action="/logbook/newAction" accept-charset="UTF-8" method="POST">
+  <form action="${h.url_for(controller='/logbook', action='newAction')}"
+        accept-charset="UTF-8" method="POST">
   <%include file="../logbook/edit_body.mako" />
   </form>
 </div>

Modified: base/trunk/mpulsweb/templates/logbook/overview.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/overview.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/overview.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/logbook/index/${session.get('case').id}">Tagebuch</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Tagebuch</a></li>
 </%def>
 
 <div id="content_header_small">
@@ -25,20 +25,52 @@
 <table class="appointment">
   <tr>
     <th class="date table_header_h">Datum
-      <a href="/logbook/index/${session.get('case').id}?sort_field=datum&sort_order=asc"><img class="sorticon" src="/images/icons/sort_asc.png" alt=""></a> 
-      <a href="/logbook/index/${session.get('case').id}?sort_field=datum&sort_order=desc"><img class="sorticon" src="/images/icons/sort_desc.png" alt=""></a> 
+      <a href="${h.url_for(controller='/logbook', action='index', 
+                           id=session.get('case').id, sort_field='datum', 
+                           sort_order='asc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_asc.png')}" alt=""></a>
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='datum', 
+                           sort_order='desc')}"
+         ><img class="sorticon" 
+               src="${h.url_for('/images/icons/sort_desc.png')}" alt=""></a>
     </th>
     <th class="title table_header_h">Bearbeiter
-      <a href="/logbook/index/${session.get('case').id}?sort_field=nachname&sort_order=asc"><img class="sorticon" src="/images/icons/sort_asc.png" alt=""></a> 
-      <a href="/logbook/index/${session.get('case').id}?sort_field=nachname&sort_order=desc"><img class="sorticon" src="/images/icons/sort_desc.png" alt=""></a> 
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='nachname',
+                           sort_order='asc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_asc.png')}" alt=""></a>
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='nachname', 
+                           sort_order='desc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_desc.png')}" alt=""></a>
     </th>
     <th class="title table_header_h">Art
-      <a href="/logbook/index/${session.get('case').id}?sort_field=art&sort_order=asc"><img class="sorticon" src="/images/icons/sort_asc.png" alt=""></a> 
-      <a href="/logbook/index/${session.get('case').id}?sort_field=art&sort_order=desc"><img class="sorticon" src="/images/icons/sort_desc.png" alt=""></a> 
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='art',
+                           sort_order='asc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_asc.png')}" alt=""></a>
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='art',
+                           sort_order='desc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_desc.png')}" alt=""></a>
     </th>
     <th class="title table_header_h">Dauer (min)
-      <a href="/logbook/index/${session.get('case').id}?sort_field=dauer&sort_order=asc"><img class="sorticon" src="/images/icons/sort_asc.png" alt=""></a> 
-      <a href="/logbook/index/${session.get('case').id}?sort_field=dauer&sort_order=desc"><img class="sorticon" src="/images/icons/sort_desc.png" alt=""></a> 
+      <a href="${h.url_for(controller='/logbook', action='index',
+                           id=session.get('case').id, sort_field='dauer',
+                           sort_order='asc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_asc.png')}" alt=""></a>
+      <a href="${h.url_for(controller='/logbook', action='index', 
+                           id=session.get('case').id, sort_field='dauer',
+                           sort_order='desc')}"
+         ><img class="sorticon"
+               src="${h.url_for('/images/icons/sort_desc.png')}" alt=""></a>
     </th>
     <th class="action table_header_h">${_('app_overview_tbl_header_actions')}</th>
   </tr>
@@ -51,10 +83,10 @@
     <td class="title">${entry.getDuration() | h}</td>
     <td class="action">
         <a href="${h.url_for(controller='/logbook', action='show', id=entry.id)}">
-            <img src="/images/icons/open_active_22.png" border="0" alt="Eintrag ansehen" title="Eintrag ansehen"></a>
+            <img src="${h.url_for('/images/icons/open_active_22.png')}" border="0" alt="Eintrag ansehen" title="Eintrag ansehen"></a>
         % if h.hasRole(['cm_ka']) and entry.getKindAsInt() != 0:
         <a href="${h.url_for(controller='/logbook', action='delete', id=entry.id, confirmed=0)}">
-            <img src="/images/icons/delete_active_22.png" border="0" alt="Eintrag löschen" title="Eintrag löschen"></a>
+            <img src="${h.url_for('/images/icons/delete_active_22.png')}" border="0" alt="Eintrag löschen" title="Eintrag löschen"></a>
         % endif
     </td>
   </tr>

Modified: base/trunk/mpulsweb/templates/logbook/overview_print.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/overview_print.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/overview_print.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/case/logbook/${session.get('case').id}">Tagebuch</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Tagebuch</a></li>
   <li><a href="#"></a>Einträge</a></li>
 </%def>
 <div id="content_header_small">
@@ -15,7 +15,7 @@
     <div class="actions">
       <ul>
         <li>
-          <a href="/case/logbook/${session.get('case').id}">Zur&uuml;ck zu: Tagebuch</a>
+          <a href="${h.url_for(controller='/case', action='logbook', id=session.get('case').id)}">Zur&uuml;ck zu: Tagebuch</a>
         </li>
       </ul>
     </div>

Modified: base/trunk/mpulsweb/templates/logbook/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/logbook/show.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/logbook/show.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/logbook/index/${session.get('case').id}">Tagebuch</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Tagebuch</a></li>
   <li><a href="#"></a>Tagebucheintrag</a></li>
 </%def>
 <div id="content_header_small">
@@ -21,7 +21,7 @@
         </li>
         % endif
         <li>
-          <a href="/logbook/index/${session.get('case').id}">Zur&uuml;ck zu: Tagebuch</a>
+          <a href="${h.url_for(controller='/logbook', action='index', id=session.get('case').id)}">Zur&uuml;ck zu: Tagebuch</a>
         </li>
       </ul>
     </div>

Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/main.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -177,7 +177,8 @@
   <ul>
     % for eval in g.mpuls_config.get('evaluations', 'enabled'): 
       <li>
-        <a href="/evaluate/evaluate/${eval.get('id')}">${eval.get('name')}</a>
+        <a href="${h.url_for(controller='/evaluate', action='evaluate',
+                             id=eval.get('id'))}">${eval.get('name')}</a>
       </li>
     % endfor
   </ul>

Modified: base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako
===================================================================
--- base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/phase/dialogs/success_set_phase.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,27 +3,27 @@
 <%inherit file="/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id)}">${_('cm_np_select')}</a></li>
   <li><a href="#">${_('case_cm_phase')}</a></li>
 </%def>
 <div class="dialog" />
-  <h1><img src="/images/icons/info/confirmation.png" alt="Erledigt"/>${c.dialog_title | F.NA}</h1>
+  <h1><img src="${h.url_for('/images/icons/info/confirmation.png')}" alt="Erledigt"/>${c.dialog_title | F.NA}</h1>
   <p>${c.dialog_text | F.NA}</p>
   <div class="import_box_dialog">
     <p>
       Beachten Sie, dass bei einem Phasenwechsel die Fallakte in ausgedruckter
       Form dem Jugendlichen ausgehändigt werden sollte. Weitere Informationen
       dazu finden Sie in der 
-      <a href="/case/showhelp/datenschutz_veraenderte_daten" target="_blank">Hilfe</a>
+      <a href="${h.url_for(controller='/case', action='showhelp', id='datenschutz_veraenderte_daten')}" target="_blank">Hilfe</a>
     </p>
     <p class="import_p">
       <strong class="import_number">1.</strong> Fallakte drucken:
-      <a class="button import" href="/case/printAll/${session.get('case').id}/0" target="_blank">Drucken</a>
+      <a class="button import" href="${h.url_for(controller='/case', action='printAll', id=session.get('case').id, confirmed=0)}" target="_blank">Drucken</a>
     </p>
     % if g.mpuls_config.is_enabled('case-module', 'phase'):
     <p class="import_p">
       <strong class="export_number">2.</strong> Phasenwechsel im Falltagebuch dokumentieren:
-      <a class="button import" href="/logbook/new/${session.get('case').id}">Falltagebuch</a>
+      <a class="button import" href="${h.url_for(controller='/logbook', action='new', id=session.get('case').id)}">Falltagebuch</a>
     </p>
     % endif
     <p><strong>oder</strong></p>

Modified: base/trunk/mpulsweb/templates/phase/phase.mako
===================================================================
--- base/trunk/mpulsweb/templates/phase/phase.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/phase/phase.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
-  <li><a href="/case/select/${session.get('case').id}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id)}">${_('cm_np_select')}</a></li>
   <li><a href="#">${_('case_cm_phase')}</a></li>
 </%def>
 

Modified: base/trunk/mpulsweb/templates/privacy/default/privacy_statement.html
===================================================================
--- base/trunk/mpulsweb/templates/privacy/default/privacy_statement.html	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/default/privacy_statement.html	2010-05-31 10:04:21 UTC (rev 2827)
@@ -12,9 +12,12 @@
 <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8">
 <meta http-equiv="content-style-type" content="text/css">
 <meta http-equiv="expires" content="0">
-<link href="/styles/all.css" media="all" rel="stylesheet" type="text/css">
-<link href="/styles/print.css" media="screen" rel="stylesheet" type="text/css">
-<link href="/styles/print.css" media="print" rel="stylesheet" type="text/css">
+<link href="${h.url_for('/styles/all.css')}" media="all" rel="stylesheet" 
+      type="text/css">
+<link href="${h.url_for('/styles/print.css')}" media="screen" rel="stylesheet" 
+      type="text/css">
+<link href="${h.url_for('/styles/print.css')}" media="print" rel="stylesheet" 
+      type="text/css">
 <style type="text/css">
 .statement_content {
         width: 90%;

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/accept_success.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/accept_success.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/accept_success.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../casemanagement/main.mako"/>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/case/setStatement/${session.get('case').id}/0">${_('statement_np_edit')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='setStatement', id=session.get('case').id, confirmed=0)}">${_('statement_np_edit')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/confirm.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/confirm.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/confirm.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
   <li><a href="#">${_('statement_np_edit')}</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/decline_failed.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/decline_failed.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/decline_failed.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako"/>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/case/setStatement/${session.get('case').id}/0">${_('statement_np_edit')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='setStatement', id=session.get('case').id, confirmed=0)}">${_('statement_np_edit')}</a></li>
 </%def>
 <%include file="../../dialogs/failed.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/decline_success.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/decline_success.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/decline_success.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="../../main.mako"/>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/case/setStatement/${session.get('case').id}/0">${_('statement_np_edit')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='setStatement', id=session.get('case').id, confirmed=0)}">${_('statement_np_edit')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/">${_('cm_np_root')}</a></li>
-  <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+  <li><a href="${h.url_for(controller='/case')}">${_('cm_np_root')}</a></li>
+  <li><a href="${h.url_for(controller='/case_overview')}">${_('cm_np_overview')}</a></li>
   <li><a href="#">${_('cm_np_show')}</a></li>
 </%def>
 <%include file="missing_statement_body.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement_body.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement_body.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/dialogs/missing_statement_body.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -1,6 +1,6 @@
 ## -*- coding: utf-8 -*- 
 <div class="dialog" />
-<h1><img src="/images/icons/info/info.png" alt="" width="48" height="48" />${_('statement_dialog_header_statement_no')}</h1>
+<h1><img src="${h.url_for('/images/icons/info/info.png')}" alt="" width="48" height="48" />${_('statement_dialog_header_statement_no')}</h1>
 <p>${_('statement_dialog_p_statement_no_explanation')}</p>
 % if h.hasRole(['cm_ka']):
   <p>${h.literal(_('statement_dialog_p_options') % h.link_to(_('statement_edit_a_statement_form_printversion'), h.url_for(controller="/privacy", action="printStatement", id=c.ds_id)))}
@@ -22,7 +22,7 @@
   </p>
 % else:
   <p>
-    <a class="button" href="/case/select/${c.ds_id}/1">${_('statement_dialog_a_ok')}</a>
+    <a class="button" href="${h.url_for(controller='/case', action='select', id=c.ds_id, confirmed=1)}">${_('statement_dialog_a_ok')}</a>
   </p>
 % endif
 

Modified: base/trunk/mpulsweb/templates/privacy/edit_statement.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/edit_statement.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/edit_statement.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,7 +2,7 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
   <li><a href="#">${_('statement_np_edit')}</a></li>
 </%def>
 <%include file="dialogs/missing_statement_body.mako" />

Modified: base/trunk/mpulsweb/templates/privacy/list_statements.mako
===================================================================
--- base/trunk/mpulsweb/templates/privacy/list_statements.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/privacy/list_statements.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
-  <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-  <li><a href="/privacy/listStatements">${_('statement_np_list_statements')}</a></li>
+  <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+  <li><a href="${h.url_for(controller='/privacy', action='listStatements')}">${_('statement_np_list_statements')}</a></li>
 </%def>
 <h1>${_('Avaliable statements')}</h1>
 <div class="widget container">

Modified: base/trunk/mpulsweb/templates/repeatgroup/dialogs/confirm_delete_rg_entry.mako
===================================================================
--- base/trunk/mpulsweb/templates/repeatgroup/dialogs/confirm_delete_rg_entry.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/repeatgroup/dialogs/confirm_delete_rg_entry.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,8 +2,8 @@
 <%inherit file="/casemanagement/main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/formularpage/edit/${session.get('case').getPageId()}" onclick="return checkModification();">${h.get_pagename(session.get('case').getPageId())}</a></li>
+        <li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/formularpage', action='edit', id=session.get('case').getPageId())}" onclick="return checkModification();">${h.get_pagename(session.get('case').getPageId())}</a></li>
 	<li><a href="#">Eintrag löschen</a></li>
 </%def>
 <%include file="../../dialogs/confirm.mako" />

Modified: base/trunk/mpulsweb/templates/settings/dialogs/success_edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/dialogs/success_edit.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/settings/dialogs/success_edit.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -2,9 +2,9 @@
 <%inherit file="../../main.mako" />
 <%def name="buildNavipath()">
 	${parent.buildNavipath()}
-        <li><a href="/administration">${_('adm_np_root')}</a></li>
-	<li><a href="/administration/showSettings">${_('adm_np_showsettings')}</a></li>
-        <li><a href="/administration/editSettings">${_('adm_np_editsettings')}</a></li>
+        <li><a href="${h.url_for(controller='/administration')}">${_('adm_np_root')}</a></li>
+	<li><a href="${h.url_for(controller='/administration', action='showSettings')}">${_('adm_np_showsettings')}</a></li>
+        <li><a href="${h.url_for(controller='/administration', action='editSettings')}">${_('adm_np_editsettings')}</a></li>
         <li><a href="#">${_('adm_np_editsettings_success')}</a></li>
 </%def>
 <%include file="../../dialogs/success.mako" />

Modified: base/trunk/mpulsweb/templates/settings/edit.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/edit.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/settings/edit.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -9,13 +9,13 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   <li>
-    <a href="/settings">${_('adm_np_root')}</a>
+    <a href="${h.url_for(controller='/settings')}">${_('adm_np_root')}</a>
   </li>
   <li>
-    <a href="/settings/show">${_('adm_np_showsettings')}</a>
+    <a href="${h.url_for(controller='/settings', action='show')}">${_('adm_np_showsettings')}</a>
   </li>
   <li>
-    <a href="/settings/edit">${_('adm_np_editsettings')}</a>
+    <a href="${h.url_for(controller='/settings', action='edit')}">${_('adm_np_editsettings')}</a>
   </li>
 </%def>
 
@@ -41,7 +41,7 @@
 <div id="admin_edit_settings">
   <p>${_('adm_con_es_editsettings')}</p>
   <div class="waska_form">
-    <form action="/settings/editAction" method="POST">
+    <form action="${h.url_for(controller='/settings', action='editAction')}" method="POST">
       <fieldset>
         <legend>Angaben zur Einrichtung</legend>
         <div class="waska_form_element w30">
@@ -106,7 +106,7 @@
         <div class="waska_form_element w100">
           % if c.form_errors.get('anon_transfer'):
             <a href="#error_list">
-              <img class="smallicon" alt="" src="/images/icons/info/failure_22.png">
+              <img class="smallicon" alt="" src="${h.url_for('/images/icons/info/failure_22.png')}">
             </a>
           % endif
           % if c.agency.isAnonTransfer():

Modified: base/trunk/mpulsweb/templates/settings/show.mako
===================================================================
--- base/trunk/mpulsweb/templates/settings/show.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/settings/show.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -4,10 +4,10 @@
 <%def name="buildNavipath()">
   ${parent.buildNavipath()}
   <li>
-    <a href="/settings">${_('adm_np_root')}</a>
+    <a href="${h.url_for(controller='/settings')}">${_('adm_np_root')}</a>
   </li>
   <li>
-    <a href="/settings/show">${_('adm_np_showsettings')}</a>
+    <a href="${h.url_for(controller='/settings', action='show')}">${_('adm_np_showsettings')}</a>
   </li>
 </%def>
 
@@ -19,7 +19,7 @@
     <div class="actions">
       <ul>
 	<li>
-          <a href="/settings/edit"> 
+          <a href="${h.url_for(controller='/settings', action='edit')}"> 
             ${_('adm_actions_link_editsettings')}
           </a>
         </li>

Modified: base/trunk/mpulsweb/templates/tags/tags.mako
===================================================================
--- base/trunk/mpulsweb/templates/tags/tags.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/tags/tags.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -3,8 +3,8 @@
 <%!  import mpulsweb.lib.helper.filters as F %>
 <%def name="buildNavipath()">
 		${parent.buildNavipath()}
-	<li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
-	<li><a href="/tags/tags/${session.get('case').id}">${_('Tags')}</a></li>
+	<li><a href="${h.url_for(controller='/case', action='select', id=session.get('case').id, confirmed=1)}">${_('cm_np_select')}</a></li>
+	<li><a href="${h.url_for(controller='/tags', action='tags', id=session.get('case').id)}">${_('Tags')}</a></li>
 </%def>
 
 <div id="content_header_small">

Modified: base/trunk/mpulsweb/templates/usersettings/show_settings.mako
===================================================================
--- base/trunk/mpulsweb/templates/usersettings/show_settings.mako	2010-05-31 10:04:07 UTC (rev 2826)
+++ base/trunk/mpulsweb/templates/usersettings/show_settings.mako	2010-05-31 10:04:21 UTC (rev 2827)
@@ -10,9 +10,9 @@
   <div id="modusfield">
     <div class="actions">
       <ul>
-        <li><a href="/usersettings/changePassword/${h.getUserId()}"> ${_('usersettings_a_change_pw')}</a></li>
+        <li><a href="${h.url_for(controller='/usersettings', action='changePassword', id=h.getUserId())}"> ${_('usersettings_a_change_pw')}</a></li>
         % if h.hasRole(['cm_ka']):
-          <li><a href="/usersettings/editStandin/${h.getUserId()}"> ${_('usersettings_a_change_replace')}</a></li>
+          <li><a href="${h.url_for(controller='/usersettings', action='editStandin', id=h.getUserId())}"> ${_('usersettings_a_change_replace')}</a></li>
         % endif
       </ul>
     </div>



More information about the Mpuls-commits mailing list