-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29 Sep 2009, at 07:04, cd34 wrote:

> In order for the code to work properly by passing a function name to
> error_handler in the decorator, I would need to change the above to:
>
>            if error_handler:
>                environ = pylons.request.environ
>                environ['REQUEST_METHOD'] = 'GET'
>                environ['pylons.routes_dict']['action'] =
> error_handler.__name__
>                return self._dispatch_call()
>
> I'll post this on toscawidgets-discuss.
>
> Graham, can you check your pylonshf.py and see if this section is the
> same in your installation?


Yes I have the same, needs a string. The issue is not with pylonshf.py  
but with the tw doc you were working from:

> http://toscawidgets.org/documentation/tw.forms/tutorials/validate_pylons.html


It's wrong.

I was lucky, I picked up tw a while ago and so got the benefit of  
Alberto's correct docs:

http://albertovalverde.es/tags/toscawidgets

so I had working code to start with.


Cheers,

Graham

http://www.linkedin.com/in/ghiggins




-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkrBrX4ACgkQOsmLt1NhivyWIQCeOYDbqbHvNZgv2Dpb1GhvpGHm
MUcAoKmerJu6CiKPk41OirJcHFBlPzMJiQCVAgUBSsGtflnrWVZ7aXD1AQIbwwQA
4Dqub9Hd8fvi1ZQFsNlDm9AP5l/QhgFC5ZreCdRNo56ha+6IXcGMJHMoTS3I8+XG
V0PqEG9bO9pE8kwNVOU8hpq+7S38cTmM60AiGWyLd4Cch/1ZzO+xxjOj/VOsxL9V
qGqsC6Ae14fXY3hZQJy6Cp42SHr/C60kGfkyrdpkD9o=
=uv4q
-----END PGP SIGNATURE-----


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