summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bde3082)
raw | patch | inline | side by side (parent: bde3082)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 26 Mar 2004 06:31:50 +0000 (06:31 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Fri, 26 Mar 2004 06:31:50 +0000 (06:31 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@2211 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/actions.py | patch | blob | history |
diff --git a/roundup/cgi/actions.py b/roundup/cgi/actions.py
index 481a971045f59c91f71de0060edbd92001c20635..6c00f0e6a9df135e87966a2239714c2562999b38 100755 (executable)
--- a/roundup/cgi/actions.py
+++ b/roundup/cgi/actions.py
-#$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
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