Well you should probably avoid using <?python ... ?> because its kind
of bad form.  Why can't you just return the object in the dict from
the controller ?

-Ian

On 4/11/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I can access database info in templates if I add a <?python ... ?>
> section with the same imports and select() method call on classes I
> would use in tg-admin shell.
>
> Is this the only or best way to access database info in *templates*?
>
> Is there a slicker way to do it?
>
> Chris
>
>
> >
>

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