Hello,
I have a field like:
Field('reseller', label='Resellers (Optional)',
requires=IS_IN_SET(session.resellers, multiple=True),
widget = SQLFORM.widgets.checkboxes.widget),
which is displayed as a list of checkboxes, which is what I want. But the
list is very long and the submit button
Hi Guys,
I'm having no luck trying to set up web2py to run behind apache2 on SLES
10. Here is my configuration file which is
/etc/apache2/vhosts.d/yast2_vhosts.conf
/user/web2py is where web2py source is. and I set its ownership to
wwwrun:users as apache2 runs as wwwrun user.
WSGIPythonHome
How do I give a label to calculated fields, like if I used:
rows = db().select(db.hvmt2.hub,db.*hvmt2.bytes_total.sum()*,
groupby=db.hvmt2.hub, cacheable=True)
I want to serialize rows as:
Result=SQLTABLE(rows,headers={'hvmt2.hub':'HUB',*'hvmt2.bytes_total.sum()'*:'USAGE
in MB'},truncate=60)
? That's a new option.
On Wednesday, September 12, 2012 4:43:50 AM UTC-4, maverick wrote:
Anthony,
Thanks for the explanation.
I tried cacheable=True in my select(), like:
rows = db().select(db.vmt_weekly.ALL, cacheable=True)
but it is met with internal error: type 'exceptions.SyntaxError
Anthony,
Thanks for the explanation.
I tried cacheable=True in my select(), like:
rows = db().select(db.vmt_weekly.ALL, cacheable=True)
but it is met with internal error: type 'exceptions.SyntaxError' invalid
select attribute: cacheable
Is there something I'm missing?
mave
On Tuesday,
, maverick wrote:
I do want to also display content in the DIV. In addition to displaying
content in the DIV, I want the controller to also trigger a file download.
A more accurate version of the form_query() controller would be something
like:
In reponse to the form submission, it has
')}}' + '/' + jQuery(this).val());
});
If you want the file to download as an attachment, don't use a component.
A component creates a div for displaying content, but you just want to
trigger a file download.
Anthony
On Thursday, September 6, 2012 12:48:56 PM UTC-4, maverick wrote
Hello!
I want to stream a file as an attachment in the response. I have this
function:
def form_query():
response.flash = str(request.args(0))
response.generic_patterns = ['load']
response.headers['Content-Type'] =
gluon.contenttype.contenttype('.txt')
We developed a site on GAE with some of web2py... some of web2py means
we didn't use everything but part of it.
If anyone interested to have a look, visit www.LOCQL.com, it's a
location based QA site build on GAE/Python. Don't need sign up,
simply sign in with facebook you can have a try.
Hope
9 matches
Mail list logo