Hi all,

I'm in the task of making my application working with python 3.3 and 3.4.
In both cases I get the following error when setting-up my application :

:50:07,979 ERROR [tgext.pluggable] Failed to plug tgext.asyncjob
Traceback (most recent call last):
  File 
"/tmp/test-python3.3/app/tracim/tg2env/lib/python3.3/site-packages/tgext/pluggable/plug.py",
 
line 59, in plug
    self._plug_application(self.app_config, self.module_name, self.options)
  File 
"/tmp/test-python3.3/app/tracim/tg2env/lib/python3.3/site-packages/tgext/pluggable/plug.py",
 
line 71, in _plug_application
    -1)
ValueError: level must be >= 0

I patched the file plug.py - 
https://github.com/TurboGears/tgext.pluggable/blob/master/tgext/pluggable/plug.py

The diff result is here:

(tg2env) damien@ulysse:/tmp$ diff plug.py plug.py.new 
71c71
<             -1)
---
>             0)
121c121
<     module = __import__(module_name, globals(), locals(), ['plugme'], -1)
---
>     module = __import__(module_name, globals(), locals(), ['plugme'], 0)

I'm not sure this is the right way to fix this ; if it is, then the patch 
is attached (I can make a github pull request, if you'd prefer), if not... 
so what is the good way to fix this ? (in my code ? proposing a different 
patch ?)


Damien

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to