[web2py] Question about using _enable_record_versioning to another database

2013-07-20 Thread tomt
It appears that if I use _enable_record_versioning to archive a table to another database, then that database must have an auth_user table. Is there any way to archive a table to another database and have it refer to the auth_user table in the local database? # local database db = DAL('mysql:/

[web2py] I need a virutual filed for this, correct?

2013-07-20 Thread Alex Glaros
I want to select one of many parent records, and send selection parm, parent_id to sqlFactory to add child record. I think I need a virutual filed for this, correct? Goal is to add a new address, to an already-existing address for parent table db.Party. db.Address contains addresses only, and

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread lucas
i stuck the jQuery code in the body after my form block using the SCRIPT helper and it works fine. not really sure its placement is so critical to its workings. lucas -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from

[web2py] Re: Is there an issue with my web2py install? "can't pickle function objects"

2013-07-20 Thread Joe Magaro
Hi Mossimo, If it helps See below. I first noticed the problem after I installed a package (instant press). Now I see it in the admin when I try to delete a view. I think its popped up a few other times too. 2.5.1-stable+timestamp.2013.06.06.15.39.19 (Running on Apache/2.2.22 (Ubuntu)) Version

[web2py] web2py_component() and no request being sent

2013-07-20 Thread lesssugar
I'm using *the same* web2py_component() function in 3 different forms in my application. In 2 cases the function gets the job done. In the third form web2py_component() doesn't work - no request is being sent. Do you guys know any reason why web2py_component() wouldn't get triggered? CODE -

[web2py] Re: need help testing app

2013-07-20 Thread dhmorgan
After installing BeautifulSoup, it ran fine. Results matched those provided by wunderground. On Saturday, July 20, 2013 4:18:10 PM UTC-5, greaneym wrote: > > Hello, > > I would like

[web2py] need help testing app

2013-07-20 Thread greaneym
Hello, I would like to share an app with the web2py community, and also am asking for help testing it. https://github.com/greaneym/weather It needs more work but please feel free to try it. It gave me some practice using BeautifulSoup. It uses the National Weather Service's web service to pr

[web2py] Re: Mobile and Tablets detection

2013-07-20 Thread Marcio Andrey Oliveira
I have no idea how complete WURFL is but it it seems that request.user_agent() will do the job. Regards. -- --- 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: Mobile and Tablets detection

2013-07-20 Thread Christian Foster Howes
is the WURFL library of devices more or less complete then the mobile browser list? http://wurfl.sourceforge.net/ I used the WURFL 5-6 years ago and found it to be the most complete open-source list at the time. On Wednesday, July 17, 2013 11:57:28 PM UTC-7, AngeloC wrote: > > Hi Marcio, > > I

[web2py] Re: Front-end dev workflow on OS X?

2013-07-20 Thread Christian Foster Howes
also note that you can install web2py from source and then browse the folders as you normally would. you just might have to start the web2py server manually rather then click an icon. On Friday, July 19, 2013 9:27:42 AM UTC-7, Massimo Di Pierro wrote: > > Sorry now I understand. I do not have a

[web2py] Re: Web2Py cannot import module matplotlib

2013-07-20 Thread K. Antonis Tzorvas
all operations are noticeably very slow, I haven't changed anything from the setup, any idea on what to look for? with the same app on pythonanywhere, everything runs faster On Saturday, July 20, 2013 11:53:36 AM UTC+3, K. Antonis Tzorvas wrote: > > I solved this problem by adding > import os

Re: [web2py] ast module

2013-07-20 Thread Jonathan Lundell
On 20 Jul 2013, at 12:02 AM, Massimo Di Pierro wrote: > As Jonathan says the ast module was introduced in Pyhton 2.6, you have 2.5. I was bitten by this (other features, not ast) just yesterday. My local environment (OS X) has 2.7; my production environment (RHEL6) had 2.6. Turns out that 2.6

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread lucas
no i am stuck a bit because i thought that jQuery was already loaded and running on the client side because all of the JS files in the views/layout.html are included in the file's header. including js/web2py_ajax.js, js/superfish.js, etc. also, the session.flash and response.flash work and th

[web2py] Re: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2013-07-20 Thread peckto
I think i can explain this behaviour. The statement "var in list" cals the lists __contains__ method, which loops through the list and compares each element with var. But in case of an Field object the equals operator (__eq__) has another meaning, it's the "WHERE" part of the db query: db(db.tabl

[web2py] Re: Web2Py cannot import module matplotlib

2013-07-20 Thread K. Antonis Tzorvas
I solved this problem by adding import os import tempfile os.environ['MPLCONFIGDIR'] = tempfile.mkdtemp() before the import matplotlib and it's running, but i had problems with the plotting due to headless environment i was getting this error from py-Tk: *"no display name and $DISPLAY environmen

[web2py] Re: Deadlock found when trying to get lock; try restarting transaction

2013-07-20 Thread vince
actually it is possible to disable transaction? i believe the cluster will handle auto-recommit except for transactional commit. On Saturday, July 20, 2013 4:39:01 PM UTC+7, vince wrote: > > i think the framework errors are from web2py session update into mysql, > we've already use session.fo

[web2py] Re: Deadlock found when trying to get lock; try restarting transaction

2013-07-20 Thread vince
i think the framework errors are from web2py session update into mysql, we've already use session.forget to minimize the problem but still we need to update session sometimes. we have already catching all update request and do retry ourself. since mariadb galera cluster is synchronous replicati

[web2py] Re: for row in table (view), can i have a dropdown of list of links (update , delete) ?

2013-07-20 Thread webpypy
Yes, It is done in admin application. On Friday, July 19, 2013 1:08:38 PM UTC+3, webpypy wrote: > > Hi, > > for row in table (view), can i have a dropdown of list of links (update , > delete) ? > > Regards, > > Ashraf > -- --- You received this message because you are subscribed to the Google

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread Massimo Di Pierro
I guess you now know what to do. ;-) On Saturday, 20 July 2013 02:55:40 UTC-5, lucas wrote: > > Uncaught ReferenceError: jQuery is not defined -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receivi

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread lucas
Uncaught ReferenceError: jQuery is not defined -- --- 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: REF: Displaying a Virtual Field in SQLFORM.grid throws an exception....

2013-07-20 Thread Massimo Di Pierro
Strange. Ok. I changed it again. Can you please check it. I am still trying to avoid the double loop for every virtual table. On Friday, 19 July 2013 16:54:05 UTC-5, peckto wrote: > > Regarding your changes: > +all_fields = filter(lambda nv: nv[1] in fields and > +

[web2py] Re: Web2Py cannot import module matplotlib

2013-07-20 Thread Massimo Di Pierro
Look into this. When you import matplotlib it attempts to read(write?) into the MPLCONFIGDIR. If it does not exist for the user or the user (www-data) does not have read/write permission it fails. On Friday, 19 July 2013 20:45:28 UTC-5, K. Antonis Tzorvas wrote: > > I've used this script > http

[web2py] Web2Py cannot import module matplotlib

2013-07-20 Thread K. Antonis Tzorvas
I've used this script https://github.com/web2py/web2py/blob/master/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh and the problem is that i cannot import matplotlib in web2py (although it did import numpy) if i try to run /home/www-data/web2py/web2py.py on another port then there is no problem with

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread Massimo Di Pierro
Do you have Chrome? Do you get any chrome error from the javascript console? On Saturday, 20 July 2013 01:56:52 UTC-5, lucas wrote: > > hey massimo, > > trying it: > > jQuery(".check_all_checkbox").click(function() { var > checkedStatus = this.checked; jQuery(".ci_").ea

[web2py] Re: best advice for checking/unchecking all INPUT checkboxes with certain pattern in name

2013-07-20 Thread lucas
hey massimo, trying it: jQuery(".check_all_checkbox").click(function() {var checkedStatus = this.checked; jQuery(".ci_").each(function() { this.checked = checkedStatus; }); }); obviously focusing on the class names with: for the all checkbox, and an example o

Re: [web2py] Re: ast module

2013-07-20 Thread Massimo Di Pierro
As Jonathan says the ast module was introduced in Pyhton 2.6, you have 2.5. On Friday, 19 July 2013 19:19:32 UTC-5, Auden RovelleQuartz wrote: > > From the Rackspace control panel, I can see I am running *Ubuntu 8.04.2 > LTS (hardy)* OS > > To start (or restart) web2py, I typically just reboot t