Michele Cella wrote:

> 5. @expose(view="template.mypage")
>
> giving that there is a views package like that:
>
> views
>    |_ templates/
>    |_ json.py
>    |_ ...
>
> and the view parameter is automatically linked to the views subpackage
> to save repetitive typing.

Call me old-fashioned but I don't like extra magic with pathnames to
make it work. I'd prefer 1:1 mapping between file path and dotted view
name:

@expose(view="views.templates.mypage")
or
@expose(view=".templates.mypage")
or whatever
@expose(view="...")

Max.


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

Reply via email to