On Nov 6, 5:56 pm, Jonathan LaCour <[EMAIL PROTECTED]>
wrote:
>
> This past weekend, I participated in a sprint on Pylons where
> we implemented two new controllers: DecoratedController and
> ObjectDispatchController. Both of these controllers perform "parameter
> injection." Here is an example of a DecoratedController:
>
> from pylons.controllers import DecoratedController
> from pylons.decorators import expose
>
> class TestController(DecoratedController):
>
> @expose()
> def testing(self, name):
> return 'Hello, %s' % name
>
> This is all very new, so it probably has some bugs, but please do give
> it a try, and we'll do our best to fix any bugs you find!
>
That's great! :)
I pulled the latest version from the repository but couldn't use it.
### Existing project:
URL: http://localhost:5000/location/index
File '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/Pylons-0.9.7dev_20071106-py2.4.egg/pylons/error.py',
line 245 in respond
app_iter = self.application(environ, detect_start_response)
File '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/Pylons-0.9.7dev_20071106-py2.4.egg/pylons/wsgiapp.py',
line 95 in __call__
controller = self.resolve(environ, start_response)
File '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
site-packages/Pylons-0.9.7dev_20071106-py2.4.egg/pylons/wsgiapp.py',
line 173 in resolve
match = environ['wsgiorg.routing_args'][1]
KeyError: 'wsgiorg.routing_args'
### New project:
$ paster create -t pylons PylonsTest2
[...]
OSError: [Errno 2] No such file or directory: '/Library/Frameworks/
Python.framework/Versions/2.4/lib/python2.4/site-packages/
Pylons-0.9.7dev_20071106-py2.4.egg/pylons/templates/default_project'
$ ls -l /Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4/site-packages/Pylons-0.9.7dev_20071106-py2.4.egg/pylons/
templates/
-rwxr-xr-x 1 root admin 0 Nov 6 19:02 __init__.py
-rwxr-xr-x 1 root admin 221 Nov 6 19:02 __init__.pyc
I hope I'm not doing anything wrong. :P
--
Humberto Diógenes
http://humberto.digi.com.br
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---