From: Andrew Ruthven Date: Wed, 24 Jun 2009 00:17:40 +0000 (+1200) Subject: Remove some needed CURRVAL queries. X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a50aa1a15ce639873912595e1730f57febd41c99;p=whoisi.git Remove some needed CURRVAL queries. --- diff --git a/services/command/newsite.py b/services/command/newsite.py index a13f6bc..461dcec 100644 --- a/services/command/newsite.py +++ b/services/command/newsite.py @@ -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))