[Mpuls-commits] r3176 - base/trunk/mpulsweb/model
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Mon Jul 12 16:26:08 CEST 2010
Author: torsten
Date: 2010-07-12 16:26:07 +0200 (Mon, 12 Jul 2010)
New Revision: 3176
Modified:
base/trunk/mpulsweb/model/phase.py
Log:
Load walk_it from case helpers
Modified: base/trunk/mpulsweb/model/phase.py
===================================================================
--- base/trunk/mpulsweb/model/phase.py 2010-07-12 14:22:29 UTC (rev 3175)
+++ base/trunk/mpulsweb/model/phase.py 2010-07-12 14:26:07 UTC (rev 3176)
@@ -11,6 +11,7 @@
from formed.instance.tree import InstanceLeaf, PageInstanceNode
from mpulsweb.lib.helpers import tag, url_for
+from mpulsweb.lib.helper.case import walk_it
from mpulsweb.lib.db import PostgresDBInterface
@@ -31,14 +32,6 @@
CASE_NOT_CONSISTENT = """Die Phase '%s' ist nicht in einem konsistenten Zustand und
hat nicht ausgefuellte Pflichtfelder: %s"""
-def walk_it(node, type=None):
- items = []
- items.append(node)
- if not isinstance(node, InstanceLeaf):
- for c in node.getChildren():
- items.extend(walk_it(c))
- return items
-
def get_flags(flags):
result = {'required': [], 'time': []}
if not flags: return result
More information about the Mpuls-commits
mailing list