[web2py] Organize/Format a list of checkboxes to be displayed over multiple coulumns

2013-02-05 Thread maverick
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

[web2py] Setting up web2py behind apache2 on SLES 10

2012-09-24 Thread maverick
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

[web2py] Re: SQLTABLE: how to customise it?

2012-09-18 Thread maverick
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)

[web2py] Re: response.stream and web2py_component

2012-09-18 Thread maverick
? 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

[web2py] Re: response.stream and web2py_component

2012-09-12 Thread maverick
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,

[web2py] Re: response.stream and web2py_component

2012-09-11 Thread maverick
, 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

[web2py] Re: response.stream and web2py_component

2012-09-07 Thread maverick
')}}' + '/' + 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

[web2py] response.stream and web2py_component

2012-09-06 Thread maverick
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')

[web2py] See a new GAE site that we developed with some web2py...

2011-06-01 Thread maverick
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