Code

actually tuples are fine and expected; also remove debug print
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 8 Feb 2010 04:25:48 +0000 (04:25 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 8 Feb 2010 04:25:48 +0000 (04:25 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4452 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/back_anydbm.py

index 2ce4c4fd7635176c81ec907408200c1a0e77b8d5..cfda7577f1f07bd20858c75dcd85551419e3312d 100644 (file)
@@ -1395,7 +1395,6 @@ class Class(hyperdb.Class):
         try:
             for nodeid in self.getnodeids(cldb):
                 node = self.db.getnode(self.classname, nodeid, cldb)
-                print (nodeid, node, node[self.key], keyvalue)
                 if node.has_key(self.db.RETIRED_FLAG):
                     continue
                 if not node.has_key(self.key):
@@ -2009,9 +2008,6 @@ class Class(hyperdb.Class):
                     if value is None:
                         pass
                     elif isinstance(prop, hyperdb.Date):
-                        if type(value) == type(()):
-                            print _('WARNING: invalid date tuple %r')%(value,)
-                            value = date.Date( "2000-1-1" )
                         value = date.Date(value)
                     elif isinstance(prop, hyperdb.Interval):
                         value = date.Interval(value)