[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
I managed to get it working. I looked up the download method in the Response class and apparently it's looking for a table name and field in the file name. I added that structure [table.field.] to my zipped file name [table.field.zipfile_name.zip] and passed it to the download as an argument in

Re: [web2py] request table name

2015-04-11 Thread Anthony
OK, the problem is that with record versioning, there is a common filter applied that excludes records with is_active=False. The _after_update callback gets called *after* the is_active field has been set to False (which happens when the table's _before_delete callback is called). As a result,

[web2py] Re: Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
I zipped the files and saved it in a folder...but how do I download it now? using the the download function doesn't work... On Saturday, 11 April 2015 13:21:03 UTC+1, Louis Amon wrote: > > I think you'd have to loop through a selection and use retrieve() ( > http://pydal.readthedocs.org/en/latest

[web2py] Re: Need help displaying value from the controller to view

2015-04-11 Thread Rufus
Just return it as a dictionary value: def index(): return dict(message='LED Test - Main Menu',pinstatus=GPIO.input(22)) You should be able to figure out how to display it in the view on your own. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: SQLFORM hanging on insert

2015-04-11 Thread Ian W. Scott
Update: When I put together a minimal app I couldn't reproduce the problem. I've had to set aside working on the issue, but it does seem to be limited to working with one specific table in my app's db. When I get back to debugging this I'll post any solutions for the sake of posterity. On Frida

[web2py] Re: Using Travis CI to test a web2py app on Github

2015-04-11 Thread Ian W. Scott
I take it from the lack of response here that what I want to is just impossible? On Wednesday, April 8, 2015 at 10:57:15 AM UTC-4, Ian W. Scott wrote: > > I've set up a travis-ci.org job to run my test suite (using pytest) > whenever I push my app to its github repository. I'm running into the b

Re: [web2py] unicode error with postgre on 2.10.3 (with sample app)

2015-04-11 Thread Ian W. Scott
Thanks Richard. My production server is working fine with 2.9.11. I'll open an issue on the web2py github repo, since it sounds like that's the better forum for this. Ian On Friday, April 10, 2015 at 3:40:16 PM UTC-4, Richard wrote: > > Ok, ok, I guess there is an issue with web2py or pyDAL...

[web2py] Re: web2py 2.10.3 si OUT

2015-04-11 Thread 黄祥
the response menu list parent seems can't have the anchor link in bs3, yet in prev version that use bs2 it can have the anchor link. e.g. response.menu = [ *(T('Master'), False, URL('master', 'index')*, [ (T('Event'), False, URL('master', 'event'), []), ]), ] how can i make the parent list have

[web2py] Re: Multiple file download

2015-04-11 Thread Louis Amon
I think you'd have to loop through a selection and use retrieve() ( http://pydal.readthedocs.org/en/latest/index.html?highlight=retrieve#pydal.objects.Field.retrieve ) If you need a one-click download then perhaps you could zip all the files using the zip

[web2py] Multiple file download

2015-04-11 Thread 'sasogeek' via web2py-users
Is there a way I could download all the files in a db or loop through a db selection and download all associated files via maybe just a click on a link? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.goog

[web2py] Publishing plugins

2015-04-11 Thread Louis Amon
I'm working on a good ton of awesome plugins and I'd like to share those with the community so that people could use them and/or contribute. I'm using these in my main application and I don't want to separate the plugins too much from my app because : - Most likely I'll improve them through

[web2py] Re: Using ajax to call a function that uses LOAD, not working

2015-04-11 Thread 'sasogeek' via web2py-users
Thanks a lot. Will definitely take your advice. I always tell myself I will do all that change when the app is complete and I don't have more code to write then I'll rearrange everything, especially with the 'style' bit cos i'm just in a hurry to code-on-the-fly and see immediate change, but I

Re: [web2py] Re: Crud is deprecated?

2015-04-11 Thread pang
El sábado, 11 de abril de 2015, 6:19:20 (UTC+2), Massimo Di Pierro escribió: > > We never officially said it but we have not touched the crud code in more > than 2 years. No bugs have reported but we have no intention of adding > functionality since better functionality if available in SQLFORM n

[web2py] Re: web2py 2.10.3 si OUT

2015-04-11 Thread 黄祥
On Saturday, April 11, 2015 at 11:07:56 AM UTC+7, Massimo Di Pierro wrote: > > I cannot reproduce your problem. Did you edit gluon/tests/test_web.py? > i didn't edit gluon/test/test_web.py > If not, how are you running? > *work* 1. run web2py python web2py.py 2. copy and paste from web2py.com

Re: [web2py] Re: Triggering a one-time migration when schema changes

2015-04-11 Thread Pablo Angulo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 El 09/04/15 a las 10:21, Niphlod escribió: > another "caveat circumvented", another step in the good direction now the > problem is only IF you have conditional models. I tried this and it triggered the migration on a conditional model: python