Author: duncan
Date: Wed Oct 10 12:52:44 2007
New Revision: 9946
Log:
A small fix to stop None being converted to a string
Modified:
branches/rel-1/freevo/src/plugins/oneclick.py
Modified: branches/rel-1/freevo/src/plugins/oneclick.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/oneclick.py (original)
+++ branches/rel-1/freevo/src/plugins/oneclick.py Wed Oct 10 12:52:44 2007
@@ -306,11 +306,11 @@
if isinstance(location, tuple):
self.location = location[0]
- if len(location) > 1:
+ if len(location) > 1 and location[1]:
self.ismetric = bool(location[1])
- if len(location) > 2:
+ if len(location) > 2 and location[2]:
self.mapuri = str(location[2])
- if len(location) > 3:
+ if len(location) > 3 and location[3]:
self.name = str(location[3])
else:
self.location = location
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog