nice, easier than I thought.  thanks.

[EMAIL PROTECTED] wrote:
> I've been struggling with this. In my python script, I have the
> following defined:
>
> def isselected(a,b):
>     if a==b: return "SELECTED"
>     return ""
>
> and I pass this to the template via
>
> render.page(tbid,iname,isselected)
>
> within the page I'd like to do something like
>
> <option $isselected(tbid,'C') >C</option>
>
> but the $isselected(tbid,'C') part isn't being expanded. Any ideas
> why?
>
>
> On May 1, 10:59 pm, docyes <[EMAIL PROTECTED]> wrote:
>   
>> either pass it in as an argument or it is need site wide assign it to
>> template globals (web.template.Template.globals['myfunction'] =
>> myfunction )
>>
>> On May 1, 9:28 pm, MilesTogoe <[EMAIL PROTECTED]> wrote:
>>
>>     
>>> we're plotting graphics where screen coordinates need to be calculated -
>>> is there any way to include a function in the template to perform the
>>> real to screen coordinate conversion ?
>>>       
> >
>
>   


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

Reply via email to