Hello Alll.
If it would be helpful to anyone, the following patch made everything
work:
--- a/pylons/commands.py Tue May 12 19:02:50 2009 -0700
+++ b/pylons/commands.py Wed Jul 08 11:51:36 2009 +0700
@@ -481,7 +481,7 @@
if can_import(helpers_module):
locs['h'] = sys.modules[helpers_module]
- exec ('from pylons import app_globals, c, config, g, request,
'
+ exec ('from pylons import app_globals, config, request, '
'response, session, tmpl_context, url') in locs
exec ('from pylons.controllers.util import abort,
redirect_to') in locs
exec 'from pylons.i18n import _, ungettext, N_' in locs
For some reason, commands seemed to import c and g from pylons, though
there were no such globals defined.
Regards,
George Fatkin.
On Jun 27, 2:08 am, GogiJan <[email protected]> wrote:
> After installing dev pylons version, paster shell stopped working for
> all pylons projects (including newly created).
> $paster shell test.ini
> Traceback (most recent call last):
> File "/usr/bin/paster", line 8, in <module>
> load_entry_point('PasteScript==1.7.3', 'console_scripts', 'paster')
> ()
> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
> paste/script/command.py", line 84, in run
> invoke(command, command_name, options, args[1:])
> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
> paste/script/command.py", line 123, in invoke
> exit_code = runner.run(args)
> File "/usr/lib/python2.5/site-packages/PasteScript-1.7.3-py2.5.egg/
> paste/script/command.py", line 218, in run
> result = self.command()
> File "/home/george/work/opros/pylons/hg/P/Pylons/pylons/
> commands.py", line 485, in command
> 'response, session, tmpl_context, url') in locs
> File "<string>", line 1, in <module>
> ImportError: cannot import name c
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---