[web2py] Re: how to use web application to send serial commands?

2013-03-15 Thread Christian Foster Howes
i'm not familiar with netcat and minicom.are those python libraries? or are there python libraries that know how to speak those things? assuming you can write python that sends commands to the device (which i bet you can do), then it shouldn't be hard to have a URL call a controller that

[web2py] Re: web2py on GAE: Connect to google:sql and google:datastore

2013-03-15 Thread Christian Foster Howes
note that unless the book calls out google:sql vs google:datastore it's referring to google:datastore. SQL was added much later by google, but it's a mysql compatible database, and so should have most (perhaps all?) the mysql features. On Tuesday, March 12, 2013 2:14:39 AM UTC-7,

Re: [web2py] Re: Ticket Error: class 'serial.serialutil.SerialException' could not open port /dev/ttyAMA0:

2013-03-15 Thread Christian Foster Howes
the user for web2py depends on how you launch it... if you call: python web2py.py then it runs as you if you: sudo su bob python web2py.py it runs a bob. if you use apache or some other server i believe by default it runs as the user that is running apache. On Thursday, March 14, 2013

[web2py] Re: Uploading and Downloading Bulk data GAE

2013-03-15 Thread Christian Foster Howes
i use the bulk uploader/downloader from google (with some custom transforms to keep the same IDs across copies). i've found it to be the most efficient and reliable way to get large amounts of data transferred. On Thursday, March 14, 2013 5:00:20 AM UTC-7, José Manuel López wrote: Hi, I'm

Re: [web2py] Re: how to use web application to send serial commands?

2013-03-15 Thread The Organisation of Secret Shoppers
i have no idea as well. everything is too new to me :/ i'm switching back to serial, and i'm using pyserial... but got stuck as well. On Fri, Mar 15, 2013 at 3:01 PM, Christian Foster Howes cfho...@gmail.comwrote: i'm not familiar with netcat and minicom.are those python libraries? or are

Re: [web2py] Re: Ticket Error: class 'serial.serialutil.SerialException' could not open port /dev/ttyAMA0:

2013-03-15 Thread Niphlod
it's fine, but what you need to check is for the user who started the web2py process to be able to use your /dev/serialwhatever interface How did you install web2py ? PS: I have a raspberry too :P On Friday, March 15, 2013 9:28:09 AM UTC+1, The Organisation of Secret Shoppers wrote: so

[web2py] Re: Is it possible to generate a file containing the update for book 4th to 5th?

2013-03-15 Thread Niphlod
There are some steps involved, but I used fabric to automate that. Code runs on my pc at home, and basically it: - syncs git repo of the book - launches some git commands to generate the diffs - copies over the generated diff folder - changes routes.py - starts web2py webserver - launches wget to

[web2py] Sites Powereb by web2py = Sites *Powered* by web2py

2013-03-15 Thread Alec Taylor
Suggest making the change on the homepage! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] how to use db.current in a new thread?

2013-03-15 Thread RunSky ruan
from gluon import currentimport multiprocessingdef ip(): p = multiprocessing.Process(target=t,args=(hello,current.db)) p.start() p.join()print startdef t(arg1,arg2):print sub start %s%arg1print arg2.account.count( I use it but it report thead local error? how to use it ,or use the DAL in a

[web2py] Re: web2py appadmin bad to use,is there appadmin easy to use? linke the django admin

2013-03-15 Thread RunSky ruan
thank you 在 2013年3月13日星期三UTC+8下午10时59分08秒,rif写道: try https://github.com/rif/web2admin and post back your impressions. -rif miercuri, 13 martie 2013, 15:33:49 UTC+2, RunSky ruan a scris: I want to use the web2py because it easy to use, but the appadmin is not easy to use. is there some

Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-15 Thread Paolo valleri
Hi, I have in plan to use it in a future project, today a started a very easy app but I ended up in the error: 'database is locked'. The tests were done by using sqlite. What is wrong in my app? Please find attached the example test The ticket: Traceback (most recent call last): File

[web2py] app design page takes a long time to load

2013-03-15 Thread Rocco
Dear all, after I installed web2py version 2.4.2 stable the time to load the design page (pressing modify in the admin page) of a particular app is extremely increases. Usually it takes more than 60 seconds to load, but, when done, all is working well as expected. Using the app I don't have

Re: [web2py] Re: Scheduler: new plugin cs_plugin_monitor

2013-03-15 Thread Niphlod
maybe the fact that you're using sqlite :D If you have a recent sqlite distribution activate the WAL, it can zero out the issues for normal loads (usually also for low loads SQLite ends up locked) Jokes aside, that's why I implemented multiple queries as regroupings in python, to alleviate db

[web2py] [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
Hi, everyone, sorry for the OT but i would like to point you to the new uWSGI quickstart that has a section for Web2Py (and eventually HTTPS mode): http://uwsgi-docs.readthedocs.org/en/latest/WSGIquickstart.html#deploying-web2py In addition to this the 1.9 release (available from march 17) can

[web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Niphlod
I was missing the windows build option totally If speeds between unix and Windows are at least on the same scale it can solve the mother-of-all-issues of windows deployments of python apps without using apache or iis. On Friday, March 15, 2013 11:45:10 AM UTC+1, Roberto De Ioris wrote:

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Michele Comitini
Roberto, Where is the OT?? Thanks for keeping us informed on uWSGI: a must have for web2py users! mic 2013/3/15 Niphlod niph...@gmail.com: I was missing the windows build option totally If speeds between unix and Windows are at least on the same scale it can solve the

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
I was missing the windows build option totally If speeds between unix and Windows are at least on the same scale it can solve the mother-of-all-issues of windows deployments of python apps without using apache or iis. I was not able to make some serious benchmark as all of the windows

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Niphlod
I'll try to build it in the weekend and test it out: I didn't read the fine prints of the uwsgi license but for all the intranet kind of apps where the included webserver can start to show its limits we could potentially download the latest stable windows binary and mount web2py on it.

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread David Marko
Are there issues with using(on Windows) Apache HTTP + mod_wsgi see the windows builds here http://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi ? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop

Re: [web2py] Re: Problem with URL inside loaded component - Bug??

2013-03-15 Thread Jim Steil
That did the trick. I didn't know about that argument. Thanks for the heads up. -Jim On Thu, Mar 14, 2013 at 3:34 PM, LightDot light...@gmail.com wrote: I don't think it's a bug, .load is inherited in this case, isn't it? In other words, it's a feature :) You can set extension=False in

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Mark
I read your question again and think yamandu had already answered your question. There are if ... elif ... else ... in the index.html, which you may need to have a look. For your case, index.html worked similar to generic.html, but doesn't mean that the generic.html is used. On Thursday, March

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Anthony
Note, generic.html is not being used. The following two sentences are simply explaining how web2py works, not what is happening in this particular example: When developing, if there is no view, the action is rendered by the generic.html view that is provided with every web2py application.

Re: [web2py] Re: Problem with URL inside loaded component - Bug??

2013-03-15 Thread Anthony
From the book: By default, the extension corresponding to the current request (which can be found in request.extension) is appended to the function, unless request.extension is html, the default. This can be overridden by explicitly including an extension as part of the function name

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Niphlod
I assume there aren't, but that is not a setup I'd put up for an intranet to publish an app used by 50 users. Apache on unix is somewhat fatty , on windows it gets really soon to unbereable. Config directives are a sysadmin thing (I'm not against it, it just doesn't feel natural). That being

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread David Marko
Yes nginx is my favourite too, being from czech republic, we are closer to russia :-) ... but it really requires stable build of uwsgi for windows not only some home-made. Would appreciate hearing any results ... Dne pátek, 15. března 2013 14:27:03 UTC+1 Niphlod napsal(a): I assume there

Re: [web2py] Re: Ticket Error: class 'serial.serialutil.SerialException' could not open port /dev/ttyAMA0:

2013-03-15 Thread Massimo Di Pierro
One solution is discussed here: http://rwsarduino.blogspot.com/2013/02/pi-progress-tidbits-and-serial.html It is not the most secure solution but should get you going for debugging purposes. Another solution, better, suggested here http://www.sbprojects.com/projects/raspberrypi/serialsetup.php

[web2py] Re: Sites Powereb by web2py = Sites *Powered* by web2py

2013-03-15 Thread Massimo Di Pierro
This has been fixed in trunk. Will be updated with the new version. On Friday, 15 March 2013 03:47:02 UTC-5, Alec Taylor wrote: Suggest making the change on the homepage! -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe

[web2py] Re: how to use db.current in a new thread?

2013-03-15 Thread Massimo Di Pierro
multiprocessing.Process makes a process, not a thread. The process runs in a new memory space and it cannot access current. When using subprocess you should not have global variables because they work differently in windows vs unix and you will run into problems. On Friday, 15 March 2013

[web2py] export-table timeout?

2013-03-15 Thread Jonathan Lundell
I'm trying to export a largish (270K records) MySQL table via the grid or administrative export-csv functions. In both cases, I get an error after a fairly long wait; I'm assuming it's a connection timeout. Traceback (most recent call last): File

[web2py] Re: app design page takes a long time to load

2013-03-15 Thread Massimo Di Pierro
Strange. Anybody else seeing this? On Friday, 15 March 2013 05:15:13 UTC-5, Rocco wrote: Dear all, after I installed web2py version 2.4.2 stable the time to load the design page (pressing modify in the admin page) of a particular app is extremely increases. Usually it takes more than 60

[web2py] Re: export-table timeout?

2013-03-15 Thread Jonathan Lundell
On 15 Mar 2013, at 6:45 AM, Jonathan Lundell jlund...@pobox.com wrote: I'm trying to export a largish (270K records) MySQL table via the grid or administrative export-csv functions. In both cases, I get an error after a fairly long wait; I'm assuming it's a connection timeout. Traceback

Re: [web2py] Re: app design page takes a long time to load

2013-03-15 Thread Angelo Compagnucci
Hi Rocco! I think you can open Web2py in Ecplise and lauch it in debug mode. When you hit the performance penalty, press the pause button and you can start to debug the design/welcome function! Angelo 2013/3/15 Massimo Di Pierro massimo.dipie...@gmail.com Strange. Anybody else seeing this?

[web2py] Re: export-table timeout?

2013-03-15 Thread Niphlod
I'd need to test it again, but when I added excel-like exports my users were downloading ~50mb of files without hiccups (MSSQL though). *lost connection during query* seems to point the finger towards mysql not shipping data fast enough than web2py not fast enough to handle its

[web2py] to use the dal in third module must define all the tables ?

2013-03-15 Thread RunSky ruan
Is there a easy way to do this? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: Doubt in the example provided on web2py manual page 98

2013-03-15 Thread Sarbjit singh
Anthony, you are right. I am new to web2py and following this example from the book. It actually gives me an impression that index.html is not used since it is mentioned that index.html will be modified and it is immediately following the line where it is mentioned generic.html will be used if

[web2py] Re: to use the dal in third module must define all the tables ?

2013-03-15 Thread Niphlod
if you want to use a Database Abstraction Layer you're kinda forced to tradeoffs. Either you define them in your module or you import the table definition from somewhere else.without models you can basically only do db.executesql(). On Friday, March 15, 2013 3:45:41 PM UTC+1, RunSky

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Jonathan Lundell
On 15 Mar 2013, at 7:39 AM, Niphlod niph...@gmail.com wrote: I'd need to test it again, but when I added excel-like exports my users were downloading ~50mb of files without hiccups (MSSQL though). lost connection during query seems to point the finger towards mysql not shipping data fast

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Niphlod
you could set some filters and with the frid it should export only the records shown, not the whole table PS: passing driver_args = {} should do the job with pymysql, but I don't see any forums showing that that kind of error is driver-dependant on some kind of timeout parameter (as is in

[web2py] SQLForm + auth.register OR auth.login

2013-03-15 Thread Marian
I've stuck on this for a while. I need one page where I can create a submission with image uploads etc. and a required reference to auth.user. If the user is logged in it is quite simple but you should create a submission and login OR register on one page? I have no idea how to solve this. :(

[web2py] Re: MSSQL

2013-03-15 Thread Massimo Di Pierro
I think this is fixed and closed the ticket but can you please double check? On Thursday, 14 March 2013 01:41:25 UTC-5, Marian wrote: Issues created: http://code.google.com/p/web2py/issues/detail?id=1390sort=-id Am Donnerstag, 14. März 2013 00:10:16 UTC+1 schrieb Niphlod: can you please

[web2py] Re: Web2py 2.4.4

2013-03-15 Thread Massimo Di Pierro
Should be fixed intrunk. Please check it and I will post a 2.4.5 On Wednesday, 13 March 2013 07:22:04 UTC-5, Annet wrote: In Web2py 2.4.4, when I click the Create/Upload button under Modules to create a module, the create file with filename dialog appears under Static, when I create a new

[web2py] Not to open a can of worms ... about web2py.com

2013-03-15 Thread Massimo Di Pierro
Somebody suggested web2py.com should look more like http://nodejs.org/ It would not be difficult to do. Should it be done? Massimo -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

Re: [web2py] Re: SQLFORM.smartgrid oncreate,ondelete not firing

2013-03-15 Thread software.ted
So what is the conclusion? how can you fire a callback for a function when a child table has a field added or edited using oncreate and onupdate respectively. On Wednesday, 7 November 2012 14:43:26 UTC+2, vivek wrote: Hmmm , unsure of how to determine the different table , i tried

Re: [web2py] REF: SQLFORM.grid: Determine when a new record is added

2013-03-15 Thread Teddy Nyambe
I have checked it and thanks its the thing am looking for however, I have managed to have it work using SQLFORM.grid, however, I am having a challenge having it work with SQLFORM.smartgrid where a child table upon adding or editing a row can trigger a callback, I was trying it like so but it

Re: [web2py] Not to open a can of worms ... about web2py.com

2013-03-15 Thread Angelo Compagnucci
The new web2py site is extremely beatiful, clean and professional. Why make it darker and greener?! 2013/3/15 Massimo Di Pierro massimo.dipie...@gmail.com Somebody suggested web2py.com should look more like http://nodejs.org/ It would not be difficult to do. Should it be done? Massimo --

[web2py] Re: SQLFORM with preset fields

2013-03-15 Thread olly . morgan
Thanks Niphlod -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Jonathan Lundell
On 15 Mar 2013, at 8:15 AM, Niphlod niph...@gmail.com wrote: you could set some filters and with the frid it should export only the records shown, not the whole table I think I'll write a script to parse the database dump into a csv file instead; it's a lot quicker. But this seems like a

[web2py] anyserver and scheduler

2013-03-15 Thread Manuele Pesenti
Hi, how can I run web2py using the anyserver script running even the the scheduler? Is it possible? thank you very mutch Cheers Manuele -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving

[web2py] mod_wsgi error

2013-03-15 Thread use_web2py
Hi Massimo, I keep getting this error in the apache log, which fills up my log ,I need to know why is this happening http_response, request, environ, ticket) request.env.request_uri), request.url) return ''.join(map(quoter, s)) return quote(s, safe) return wsgibase(new_environ, responder) File

Re: [web2py] Not to open a can of worms ... about web2py.com

2013-03-15 Thread joseph simpson
Let it be.. Be yourself... Have fun... On Fri, Mar 15, 2013 at 8:20 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Somebody suggested web2py.com should look more like http://nodejs.org/ It would not be difficult to do. Should it be done? Massimo -- ---

Re: [web2py] Not to open a can of worms ... about web2py.com

2013-03-15 Thread António Ramos
Why not like http://cakephp.org/ Just be yourself I suggest only that online book could preserve menus on the left like here http://docs.meteor.com/#quickstart Best regards António 2013/3/15 joseph simpson jjs0...@gmail.com Let it be.. Be yourself... Have fun...

[web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Anthony
More like nodejs.org in what way? It's a nice site, but not sure I like having to scroll down a page to get to the site menu from the home page. Also, for some reason, the About and Docs pages have a different color scheme from the rest of the site (works well for the docs because I think it's

[web2py] Re: mod_wsgi error

2013-03-15 Thread Massimo Di Pierro
Memory error usually indicates that you are running out of memory. It could be due to the app if you are caching too much. I cannot say. Is it reproducible? Do you have multiple failures at the same point? massimo On Friday, 15 March 2013 12:53:42 UTC-5, use_web2py wrote: Hi Massimo, I

[web2py] Re: anyserver and scheduler

2013-03-15 Thread Niphlod
no. the scheduler is supposed to run OUTSIDE the watch of a webserver, of any kind. On Friday, March 15, 2013 5:39:49 PM UTC+1, Manuele wrote: Hi, how can I run web2py using the anyserver script running even the the scheduler? Is it possible? thank you very mutch Cheers

[web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Derek
I hate the color scheme of nodejs.org and it's quite ugly... but here's what I do like: About NodeJS.org... 1. Unambiguous. Web2py.com has three images which appear to be three ipads displaying webpages. Turns out those webpages are for The web2py book, the web2py cookbook, and the web2py

[web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Cliff Kachinske
As far as home pages go, its a bad idea. The Web2py home page works much better. Here's why: My laptop display is 768 pixels tall. The Nodejs home page is taller than 768 px, but there's nothing on it that tells me to scroll down. Not good. On my 1050 px tall monitor, I can tell there is

Re: [web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Richard Vézina
I will create a new favicon and sand it as a proposal for change that will that will stick out as notice by Derek... Richard On Fri, Mar 15, 2013 at 4:32 PM, Derek sp1d...@gmail.com wrote: I hate the color scheme of nodejs.org and it's quite ugly... but here's what I do like: About

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Michele Comitini
I am no win32 expert (and btw I hope I will never need to be one), but there are much better alternatives to select: http://msdn.microsoft.com/en-us/library/ms681951(VS.85).aspx mic 2013/3/15 Roberto De Ioris robe...@unbit.it: I was missing the windows build option totally If speeds

[web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Stefaan Himpe
Should it be done? No. -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit

Re: [web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Michele Comitini
A can of worms or Pandora's box? the fork me on github ribbon? overall web2py.com is much better than nodejs.org. Probably it needs some little refinements about colors and font sizes, but I am not entitled to speak ... de gustibus et coloribus... mic 2013/3/15 Stefaan Himpe

[web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread dlypka
The web2py site has its own distinctive look which is very clever. Occasional tweaks are good, but let it follow its current course. Not so sure what that new banner background image (vertical lines) is about though... On Friday, March 15, 2013 4:10:04 PM UTC-5, stefaan wrote: Should it be

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Martín Mulone
In my experience recently I had many problems with pymysql, so I switch to mysqldb using dal. El 15/03/2013 13:18, Jonathan Lundell jlund...@pobox.com escribió: On 15 Mar 2013, at 8:15 AM, Niphlod niph...@gmail.com wrote: you could set some filters and with the frid it should export only the

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Niphlod
me neither. My attempts to build 1.9 rc2 under cygwin fail miserably in a uWSGI compiling server core *** [gcc] core/utils.o In file included from core/utils.c:1:0: ./uwsgi.h:297:23: fatal error: sys/event.h: No such file or directory compilation terminated.* error I guess I'll wait for a

[web2py] Re: smartgrid: how to disable repeating parent ID in child record

2013-03-15 Thread 黄祥
did you try using query ? e.g. query=(db.project.created_by==auth.user) (db.project.is_active==True) grid=SQLFORM.grid(query, user_signature=False, onupdate=auth.archive) -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe

Re: [web2py] Bunch/Batch/Bulk insert Re-use db.define_table field definition in SQLFORM.factory() ?

2013-03-15 Thread 黄祥
nice solution, with this can solve the problem to add the multiple data simultanously within one form. On Friday, March 15, 2013 2:07:11 AM UTC+7, Anthony wrote: How about: for i in range(0,10): inputs.append(db.table1.field1.clone(name='%s_%s' % (db.table1.field1. name, i))) The

[web2py] big file upload hangs web2py until kernel kills the process

2013-03-15 Thread Vincenzo Ampolo
Hi all In this thread http://www.mail-archive.com/web2py@googlegroups.com/msg47911.html , Massimo said that web2py is tested extensively with large files (up to 2GB) Well, I'm trying to upload just a 150MB tar.gz with this code: def index(): form = SQLFORM.factory(

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Jonathan Lundell
On 15 Mar 2013, at 3:44 PM, Martín Mulone mulone.mar...@gmail.com wrote: In my experience recently I had many problems with pymysql, so I switch to mysqldb using dal. I'll give it a try. A question, though. The book suggests: from gluon.dal import MySQLAdapter MySQLAdapter.driver =

[web2py] web2py CLI integration

2013-03-15 Thread Kristen
Hi All, I'm new to python, web2py and all. I have been experimenting python and I like what I read about the web2py (rapid development, security, etc). My questions is the ability to intergrate a web2py project with a CLI (command line interface) for my users. I've come across python

[web2py] Is Dreamhost passenger a good option for production?

2013-03-15 Thread Tito Garrido
Hi Folks! I used to have a shared host on dreamhost using passenger wsgi but I got some memory issue and transferred my website to their VPS. What is the best option for production on a VPS? We are using 300MB RAM account, all select are cached using cache mem... I can see some spikes and the

[web2py] Re: big file upload hangs web2py until kernel kills the process

2013-03-15 Thread Vincenzo Ampolo
On 03/15/2013 05:27 PM, Vincenzo Ampolo wrote: What am I doing wrong ? It seems that the problem was that i was returning dict(form=form) all cases, this means to send the file back to the browser (probably). I've solved like this: def index(): form = SQLFORM.factory(

[web2py] web2py CLI integrations

2013-03-15 Thread kwebb
My apologies if this posts twice, I've not used gmail yet ;) I like what I see in web2py (fast, secure, easy). I am new to python as well. We are trying to build a web interface with a CLI as well. I've come across cement. This seems like a commn developemt issue (Web +CLI). We have also

[web2py] Parent-child model form based on many sqlforms on one page

2013-03-15 Thread Tim Richardson
I have an application with a parent-child data model where I think sqlform.grid will be a frustrating user interface approach due the number of interactions to edit multiple rows. I'm a former perl programmer, and still lazy. I was wondering about generating an SQLFORM for each row. There may

Re: [web2py] Bunch/Batch/Bulk insert Re-use db.define_table field definition in SQLFORM.factory() ?

2013-03-15 Thread Richard Vézina
Yop! I am almost finish, I will publish the code I come up with when it good enough... :) Richard On Fri, Mar 15, 2013 at 8:24 PM, 黄祥 steve.van.chris...@gmail.com wrote: nice solution, with this can solve the problem to add the multiple data simultanously within one form. On Friday,

[web2py] iframe wordpress site?

2013-03-15 Thread Jarrod Wilcox
I want to put a capable and secure blog into my application. I have an iframe that links to an external wordpress site under my control. My question is what special steps are needed to make this a secure environment. -- --- You received this message because you are subscribed to the Google

Re: [web2py] Re: SQLFORM.smartgrid oncreate,ondelete not firing

2013-03-15 Thread Cliff Kachinske
One way to do it is parse the args. ar = request.args # save typing if len(ar) 2 and ar[-1] == 'mytable' and ar[-2]=='new': # Yes, there is a more concise way to do this with slices oncreate= myfunctiononcreate else: oncreate=None if len(ar) 3 and isinstance(ar[-1], int) and

Re: [web2py] Re: Not to open a can of worms ... about web2py.com

2013-03-15 Thread Richard Vézina
Here what come out of my mind for improving favicon... I think the concept is obvious (see attach PNGs files)!! - web2py is essential so it's part of the elements - he has his uniques and distincts set of caracteristics represented subtilly by the fact that his element tile is not totally

[web2py] Re: web2py CLI integration

2013-03-15 Thread Massimo Di Pierro
What kind of CLI functionality are you looking for? On Friday, 15 March 2013 19:27:24 UTC-5, Kristen wrote: Hi All, I'm new to python, web2py and all. I have been experimenting python and I like what I read about the web2py (rapid development, security, etc). My questions is the ability

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Massimo Di Pierro
On Friday, 15 March 2013 19:31:07 UTC-5, Jonathan Lundell wrote: On 15 Mar 2013, at 3:44 PM, Martín Mulone mulone...@gmail.comjavascript: wrote: In my experience recently I had many problems with pymysql, so I switch to mysqldb using dal. I'll give it a try. A question, though. The

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Massimo Di Pierro
Can you tel us something about problems. We are using it to check tests with mysql and some are failing on travis.ci we are trying to figure out why. Could it be the driver? On Friday, 15 March 2013 17:44:54 UTC-5, Martin.Mulone wrote: In my experience recently I had many problems with

[web2py] Re: big file upload hangs web2py until kernel kills the process

2013-03-15 Thread Massimo Di Pierro
If you have a a generic view of a {{=response.toolbar()}} than the view will be embedding everything in the form, including the form.vars, into the html. Otherwise this should not be a problem. Massimo On Friday, 15 March 2013 20:16:07 UTC-5, Vincenzo Ampolo wrote: On 03/15/2013 05:27 PM,

Re: [web2py] Bunch/Batch/Bulk insert Re-use db.define_table field definition in SQLFORM.factory() ?

2013-03-15 Thread 黄祥
that's good, thanks for sharing. that's what i'm looking for, because if i'm not wrong, there is no web2py appliances that show how to add multiple data simultaneously within 1 form. On Saturday, March 16, 2013 8:58:36 AM UTC+7, Richard wrote: Yop! I am almost finish, I will publish the

Re: [web2py] Formatting radio widgets (or radio buttons)

2013-03-15 Thread 黄祥
you can use the plugin too: http://dev.s-cubism.com/plugin_hradio_widget -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [web2py] Re: export-table timeout?

2013-03-15 Thread Jonathan Lundell
On 15 Mar 2013, at 7:34 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: On Friday, 15 March 2013 19:31:07 UTC-5, Jonathan Lundell wrote: On 15 Mar 2013, at 3:44 PM, Martín Mulone mulone...@gmail.com wrote: In my experience recently I had many problems with pymysql, so I switch to

Re: [web2py] Re: [OT] uWSGI quickstart for Web2Py (works on windows too)

2013-03-15 Thread Roberto De Ioris
me neither. My attempts to build 1.9 rc2 under cygwin fail miserably in a uWSGI compiling server core *** [gcc] core/utils.o In file included from core/utils.c:1:0: ./uwsgi.h:297:23: fatal error: sys/event.h: No such file or directory compilation terminated.* error I guess I'll wait

Re: [web2py] Bunch/Batch/Bulk insert Re-use db.define_table field definition in SQLFORM.factory() ?

2013-03-15 Thread Richard Vézina
I didn't find noting, but didn't search that much... Ask a couple of time. There is many problems to resolve, and I there is no single way to solve them. I develop something that may works for me, but may be not exactly what you are searching for. Anyway... As soon as I get something correct I