[Formed-commits] r324 - in trunk: . formed/formed/plugins/export

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Apr 2 16:24:39 CEST 2009


Author: teichmann
Date: 2009-04-02 16:24:37 +0200 (Thu, 02 Apr 2009)
New Revision: 324

Modified:
   trunk/ChangeLog
   trunk/formed/formed/plugins/export/sql.py
Log:
SQL Export: New function to anonymize uuids.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-03-31 15:16:30 UTC (rev 323)
+++ trunk/ChangeLog	2009-04-02 14:24:37 UTC (rev 324)
@@ -1,3 +1,8 @@
+2009-04-02	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/sql.py: call anonymization
+	  of uuid on anonymization of case.
+
 2009-03-31	Sascha L. Teichmann <teichmann at intevation.de>
 
 	* formed/formed/plugins/export/sql.py: Set uuid_id to NULL in

Modified: trunk/formed/formed/plugins/export/sql.py
===================================================================
--- trunk/formed/formed/plugins/export/sql.py	2009-03-31 15:16:30 UTC (rev 323)
+++ trunk/formed/formed/plugins/export/sql.py	2009-04-02 14:24:37 UTC (rev 324)
@@ -76,6 +76,7 @@
 RETURNS void AS
 $$
 BEGIN
+    anonymize_uuid(mid);
 """
 
 ANON_UPDATE = \
@@ -107,10 +108,9 @@
 class RelationAnonymizer:
 
     def __init__(self, raw_table, table):
-        self.name      = table
+        self.name = table
+        anonym = []
 
-        anonym = [ "uuid_id = NULL" ]
-
         for c in raw_table.columns:
             #if not c.accessible: continue
             if not c.func:



More information about the Formed-commits mailing list