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) @@ -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.orgReceived on 2009-02-11Z21:07:33
This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:11 GMT