I generated that simply with data=dict(options='{"mode" : "calbox"}')
On Tuesday, October 29, 2013 11:52:55 AM UTC+1, DenesL wrote: > > @Niphlod > > the workaround is required because web2py creates > > data-options="{"mode":"calbox"}" > > which ends up like this in the INPUT element source code in the generated > page > > mode":"calbox"}"="" data-options="{" > > All works fine if the output from web2py is enclosed in single quotes > instead, as in > > data-options= '{"mode":"calbox"}' > > > > > @Anthony > > the CALBOX function, along with others, is defined in a module. > It is imported in the controller and used in a function that creates a > grid in the content portion of the mobile page (which has header, content, > footer). > So the controller is something like: > > from module import * > def f(): > header = ... > content = GRID(... ( # CALBOX used to create one of the columns > footer = .... > return {'page':PAGE(header, content, footer)} > > The view is > > {{extend 'mlayout.html'}} > {{=page}} > > so pretty standard web2py fare. > This is not open source so I can't post the full code. > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.