you should simply override widget defaults (according to your own 
formstyle.)
As for "HTML helpers" go for TAG, which can create whatever you may need 
without littering the global environment.

On Monday, September 21, 2015 at 1:51:00 AM UTC+2, Luis Valladares wrote:
>
> Hello!
>
> I'm building a web2py site and i want to use polymer as my front-end 
> "framework", as you may know polymer uses web elements with custom html 
> tags, i mean, a input is something can be something like
>
> <my-custom-input type=string size=3></my-custom-input>
>
> I want to integrate this "feature" with the web2py SQLFORM module, after a 
> bit of research i came with this approach, im not sure if its correct so i 
> accept suggestion:
>
> i've to override all the FormWidget class inside sqlhtml.py and modify all 
> widget to generate a HTML output adapted to my custom tags, also create a 
> custom formstyle related to polymer and maybe (and this is one of the 
> problems i've found) create some sort of custom HTML helper for generating 
> the HTML custom tags.
>
> I think i miss a lot of changes needed for this to work well, so i am 
> looking for opinions in this matter, i'm correct in my planning, or maybe 
> there is a easier path to join SQLFORM and Polymer, or may be better to 
> work without SQLFORM?
>
> Thank for any help you can provide
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to