]> git.etc.gen.nz Git - whoisi.git/commitdiff
Remove some needed CURRVAL queries.
authorAndrew Ruthven <andrew@etc.gen.nz>
Wed, 24 Jun 2009 00:17:40 +0000 (12:17 +1200)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Wed, 24 Jun 2009 00:17:40 +0000 (12:17 +1200)
services/command/newsite.py

index a13f6bc236e51b9680d4537e9deac03c92a09ddb..461dcecaf1fa061e7d7c03d801ea300aa3be0fa8 100644 (file)
@@ -559,9 +559,8 @@ class NewSiteDone(BaseCommand):
 
     def newSiteInteraction(self, trans, *args):
         trans.execute(*args)
-        return trans.lastrowid
 
-    def done(self, result, *args, **kw):
+    def done(self, *args, **kw):
         site_history_new_ids = self.state.get("site_history_new_ids", [])
         self.d.callback(dict(site_id=self.state["site_id"],
                              site_history_new_ids=site_history_new_ids,
@@ -623,5 +622,5 @@ class NewSiteError:
     def updateDoneError(self, *args, **kw):
         self.d.errback(self.orig_failure)
 
-    def updateDone(self, result, *args, **kw):
+    def updateDone(self, *args, **kw):
         self.d.callback(dict(site_id=None, type=None))