[mirrorbrain-commits] [opensuse-svn] r6438 - trunk/tools/download-redirector-v2/mirrordoctor

From: Novell Forge SVN <noreply_at_novell.com>
Date: Wed, 11 Feb 2009 14:07:06 -0700 (MST)
Author: poeml
Date: 2009-02-11 14:07:02 -0700 (Wed, 11 Feb 2009)
New Revision: 6438

Modified:
   trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
Log:
mb edit: 
fix when editing a numeric value of a column that is not a long type, but
integer in the SQLObject mapping


Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py
===================================================================
--- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-11 20:10:33 UTC (rev 6437)
+++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py	2009-02-11 21:07:02 UTC (rev 6438)
_at_@ -321,7 +321,7 @@
                     print """changing %s from '%s' to '%s'""" \
                             % (i, old_dict[i], new_dict[i])
                     a = new_dict[i]
-                    if type(getattr(mirror, i)) == type(1L):
+                    if type(getattr(mirror, i)) in [type(1L), type(1)]:
                         a = int(a)
                     setattr(mirror, i, a)
 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Feb 11 2009 - 21:07:33 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT