[web2py] Re: wsgihandler.py hangs after updating pandas library

2017-05-22 Thread Nicolas Petitclerc
I installed pandas 0.20.0 to 'web2py/site-packages/' so that I could easily revert back to the previous version. If I install 0.20.0 globally, I get the same error with wsgihandler.py :/ On Friday, April 28, 2017 at 12:50:56 PM UTC+2, Nicolas Petitclerc wrote: > > Hi, > > I need to update pand

[web2py] grid oncreate

2017-05-22 Thread T.R.Rajkumar
I have this in model. db.define_table('amc_master', Field('amcno', type='string',length=10,required='True',notnull='True',requires=IS_LENGTH(10)), Field('unitid',type='string',length=3,notnull='True'), Field('amcdesc', type='string',length=512,requi

[web2py] Re: wsgihandler.py hangs after updating pandas library

2017-05-22 Thread Nicolas Petitclerc
Perhaps updating mod_wsgi to latest (4.5.15) would help? On Friday, April 28, 2017 at 12:50:56 PM UTC+2, Nicolas Petitclerc wrote: > > Hi, > > I need to update pandas - web2py uses the Ubuntu distribution version > (which is getting old Pandas 0.17.0). So I pip installed the latest version > int

[web2py] Getting the (Big) picture on Multi-tenant applications

2017-05-22 Thread miguel
I've only worked with intranet apps so far, but I'm seriously thinking about starting a SaaS webapp. However I'm largely ignorant of the workings of the wild wide web, so please bear with me. My idea is to get a big picture of the issue of multi-tenancy, some aspects have to do with web2py, oth

[web2py] Re: wsgihandler.py hangs after updating pandas library

2017-05-22 Thread Nicolas Petitclerc
That didn't help either, same error: [mpm_prefork:notice] [pid 26692] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.21 OpenSSL/1.0.1f mod_wsgi/4.5.15 Python/2.7 configured -- resuming normal operations [core:notice] [pid 26692] AH00094: Command line: '/usr/sbin/apache2' [wsgi:error] [pid

[web2py] Re: Representation (DAL)

2017-05-22 Thread Jim S
I think this should answer your question: https://groups.google.com/forum/#!topic/web2py/0lL1wcjcdxU -Jim On Sunday, May 21, 2017 at 5:04:36 PM UTC-5, lyn2py wrote: > > I have 2 tables: > > db.define_table('TABLE_1', > Field('name','string'), > format='%(name)s' > ) > > db.define_table('TABLE_2'

[web2py] Re: grid oncreate

2017-05-22 Thread Anthony
Specify the "default" argument for the fields you want filled in automatically by the DAL. Anthony On Monday, May 22, 2017 at 7:21:02 AM UTC-4, T.R.Rajkumar wrote: > > I have this in model. > db.define_table('amc_master', > Field('amcno', > type='string',length=10,required='True

[web2py] Re: function contingent on registration

2017-05-22 Thread Anthony
On Sunday, May 21, 2017 at 4:58:24 PM UTC-4, runru...@gmail.com wrote: > > fun = database > zip = table name > inform = Field name >this enters data into the database but I would prefer it run only once > at registration. > fun.zipdip.insert(infom=result) > > An interesting behavior is

[web2py] Re: Copy & paste images from Wiki page does not work

2017-05-22 Thread Anthony
On Friday, May 19, 2017 at 11:32:07 AM UTC-4, Daniel Vogel wrote: > > I can have a try to change some code for a temporary fix (function > auth.wiki()). Anthony said, Wiki function use attachement=True. With this > settings the browser will start the open/download dialog? Is it possible > that t

[web2py] row.update_record()

2017-05-22 Thread 'Annet' via web2py-users
I have the following query and form: user = db.auth_user(vertexID=vertexID) form = SQLFORM.factory(db.auth_user, db.auth_dummy, extra_fields=extra_fields) If the form validates I want to update user with data I selected from other tables and with data from the form. I have the following code;

Re: [web2py] row.update_record()

2017-05-22 Thread Miguel Lopes
On Mon, May 22, 2017 at 4:35 PM, 'Annet' via web2py-users < web2py@googlegroups.com> wrote: > I have the following query and form: > > user = db.auth_user(vertexID=vertexID) > > form = SQLFORM.factory(db.auth_user, db.auth_dummy, > extra_fields=extra_fields) > > If the form validates I want to upd

[web2py] Re: Http to Https [URGENT]

2017-05-22 Thread Leonel Câmara
What do you mean the mail server doesn't work? How is that related to http or http? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this mes

[web2py] Re: exporting selected rows from a grid

2017-05-22 Thread 'Matthew J Watts' via web2py-users
hello, did you ever find a better solution for this? I want to do the same thing On Monday, September 30, 2013 at 11:33:57 AM UTC+2, step wrote: > > I want to use SQLFORM.grid with selectable checkboxes to serve a custom > export function. Unlike web2py's default exportformats manager, which >

[web2py] Editing an SQLFORM.grid - use check boxes to select downloads.

2017-05-22 Thread 'Matthew J Watts' via web2py-users
Hi all I'm new to web2py and i'm stuck on the following issue. I am trying to Edit an SQLFORM.grid so that I can use the check boxes (selectable) to select which rows to download. Can anyone give me a few pointers on this. Thanks Matt -- Resources: - http://web2py.com - http://web2py

[web2py] Re: Diplay a list in a view like an array [URGENT]

2017-05-22 Thread Dave S
On Sunday, May 21, 2017 at 11:53:37 PM UTC-7, sunda...@gmail.com wrote: > > Hey guys i resolved the problem, all my images wasnt the same size, when i > change all the size to the same size, the whole dissapear :) > > > Thanks > I'm happy to hear that you got the issue sorted. /dps -- Res

[web2py] Re: wsgihandler.py hangs after updating pandas library

2017-05-22 Thread Nicolas Petitclerc
I figured it out, at last! It was a mod_wsgi issue with loading C extension module: https://serverfault.com/questions/514242/non-responsive-apache-mod-wsgi-after-installing-scipy/514251#514251 Adding: WSGIApplicationGroup %{GLOBAL} in my apache .conf file fixed it. On Friday, April 28, 2017

[web2py] Re: Editing an SQLFORM.grid - use check boxes to select downloads.

2017-05-22 Thread 黄祥
i think you can use widget to show checkbox : SQLFORM.widgets.checkboxes.widget ref: http://web2py.com/books/default/chapter/29/07/forms-and-validators#Widgets and use record representation for download ref: http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#format--Recor

[web2py] Re: grid oncreate

2017-05-22 Thread T.R.Rajkumar
The amcno is coined based on the user, his working division, section and previous amcno. Also the update_uid is the user who has logged in. As said may be the update_dt can be set to default request.now. But how to set others which requires calculation? -- Resources: - http://web2py.com - htt

[web2py] Re: grid oncreate

2017-05-22 Thread Dave S
On Monday, May 22, 2017 at 9:28:10 PM UTC-7, T.R.Rajkumar wrote: > > The amcno is coined based on the user, his working division, section and > previous amcno. Also the update_uid is the user who has logged in. As said > may be the update_dt can be set to default request.now. But how to set >