[Mpuls-commits] r772 - in wasko/branches/2.0: . waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Jan 19 20:50:49 CET 2010


Author: bh
Date: 2010-01-19 20:50:49 +0100 (Tue, 19 Jan 2010)
New Revision: 772

Modified:
   wasko/branches/2.0/ChangeLog.txt
   wasko/branches/2.0/waskaweb/lib/helpers.py
Log:
* waskaweb/lib/helpers.py (get_adele_name, get_adele_description)
(str2date, str2time, str2datetime): Removed.  They're not used
anywhere


Modified: wasko/branches/2.0/ChangeLog.txt
===================================================================
--- wasko/branches/2.0/ChangeLog.txt	2010-01-19 19:43:39 UTC (rev 771)
+++ wasko/branches/2.0/ChangeLog.txt	2010-01-19 19:50:49 UTC (rev 772)
@@ -1,5 +1,11 @@
 2010-01-19  Bernhard Herzog  <bh at intevation.de>
 
+	* waskaweb/lib/helpers.py (get_adele_name, get_adele_description)
+	(str2date, str2time, str2datetime): Removed.  They're not used
+	anywhere
+
+2010-01-19  Bernhard Herzog  <bh at intevation.de>
+
 	* waskaweb/model/logbook.py (checkDate, checkTime),
 	waskaweb/lib/helpers.py (checkDate, checkTime): Move checkDate and
 	checkTime and the constants used by them to from helpers to

Modified: wasko/branches/2.0/waskaweb/lib/helpers.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-19 19:43:39 UTC (rev 771)
+++ wasko/branches/2.0/waskaweb/lib/helpers.py	2010-01-19 19:50:49 UTC (rev 772)
@@ -58,12 +58,7 @@
     error_pages = set()
     return tree.render(tree.root, FileCache(), error_pages)
 
-def get_adele_name(id=None):
-    return EVAL_NAMES.get(str(id), 'Auswertung Nr: %s' % id)
 
-def get_adele_description(id):
-    return EVAL_DESCRIPTIONS.get(str(id), 'Keine Beschreibung vorhanden')
-
 def hasRole(rolelist):
     try:
         user = session['USER_AUTHORIZED']
@@ -134,8 +129,6 @@
         return ''
     return value
 
-def str2date():
-    pass
 
 def date2str(dt):
     if dt is None: return ''
@@ -146,9 +139,6 @@
         log.error(err)
         return dd_mm_YYYY(dt)
 
-def str2time():
-    pass
-
 def time2str(dt):
     if dt is None: return ''
     try:
@@ -156,9 +146,6 @@
     except:
         return ''
 
-def str2datetime():
-    pass
-
 def datetime2str(dt):
     if dt is None: return ''
     try:



More information about the Mpuls-commits mailing list