[Mpuls-commits] r5725 - base/trunk/mpulsweb/lib

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Dec 20 09:48:58 CET 2011


Author: torsten
Date: 2011-12-20 09:48:57 +0100 (Tue, 20 Dec 2011)
New Revision: 5725

Modified:
   base/trunk/mpulsweb/lib/metaclient.py
Log:
Add new function to anonymize a case.


Modified: base/trunk/mpulsweb/lib/metaclient.py
===================================================================
--- base/trunk/mpulsweb/lib/metaclient.py	2011-12-16 14:31:52 UTC (rev 5724)
+++ base/trunk/mpulsweb/lib/metaclient.py	2011-12-20 08:48:57 UTC (rev 5725)
@@ -348,6 +348,10 @@
                              "/meta/cases/%s/project/%s" % (master_uuid,
                                                             project_uuid))
 
+    def anonymize_case(self, master_uuid):
+        self.perform_request("ANONYMIZE",
+                             "/meta/cases/%s" % (master_uuid))
+
     def delete_case(self, master_uuid, project_uuid):
         if project_uuid:
             query = "?project_uuid=%s" % (project_uuid,)



More information about the Mpuls-commits mailing list