collective / transmogrify.ploneremote

Transmogrifier blueprints for uploading content via xmlrpc to a plone site
http://pypi.python.org/pypi/transmogrify.ploneremote
7 stars 6 forks source link

Invalid logging - conceals actual error #2

Closed auspex closed 13 years ago

auspex commented 13 years ago
  File "/home/derek/aptana/OTN/src/funnelweb/funnelweb/runner/__init__.py", line 77, in runner
    transmogrifier(u'transmogrify.config.funnelweb', **overrides)
  File "/home/derek/aptana/buildout-cache/eggs/collective.transmogrifier-1.2-py2.6.egg/collective/transmogrifier/transmogrifier.py", line 62, in __call__
    for item in pipeline:
  File "/home/derek/aptana/OTN/src/transmogrify.ploneremote/transmogrify/ploneremote/remoteredirector.py", line 25, in __iter__
    for item in self.previous:
  File "/home/derek/aptana/OTN/src/transmogrify.ploneremote/transmogrify/ploneremote/remoteworkflowupdater.py", line 40, in __iter__
    for item in self.previous:
  File "/home/derek/aptana/buildout-cache/eggs/collective.transmogrifier-1.2-py2.6.egg/collective/transmogrifier/sections/inserter.py", line 19, in __iter__
    for item in self.previous:
  File "/home/derek/aptana/OTN/src/transmogrify.ploneremote/transmogrify/ploneremote/remotenavigationexcluder.py", line 34, in __iter__
    for item in self.previous:
  File "/home/derek/aptana/OTN/src/transmogrify.ploneremote/transmogrify/ploneremote/remoteschemaupdater.py", line 33, in __iter__
    for item in self.previous:
  File "/home/derek/aptana/OTN/src/transmogrify.ploneremote/transmogrify/ploneremote/remoteconstructor.py", line 72, in __iter__
    self.logger.warning("Failuire while creating '%s' of type '%s'"% (rpath, type_) )
UnboundLocalError: local variable 'rpath' referenced before assignment
auspex commented 13 years ago

This is apparently connected to the message: No handlers could be found for logger "ploneupload" This diff: diff --git a/transmogrify/ploneremote/remoteconstructor.py b/transmogrify/ploneremote/remoteconstructor.py index 96d0d9c..af31de8 100755 --- a/transmogrify/ploneremote/remoteconstructor.py +++ b/transmogrify/ploneremote/remoteconstructor.py @@ -59,6 +60,7 @@ class RemoteConstructorSection(object): url = urllib.basejoin(self.target, path) proxy = xmlrpclib.ServerProxy(url) container, id = (len(elems) == 1 and ('', elems[0]) or elems)