Author: duncan
Date: Tue Oct 9 16:15:19 2007
New Revision: 9944
Log:
Fixed a debug statement, quick and very dirty
Added a print to oneclick of the url
Modified:
branches/rel-1/freevo/src/plugins/oneclick.py
branches/rel-1/freevo/src/plugins/shoppingcart.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 Tue Oct 9 16:15:19 2007
@@ -140,6 +140,7 @@
txheaders = {
'User-Agent' : 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
rv:1.8.1.7) Gecko/20070914 Firefox/2.0.0.7'
}
+ print 'getting url %r...' % (url)
req = urllib2.Request(url, txdata, txheaders)
try:
t1 = time.time()
Modified: branches/rel-1/freevo/src/plugins/shoppingcart.py
==============================================================================
--- branches/rel-1/freevo/src/plugins/shoppingcart.py (original)
+++ branches/rel-1/freevo/src/plugins/shoppingcart.py Tue Oct 9 16:15:19 2007
@@ -135,7 +135,10 @@
# only activate this for directory items
return []
- _debug_('item=%s, type=%s, cart=%s' % (item, item.type, self.cart), 2)
+ try:
+ _debug_('item=%s, type=%s, cart=%s' % (item, item.type,
self.cart), 2)
+ except:
+ pass
if item.type == 'dir':
if len(self.cart) > 0:
for c in self.cart:
-------------------------------------------------------------------------
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