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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Jun 17 12:45:48 CEST 2009


Author: torsten
Date: 2009-06-17 12:45:48 +0200 (Wed, 17 Jun 2009)
New Revision: 335

Modified:
   trunk/ChangeLog
   trunk/formed/formed/plugins/export/new_sql.py
Log:
Fixed anonymize function and rolenames


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-06-17 09:42:37 UTC (rev 334)
+++ trunk/ChangeLog	2009-06-17 10:45:48 UTC (rev 335)
@@ -1,3 +1,8 @@
+2009-06-17	Torsten Irländer <torsten.irlaender at intevation.de>
+
+	* formed/formed/plugins/export/new_sql.py: Fixed anonymize function
+	and rolenames.
+
 2009-06-17	Sascha L. Teichmann <teichmann at intevation.de>
 
 	* formed/formed/plugins/export/new_sql.py: s/-/_/ in relation names.
@@ -125,7 +130,261 @@
 	  Adjusted imports.
 
 2009-03-12	Torsten Irländer <torsten.irlaender at intevation.de>
+2009-06-17	Sascha L. Teichmann <teichmann at intevation.de>
 
+	* formed/formed/plugins/export/new_sql.py: s/-/_/ in relation names.
+
+2009-05-26	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/names/filter.py: small optimization.
+
+2009-05-26	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/names/filter.py: Repaired unique filter for
+	  nodecomponent names.
+
+2009-05-06	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Only create depending 
+	  repeat groups if no uuid is given. If a uuid is given then
+	  the creation is triggered by an xml import.
+
+2009-04-28	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/new_sql.py: New SQL schema generator to
+	  replace the old one. The new one faciliates the new RepeatNode instead
+	  of the Group.isRepeat() method to tell if something is to be repeated.
+
+	* formed/formed/config.py: Use new SQL schema generator plug-in by default.
+	  The old one is deactivated.
+
+	* formed/formed/plugins/export/rg_sql.py: Fix 'rg_' naming of repeat groups.
+
+2009-04-28	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Added delete functions.
+	  TODO: Adjust execution rights.
+
+2009-04-27	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Fixed $$$$ -> $$ template problems.
+	  Add functions to create dataset.
+
+2009-04-24	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: new plug-in to generate
+	  tree structure functions in database.
+
+	* formed/formed/config.py: load plug-in.
+
+2009-04-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Added 'digest' attribute to 
+	  RepeatNode. Removed needless methods
+
+2009-04-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: make 'equal' and 'not equal'
+	  more readable with '=' and '<>'.
+
+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
+	  case_anonymize().
+
+2009-03-31	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Add some code to pretty print
+	  the trees infix.
+
+	* formed/formed/plugins/export/rules.py: New. Exporter for human
+	  readable rules.
+
+	* formed/formed/plugins/export/html.py: Fixed HTML generation.
+
+	* formed/formed/config.py: Added new new Rule export plug-in.
+
+2009-03-31	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Fixes from server. Raise
+	  exceptions if there is less or more than one element on stack
+	  after compilation of expression.
+
+2009-03-20	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Removed debug output
+
+	* formed/formed/plugins/modify/rules.py: Fixed error message.
+	  Generate past and future rules.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Forget to call today with context.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/io/document.py: Fixed syntax typo.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: ConditionalNode inherits from Node directly.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Added ConditionalNode
+
+	* formed/formed/io/document.py: Make ConditionalNode loadable.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/modify/rules.py: Make the error descriptions
+	  in date sequence rules more precise.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/modify/rules.py: generate date sequence rules.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: New tree based expression engine.
+
+	* formed/formed/model/__init__.py, formed/formed/model/data.py:
+	  Adjusted imports.
+
+2009-03-12	Torsten Irländer <torsten.irlaender at intevation.de>
+2009-06-17	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/new_sql.py: s/-/_/ in relation names.
+
+2009-05-26	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/names/filter.py: small optimization.
+
+2009-05-26	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/names/filter.py: Repaired unique filter for
+	  nodecomponent names.
+
+2009-05-06	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Only create depending 
+	  repeat groups if no uuid is given. If a uuid is given then
+	  the creation is triggered by an xml import.
+
+2009-04-28	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/new_sql.py: New SQL schema generator to
+	  replace the old one. The new one faciliates the new RepeatNode instead
+	  of the Group.isRepeat() method to tell if something is to be repeated.
+
+	* formed/formed/config.py: Use new SQL schema generator plug-in by default.
+	  The old one is deactivated.
+
+	* formed/formed/plugins/export/rg_sql.py: Fix 'rg_' naming of repeat groups.
+
+2009-04-28	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Added delete functions.
+	  TODO: Adjust execution rights.
+
+2009-04-27	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: Fixed $$$$ -> $$ template problems.
+	  Add functions to create dataset.
+
+2009-04-24	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/export/rg_sql.py: new plug-in to generate
+	  tree structure functions in database.
+
+	* formed/formed/config.py: load plug-in.
+
+2009-04-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Added 'digest' attribute to 
+	  RepeatNode. Removed needless methods
+
+2009-04-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: make 'equal' and 'not equal'
+	  more readable with '=' and '<>'.
+
+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
+	  case_anonymize().
+
+2009-03-31	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Add some code to pretty print
+	  the trees infix.
+
+	* formed/formed/plugins/export/rules.py: New. Exporter for human
+	  readable rules.
+
+	* formed/formed/plugins/export/html.py: Fixed HTML generation.
+
+	* formed/formed/config.py: Added new new Rule export plug-in.
+
+2009-03-31	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Fixes from server. Raise
+	  exceptions if there is less or more than one element on stack
+	  after compilation of expression.
+
+2009-03-20	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Removed debug output
+
+	* formed/formed/plugins/modify/rules.py: Fixed error message.
+	  Generate past and future rules.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: Forget to call today with context.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/io/document.py: Fixed syntax typo.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: ConditionalNode inherits from Node directly.
+
+2009-03-16	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/data.py: Added ConditionalNode
+
+	* formed/formed/io/document.py: Make ConditionalNode loadable.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/modify/rules.py: Make the error descriptions
+	  in date sequence rules more precise.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/plugins/modify/rules.py: generate date sequence rules.
+
+2009-03-13	Sascha L. Teichmann <teichmann at intevation.de>
+
+	* formed/formed/model/exprtree.py: New tree based expression engine.
+
+	* formed/formed/model/__init__.py, formed/formed/model/data.py:
+	  Adjusted imports.
+
+2009-03-12	Torsten Irländer <torsten.irlaender at intevation.de>
+
 	Introduced new order attribute for date fields
 
 	* formed/formed/model/data.py: Order fields can be used to define to

Modified: trunk/formed/formed/plugins/export/new_sql.py
===================================================================
--- trunk/formed/formed/plugins/export/new_sql.py	2009-06-17 09:42:37 UTC (rev 334)
+++ trunk/formed/formed/plugins/export/new_sql.py	2009-06-17 10:45:48 UTC (rev 335)
@@ -76,7 +76,7 @@
 RETURNS void AS
 $$
 BEGIN
-    anonymize_uuid(mid);
+    PERFORM anonymize_uuid(mid);
 """
 
 ANON_UPDATE = \
@@ -91,7 +91,7 @@
 $$ LANGUAGE plpgsql VOLATILE SECURITY DEFINER;
 
 REVOKE ALL ON FUNCTION anonymize_case(int) FROM public;
-GRANT EXECUTE ON FUNCTION anonymize_case(int) TO GROUP :admin_ka_group;
+GRANT EXECUTE ON FUNCTION anonymize_case(int) TO GROUP :admin_group;
 
 """
 
@@ -664,8 +664,8 @@
                 if inserts: 
                     pfeil("%s\n\n" % inserts)
                     tableGrants = tableGrants \
-                        + (GRANT_SELECT % (table.getName(),':cm_ka_group')) \
-                        + (GRANT_SELECT % (table.getName(),':admin_ka_group'))
+                        + (GRANT_SELECT % (table.getName(),':cm_group')) \
+                        + (GRANT_SELECT % (table.getName(),':admin_group'))
 
             pfeil('\n--\n-- GRANTS ON TABLES\n--\n')
             pfeil(tableGrants)
@@ -723,9 +723,9 @@
                         pn = sqlName(page.getName())
 
                         vn = "%s_view" % sqlName(pn)
-                        pfeil(GRANT_SELECT % (vn, ':cm_ka_group'))
-                        pfeil(GRANT_UPDATE % (vn, ':cm_ka_group'))
-                        pfeil(GRANT_SELECT % (vn, ':admin_ka_group'))
+                        pfeil(GRANT_SELECT % (vn, ':cm_group'))
+                        pfeil(GRANT_UPDATE % (vn, ':cm_group'))
+                        pfeil(GRANT_SELECT % (vn, ':admin_group'))
                         pfeil("\n")
 
                         pfeil(FORBID_DELETE_RULE % (pn, pn))
@@ -771,9 +771,9 @@
                     pfeil("WHERE id = NEW.id;\n\n")
 
                     vn = "%s_page_view" % sqlName(pt)
-                    pfeil(GRANT_SELECT % (vn, ':cm_ka_group'))
-                    pfeil(GRANT_UPDATE % (vn, ':cm_ka_group'))
-                    pfeil(GRANT_SELECT % (vn, ':admin_ka_group'))
+                    pfeil(GRANT_SELECT % (vn, ':cm_group'))
+                    pfeil(GRANT_UPDATE % (vn, ':cm_group'))
+                    pfeil(GRANT_SELECT % (vn, ':admin_group'))
                     pfeil("\n")
 
                     pfeil(FORBID_DELETE_RULE % (v, v))
@@ -825,9 +825,9 @@
                 pfeil("\n")
 
                 vn = "%s_view" % tab
-                pfeil(GRANT_SELECT % (vn, ':cm_ka_group'))
-                pfeil(GRANT_UPDATE % (vn, ':cm_ka_group'))
-                pfeil(GRANT_SELECT % (vn, ':admin_ka_group'))
+                pfeil(GRANT_SELECT % (vn, ':cm_group'))
+                pfeil(GRANT_UPDATE % (vn, ':cm_group'))
+                pfeil(GRANT_SELECT % (vn, ':admin_group'))
                 pfeil("\n")
 
                 # anonymization view
@@ -870,8 +870,8 @@
         pfeil("\n")
 
         vn = "%s_anonym_view" % table
-        pfeil(GRANT_SELECT % (vn, ':cm_ka_group'))
-        pfeil(GRANT_SELECT % (vn, ':admin_ka_group'))
+        pfeil(GRANT_SELECT % (vn, ':cm_group'))
+        pfeil(GRANT_SELECT % (vn, ':admin_group'))
         pfeil("\n")
 
 # vim:set ts=4 sw=4 si et sta sts=4:



More information about the Formed-commits mailing list