Author: poeml Date: 2009-02-03 02:30:16 -0700 (Tue, 03 Feb 2009) New Revision: 6329 Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py Log: mirrordoctor: set (empty) defaults for empty database columns, when creating a new mirror. This makes us more independant on the database schema. Modified: trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py =================================================================== --- trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py 2009-02-03 09:03:55 UTC (rev 6328) +++ trunk/tools/download-redirector-v2/mirrordoctor/mirrordoctor.py 2009-02-03 09:30:16 UTC (rev 6329) @@ -149,19 +149,22 @@ s = self.conn.Server(identifier = identifier, baseurl = opts.http, baseurlFtp = opts.ftp or '', - baseurlRsync = opts.rsync, + baseurlRsync = opts.rsync or '', region = opts.region, country = opts.country, score = opts.score, enabled = 0, statusBaseurl = 0, - admin = opts.admin, - adminEmail = opts.admin_email, + admin = opts.admin or '', + adminEmail = opts.admin_email or '', operatorName = '', operatorUrl = '', otherCountries = '', publicNotes = '', - comment = opts.comment) + comment = opts.comment or '', + scanFpm = 0, + countryOnly = 0, + regionOnly = 0) if self.options.debug: print s _______________________________________________ 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-03Z09:30:56
This archive was generated by hypermail 2.2.0 : 2009-07-10Z19:18:10 GMT