[web2py] Re: Attribute of HTML element: define in controller

2011-11-06 Thread Vineet
Great! It worked. Thanks Anthony. I've been hunting on this since past few hours. --- Vineet On Nov 6, 9:36 pm, Anthony wrote: > On Sunday, November 6, 2011 11:01:50 AM UTC-5, Vineet wrote: > > >             lnk_elmt = " Edit " % "{{=URL(('empmast', > > 'emp_edit'))}}" > > You're using view synt

[web2py] Re: Attribute of HTML element: define in controller

2011-11-06 Thread Anthony
On Sunday, November 6, 2011 11:01:50 AM UTC-5, Vineet wrote: > > lnk_elmt = " Edit " % "{{=URL(('empmast', > 'emp_edit'))}}" You're using view syntax in a controller. No need for the {{=...}} (you've also got an extra set of parentheses inside URL). Just do: ' Edit ' % URL('empmast