[web2py] SQLFORM.grid search fields

2014-04-17 Thread John Fraser
How would one go about making certain fields readable (visible) to the search, view, edit, etc, but hidden from the actual grid. Below is my code that accomplishes the hiding the fields from the main grid, but struggling with making them readable to the search: @auth.requires_login() def

[web2py] SQLFORM.grid Export and represent

2014-04-16 Thread John Fraser
Is there an easy way to strip HTML markup from SQLFORM.grid's CSV/TSV export? I realize I probably need to create a custom export function, but curious if there is an argument or a one liner that would do the trick. Or is there a better way to format the display? I have the following

Re: [web2py] Re: SQLFORM.grid Export and represent

2014-04-16 Thread John Fraser
in the request.args, for example, something like this would work: if 'csv' not in request.args and 'tsv' not in request.args: db.inventory.cpu_status.represent = lambda cpu_status, row: SPAN( ... On Wednesday, April 16, 2014 12:58:12 PM UTC-4, John Fraser wrote: Is there an easy way to strip HTML

[web2py] Re: SQLFORM.grid view

2013-05-31 Thread John Fraser
:04:29 PM UTC-4, John Fraser wrote: When storing html in a table, how would one render that html to the SQLFORM.grid view page? . The page the user sees when clicking on the view button in the grid? I am storing HTML in the body field of the db.announcenment. By default it SQLFORM.grid

[web2py] SQLFORM.grid view

2013-05-30 Thread John Fraser
When storing html in a table, how would one render that html to the SQLFORM.grid view page? . The page the user sees when clicking on the view button in the grid? I am storing HTML in the body field of the db.announcenment. By default it SQLFORM.grid displays tags in the view br,h1, etc...

[web2py] Re: Issues with rendering wiki in html.

2013-05-22 Thread John Fraser
Hi Alan, I updated to the latest mercurial version, just in case... but the issue still persists for me. Not sure what I am doing wrong. Here is my code below: /init/controllers/wiki.py: def index(): response.title = 'Wiki' response.subtitle = 'web2py' return

[web2py] Re: Issues with rendering wiki in html.

2013-05-22 Thread John Fraser
I deleted the old page and created a new one with same 'index' slug also tried creating a new page entirely. Also as this maybe important. In my init/model/db.py I have the following after auth tables are defined: auth.wiki(resolve=False) On Wednesday, May 22, 2013 1:08:11 PM UTC-4,

[web2py] Re: Issues with rendering wiki in html.

2013-05-22 Thread John Fraser
That works. Thanks for the help. Makes sense. I forgot about the code in db.py when initially troubleshooting. On Wednesday, May 22, 2013 1:58:00 PM UTC-4, Alan Etkin wrote: Also as this maybe important. In my init/model/db.py I have the following after auth tables are defined: