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
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
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
: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
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...
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
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,
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:
8 matches
Mail list logo