Commit c67c2526 authored by Fabien Morin's avatar Fabien Morin

correct some undefined name thanks to pyflakes


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17029 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14ba434e
...@@ -11,7 +11,6 @@ from optparse import OptionParser ...@@ -11,7 +11,6 @@ from optparse import OptionParser
try: try:
from Ft.Xml.Domlette import Print, PrettyPrint from Ft.Xml.Domlette import Print, PrettyPrint
except ImportError: except ImportError:
LOG('ERP5Conduit',0,"Can't import Print and PrettyPrint")
class Print: class Print:
def __init__(self, *args, **kw): def __init__(self, *args, **kw):
raise ImportError, "Sorry, it was not possible to import Ft library" raise ImportError, "Sorry, it was not possible to import Ft library"
...@@ -183,7 +182,7 @@ def sendResponse(text, to_url, client_url): ...@@ -183,7 +182,7 @@ def sendResponse(text, to_url, client_url):
try: try:
result = urllib2.urlopen(request).read() result = urllib2.urlopen(request).read()
except socket.error, msg: 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: except urllib2.URLError, msg:
print "sendResponse, can't open url : %s" % to_url print "sendResponse, can't open url : %s" % to_url
......
...@@ -947,7 +947,7 @@ class SynchronizationTool( SubscriptionSynchronization, ...@@ -947,7 +947,7 @@ class SynchronizationTool( SubscriptionSynchronization,
domain_path=domain.getPath(), domain_path=domain.getPath(),
content_type=content_type) content_type=content_type)
LOG('sendHttpResponse, socket ERROR:', INFO, msg) LOG('sendHttpResponse, socket ERROR:', INFO, msg)
LOG('sendHttpResponse, url, data', INFO, (url, data)) LOG('sendHttpResponse, url, data', INFO, (to_url, data))
return return
except urllib2.URLError, msg: except urllib2.URLError, msg:
LOG("sendHttpResponse, can't open url %s :" % to_url, INFO, msg) LOG("sendHttpResponse, can't open url %s :" % to_url, INFO, msg)
......
...@@ -37,7 +37,7 @@ this_module = sys.modules[ __name__ ] ...@@ -37,7 +37,7 @@ this_module = sys.modules[ __name__ ]
document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions) document_classes = updateGlobals( this_module, globals(), permissions_module = Permissions)
# Define object classes and tools # Define object classes and tools
import SynchronizationTool import SynchronizationTool, Publication, Subscription
object_classes = (Subscription.Subscription, Publication.Publication,Publication.Subscriber) object_classes = (Subscription.Subscription, Publication.Publication,Publication.Subscriber)
portal_tools = (SynchronizationTool.SynchronizationTool,) portal_tools = (SynchronizationTool.SynchronizationTool,)
content_classes = () 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