[Mpuls-commits] r1018 - wasko/branches/2.0/waskaweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jan 29 15:58:11 CET 2010


Author: torsten
Date: 2010-01-29 15:58:10 +0100 (Fri, 29 Jan 2010)
New Revision: 1018

Modified:
   wasko/branches/2.0/waskaweb/lib/renderer.py
Log:
* waskaweb/lib/renderer.py: Import UNKNOWN_* from new libformed
instead of defining own vars.


Modified: wasko/branches/2.0/waskaweb/lib/renderer.py
===================================================================
--- wasko/branches/2.0/waskaweb/lib/renderer.py	2010-01-29 14:55:03 UTC (rev 1017)
+++ wasko/branches/2.0/waskaweb/lib/renderer.py	2010-01-29 14:58:10 UTC (rev 1018)
@@ -29,6 +29,7 @@
 #
 
 import logging
+from formed.meta import UNKNOWN_STR, UNKNOWN_INT, UNKNOWN_DATE
 from formed.meta.nodecomponents import Node
 from formed.meta.nodecomponents import NodeComponent as MetaNodeComponent
 from formed.instance.tree import RepeatInstanceContainerNode, RepeatInstanceNode 
@@ -47,9 +48,6 @@
 
 log = logging.getLogger(__name__)
 
-UNKNOWN_STR  = _('unknown')
-UNKNOWN_INT  = -9999999
-UNKNOWN_DATE = date(1, 1, 1)
 TARGET = re.compile(r"(\w+)(?:|:(.+))$")
 WEIGHTS = frozenset([15, 25, 30, 40, 45, 50, 55, 60, 75])
 #SET_MODIFICATION = 'onchange="setModification();"'



More information about the Mpuls-commits mailing list