From: richard Date: Fri, 26 Mar 2004 06:31:50 +0000 (+0000) Subject: wow, I broke that good X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=d39f250e0b663ecd1b710465a581ab3da71474ac;p=roundup.git wow, I broke that good git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2211 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py index 481a971..6c00f0e 100755 --- a/roundup/cgi/actions.py +++ b/roundup/cgi/actions.py @@ -1,4 +1,4 @@ -#$Id: actions.py,v 1.17 2004-03-26 04:50:50 richard Exp $ +#$Id: actions.py,v 1.18 2004-03-26 06:31:50 richard Exp $ import re, cgi, StringIO, urllib, Cookie, time, random @@ -457,19 +457,19 @@ class _EditAction(Action): return cl.create(**props) class EditItemAction(_EditAction): - def lastUserActvity(self): + def lastUserActivity(self): if self.form.has_key(':lastactivity'): - user_actvity = date.Date(self.form[':lastactivity'].value) + return date.Date(self.form[':lastactivity'].value) elif self.form.has_key('@lastactivity'): - user_actvity = date.Date(self.form['@lastactivity'].value) + return date.Date(self.form['@lastactivity'].value) else: return None def lastNodeActivity(self): cl = getattr(self.client.db, self.classname) - node_activity = cl.get(self.nodeid, 'activity') + return cl.get(self.nodeid, 'activity') - def detectCollision(self, user_actvity, node_activity): + def detectCollision(self, user_activity, node_activity): if user_activity: return user_activity < node_activity