[Formed-commits] r430 - in trunk: . formed/formed/plugins/export
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Nov 24 18:11:43 CET 2010
Author: bh
Date: 2010-11-24 18:11:42 +0100 (Wed, 24 Nov 2010)
New Revision: 430
Modified:
trunk/ChangeLog
trunk/formed/formed/plugins/export/rules_sh.py
Log:
* formed/formed/plugins/export/rules_sh.py (generate_tagging):
Remove unused variable "inserts" and corresponding commented out
code.
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2010-11-24 17:09:57 UTC (rev 429)
+++ trunk/ChangeLog 2010-11-24 17:11:42 UTC (rev 430)
@@ -1,5 +1,11 @@
2010-11-24 Bernhard Herzog <bh at intevation.de>
+ * formed/formed/plugins/export/rules_sh.py (generate_tagging):
+ Remove unused variable "inserts" and corresponding commented out
+ code.
+
+2010-11-24 Bernhard Herzog <bh at intevation.de>
+
* formed/formed/plugins/export/rules_sh.py: Remove some commented
out code.
Modified: trunk/formed/formed/plugins/export/rules_sh.py
===================================================================
--- trunk/formed/formed/plugins/export/rules_sh.py 2010-11-24 17:09:57 UTC (rev 429)
+++ trunk/formed/formed/plugins/export/rules_sh.py 2010-11-24 17:11:42 UTC (rev 430)
@@ -185,7 +185,6 @@
def generate_tagging(rules, document):
out = []
date_rules = []
- inserts = []
base_sql = "SELECT id from ( %%(table)s ) m WHERE ( %(where)s )"
# 1. Checks
out.append('<checks>')
@@ -205,7 +204,6 @@
if tag >= 1000:
date_rules.append(tag)
out.append(generate_check(tag, name, desc, add_sql, del_sql))
- #inserts.append("""INSERT INTO tags (id, label, description) VALUES (%s, '%s','%s');""" % (tag, name.replace("'", '"'), desc.replace("'", '"')))
# Added check for test if all date-sequence rules are ok
tag = "10"
name = "Datumsangaben konsistent"
@@ -217,10 +215,8 @@
" && ARRAY[%s]" % ",".join([str(id) for id in date_rules]))
del_sql = base_sql % {'where': "TRUE"}
out.append(generate_check(tag, name, desc, add_sql, del_sql))
- #inserts.append("""INSERT INTO tags (id, label, description) VALUES (%s, '%s','%s');""" % (tag, name.replace("'", '"'), desc.replace("'", '"')))
out.append('</checks>')
out.append('<!--\n')
- #out.append("\n".join(inserts))
out.append('\n-->')
return "".join(out)
More information about the Formed-commits
mailing list