Hello,

I am trying to customize "paster setup-app config.ini" action so that some
files are pre-generated when application is set up. The problem is attempt
to use pylons.c or render() leads to error like this:

  File "/home/max/oss-projects/PasteScript/paste/script/appinstall.py", line
456, in command
    self, config_file, section, self.sysconfig_install_vars(installer))
  File "/home/max/oss-projects/PasteScript/paste/script/appinstall.py", line
600, in setup_config
    mod.setup_config(command, filename, section, vars)
  File "/home/max/projects/dou-local.20071226_1/doupy/doupy/websetup.py",
line 63, in setup_config
    application_setup()
  File "/home/max/projects/dou-
local.20071226_1/doupy/doupy/config/environment.py", line 23, in
application_setup
    c.members = [1,2,3]
  File "/usr/lib/python2.5/site-packages/Paste-1.4-py2.5.egg/paste/registry.py",
line 128, in __setattr__
    setattr(self._current_obj(), attr, value)
  File "/usr/lib/python2.5/site-packages/Paste-1.4-py2.5.egg/paste/registry.py",
line 182, in _current_obj
    'thread' % self.____name__)
TypeError: No object (name: C) has been registered for this thread

What do I need to do to configure Pylons so that I can use c,g,render() from
my websetup code?

Max.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to