diff roundup/cgi/actions.py @ 3187:79bcf944ceb8 maint-0.8

fixes
author Richard Jones <richard@users.sourceforge.net>
date Tue, 15 Feb 2005 23:42:38 +0000
parents 2ac85e66e9bb
children afa9a2fdf777
line wrap: on
line diff
--- a/roundup/cgi/actions.py	Tue Feb 15 23:04:32 2005 +0000
+++ b/roundup/cgi/actions.py	Tue Feb 15 23:42:38 2005 +0000
@@ -1,8 +1,8 @@
-#$Id: actions.py,v 1.40.2.5 2005-02-15 00:22:24 richard Exp $
+#$Id: actions.py,v 1.40.2.6 2005-02-15 23:42:36 richard Exp $
 
-import re, cgi, StringIO, urllib, Cookie, time, random
+import re, cgi, StringIO, urllib, Cookie, time, random, csv
 
-from roundup import hyperdb, token, date, password, csv
+from roundup import hyperdb, token, date, password
 from roundup.i18n import _
 import roundup.exceptions
 from roundup.cgi import exceptions, templating
@@ -507,7 +507,7 @@
     def detectCollision(self, user_activity, node_activity):
         '''Check for a collision and return the list of props we edited
         that conflict.'''
-        if user_activity < node_activity:
+        if user_activity and user_activity < node_activity:
             props, links = self.client.parsePropsFromForm()
             key = (self.classname, self.nodeid)
             # we really only collide for direct prop edit conflicts

Roundup Issue Tracker: http://roundup-tracker.org/