Re: [web2py] css rules in database

2010-09-27 Thread Bruno Rocha
I think it is better if you use .join() to concatenate the selectors, or create a function in a model file to return the properties. file models/css.py def return_css(company_id): rows = db(==company_id).select(..) oldselector = None css = [] for row in rows: if ro

[web2py] css rules in database

2010-09-26 Thread annet
I have a table in which users can insert css declarations to customize a page. In a controller I retrieve these declarations, and in a view I would like them to be inserted in the head section. This is what the rows object contains: declaration_id1 declaration.company_id 2