Commit c67c2526 authored by Fabien Morin's avatar Fabien Morin

correct some undefined name thanks to pyflakes

git-svn-id: 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14ba434e
......@@ -11,7 +11,6 @@ from optparse import OptionParser
from Ft.Xml.Domlette import Print, PrettyPrint
except ImportError:
LOG('ERP5Conduit',0,"Can't import Print and PrettyPrint")
class Print:
def __init__(self, *args, **kw):
raise ImportError, "Sorry, it was not possible to import Ft library"
......@@ -183,7 +182,7 @@ def sendResponse(text, to_url, client_url):
result = urllib2.urlopen(request).read()
except socket.error, msg:
print 'error, url:%s ,data : %s'%(url, data)
print 'error, url:%s ,data : %s'%(to_url, data)
except urllib2.URLError, msg:
print "sendResponse, can't open url : %s" % to_url
......@@ -947,7 +947,7 @@ class SynchronizationTool( SubscriptionSynchronization,
LOG('sendHttpResponse, socket ERROR:', INFO, msg)
LOG('sendHttpResponse, url, data', INFO, (url, data))
LOG('sendHttpResponse, url, data', INFO, (to_url, data))
except urllib2.URLError, msg:
LOG("sendHttpResponse, can't open url %s :" % to_url, INFO, msg)
......@@ -37,7 +37,7 @@ this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions)
# Define object classes and tools
import SynchronizationTool
import SynchronizationTool, Publication, Subscription
object_classes = (Subscription.Subscription, Publication.Publication,Publication.Subscriber)
portal_tools = (SynchronizationTool.SynchronizationTool,)
content_classes = ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment