Hi,

i have a little problem with paster setup-app. Here's some code:

[code]
from pylons import url
from pylons.decorators.secure import https

class AccountPlugin(Plugin):
    @https(url('/logowanie/', host=app_config.get('ssl_fullhost')))
    def login(self):
        ....
[/code]

and output after paster setup-app development.ini:

[output]
class AccountPlugin(Plugin):
  File "/home/pako/ENV/tracepoint/tracepoint/plugins/account/
account.py", line 460, in AccountPlugin
    @https(url('/logowanie/', host=app_config.get('ssl_fullhost')))
  File "/home/pako/ENV/lib/python2.6/site-packages/Paste-1.7.4-
py2.6.egg/paste/registry.py", line 155, in __call__
    return self._current_obj()(*args, **kw)
  File "/home/pako/ENV/lib/python2.6/site-packages/Paste-1.7.4-
py2.6.egg/paste/registry.py", line 197, in _current_obj
    'thread' % self.____name__)
TypeError: No object (name: url) has been registered for this thread
[/output]

Any idea how to fix it permanently? (i can remove line with https
decorator and then type paster setup-app but this is annoying).

Regrads.

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