On Monday 12 October 2009 21:34:41 Diez B. Roggisch wrote:
> Daishy schrieb:
> > Now thinks get a bit clearer, thanks alot. One final question:
> > What should i prefere in your opinion? override/reimplement the url-
> > method with a static prefix or moving the forms and grids into the
> > controller, so i can use the already available url-function?
>
> Neither. Instead, make the use of url always a callable. I fail to see
> where the problem with that is.
>

Actually that on ToscaWidgets-0.9.7.2 and tw.forms-0.9.8dev_20090902 caused 
all my forms to have the __repr__ of the lambda as their action.

Only always working solution that I have been able to find has been to declare 
an Url class with __str__ method that calls url.

action = Url('/controller/action') then works quite well.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to