Skip to content

Commit 7bc5f5f

Browse files
author
Richard Jones
committed
wow, I broke that good
1 parent cbdad08 commit 7bc5f5f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roundup/cgi/actions.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#$Id: actions.py,v 1.17 2004-03-26 04:50:50 richard Exp $
1+
#$Id: actions.py,v 1.18 2004-03-26 06:31:50 richard Exp $
22

33
import re, cgi, StringIO, urllib, Cookie, time, random
44

@@ -457,19 +457,19 @@ def _createnode(self, cn, props):
457457
return cl.create(**props)
458458

459459
class EditItemAction(_EditAction):
460-
def lastUserActvity(self):
460+
def lastUserActivity(self):
461461
if self.form.has_key(':lastactivity'):
462-
user_actvity = date.Date(self.form[':lastactivity'].value)
462+
return date.Date(self.form[':lastactivity'].value)
463463
elif self.form.has_key('@lastactivity'):
464-
user_actvity = date.Date(self.form['@lastactivity'].value)
464+
return date.Date(self.form['@lastactivity'].value)
465465
else:
466466
return None
467467

468468
def lastNodeActivity(self):
469469
cl = getattr(self.client.db, self.classname)
470-
node_activity = cl.get(self.nodeid, 'activity')
470+
return cl.get(self.nodeid, 'activity')
471471

472-
def detectCollision(self, user_actvity, node_activity):
472+
def detectCollision(self, user_activity, node_activity):
473473
if user_activity:
474474
return user_activity < node_activity
475475

0 commit comments

Comments
 (0)