[web2py] Error in GAE TypeError: ConjunctionNode()

2015-08-13 Thread Jacinto Parga
I have an aplication deployed in GAE tha has been running for months with no problem, but in the last deployment in GAE, it has raised a new error: TypeError: ConjunctionNode() expects Node instances as arguments; received a non-Node instance None The error has to do with *IS_IN_DB* validator,

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Michael Beller
I really like the approach crayzeewulf used here: http://stackoverflow.com/questions/9683604/composite-key-in-web2py/9685846#9685846 On Wednesday, August 12, 2015 at 11:17:45 PM UTC-4, JC wrote: > > Hello, > I´ve the following model: > > db.define_table('bsc_input', > Field('id_p_

[web2py] Re: IIS 8.5 static file using rewrite problem

2015-08-13 Thread Niphlod
401 means not authorized. What happens without rewrite (or incorrect ones) is usually 404 (not found) . Can you post more details about the structure of the iis site which the app belongs ? On Wednesday, August 12, 2015 at 6:01:45 PM UTC+2, Remco Boerma wrote: > > Hi, > > I'm migrating from ub

[web2py] Re: Load Balanced Server code updating

2015-08-13 Thread Niphlod
puppet, chef or ansible are more geared towards "prepare me a new node to add to the cluster" rather than "update the application files on every node of my cluster" but feel free to engage. My point was "start small and simple, then reiterate". chef ansible and puppet are more likely the 1000th

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
please insert in settings using pickle.HIGHPROTOCOL if I set unuse.pickle_HP - than will switch off it https://groups.google.com/forum/?hl=ru#!searchin/web2py/pickle/web2py/r3LcWSbEbmM/TI_enYLZCQwJ now I edit it by hand (( четверг, 13 августа 2015 г., 6:17:27 UTC+3 пользователь Massimo Di Pierro

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
++ please separate admin (backoffice) layout.html and frontoffice layouts!!! ++ please in appadmin/db - in settings set counter or records to show on one pape 100 recs is too long ((( ++ please insert in admin/db in edit some record if that field is refernce to table - link to that table record

[web2py] Re: 2.12.1 is out

2015-08-13 Thread ermolaev . icreator
- enable /appadmin/manage/auth by default for user admin ??? no! - please set it as settings by default is desabled I use admin only on local machine! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google

[web2py] Re: Appconfig cast boolean

2015-08-13 Thread ermolaev . icreator
I talk about it! If in .ini file: migrate = False it conderted to string too and is True in python code! понедельник, 3 августа 2015 г., 3:51:52 UTC+3 пользователь Mark Graves написал: > > What is the proper syntax for appconfig.ini if the cast is a boolean. > > With a fresh install of web2py

Re: [web2py] Re: Appconfig cast boolean

2015-08-13 Thread Mark Graves
Set migrate = (Empty string) => False > On Aug 13, 2015, at 8:58 AM, ermolaev.icrea...@gmail.com wrote: > > I talk about it! > > If in .ini file: > > migrate = False > > it conderted to string too and is True in python code! > > понедельник, 3 августа 2015 г., 3:51:52 UTC+3 пользователь Mar

[web2py] Re: Multi file upload

2015-08-13 Thread Val K
Hi! It seems, that your view has no form-tag (i.e. > Hello! > > I'm trying to create a form in order to upload multiple files with > description for each file, i've something like this: > > View: > > > > {{=T('Archivo')}} > > > >

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Val K
Forget all what you've read there (joke) If you want this rules works anywhere and independent of any insert/update EVEN BY PROGRAM - use db.table._before_insert/update and so on (see http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer ) It's almost SQL-level, I wou

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Val K
Forget all what you've read there (joke) If you want this rules works anywhere and independent of any insert/update EVEN BY PROGRAM - use db.table._before_insert/update and so on (see http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer ) It's almost SQL-level, I wou

[web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Dave S
On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote: > > Forget all what you've read there (joke) > If you want this rules works anywhere and independent of any insert/update > EVEN BY PROGRAM - use db.table._before_insert/update and so on (see > http://www.web2py.com/books/default

Re: [web2py] Re: Field validatio with multiple columns

2015-08-13 Thread Валерий Кучеров
OK, thank you, Dave, I've corrected my post according to your helpful suggestions Dave S писал(а) в своём письме Thu, 13 Aug 2015 22:44:42 +0300: On Thursday, August 13, 2015 at 12:09:11 PM UTC-7, Val K wrote: Forget all what you've read there (joke) If you want this rules works any

[web2py] Re: Keep values with a list:string field?

2015-08-13 Thread Val K
Hello! Looks some terrible, but does what you want! Just paste in any controller and go to .../list_fld_keep_values_tst or you can preset list-values by URL('your_controller', ' list_fld_keep_values_tst', vars=dict(defs=['val_1','val_2','val_3'])) def list_fld_keep_values_tst(): frm=SQL

[web2py] Re: error with "list:reference table"

2015-08-13 Thread Val K
I try 'list:reference table' and it doesn't work at all ! (even DB-admin!) (2.12.1-stable+timestamp.2015.08.07.07.22.06 (Running on Rocket 1.2.6, Python 2.7.9)) - run from source on Win7x32 I got: isinstance() arg 2 must be a class, type, or tuple of classes and typesCode listing 263. 264

[web2py] Re: sessions piling up

2015-08-13 Thread Bob St John
On Monday, August 10, 2015 at 8:44:40 AM UTC-7, Massimo Di Pierro wrote: > > You seem to have an old version of session2strash.py. The new one only > uses self.expiration and not expiration. > > On Sunday, 9 August 2015 10:15:57 UTC-5, Bob St John wrote: >> >> Using 2.12.1 >> >> I run a small si

[web2py] pass javascript value into sqlform

2015-08-13 Thread 黄祥
hi, is it possible to pass javascript value into sqlform? ref: http://www.w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation_error i want to know user location when create or update delivery function, yet landing in w3schools provide it into javascript value, but don't know how to put

[web2py] Re: error with "list:reference table"

2015-08-13 Thread Michael Beller
That prevents the error but it does not render the references using the list:reference table _format method, they still appear as a list of id's, e.g., [4L, 15L, 9L] On Thursday, August 13, 2015 at 7:13:56 PM UTC-4, Val K wrote: > > I try 'list:reference table' and it doesn't work at all ! (eve

[web2py] Is there any alternative to Pythonanywhere hosting?

2015-08-13 Thread Joe
I am using Pythonanywhwere and having some problems. Can anyone recommend an other hosting for web2py apps where the support understands the web2py framework and they can actually fix problems when needed? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://githu

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-13 Thread JorgeH
what sort of problems are you having? I have used pythonanywhere for long time with no problems whatsoever. webfaction is an alternative. On Thursday, August 13, 2015 at 10:38:24 PM UTC-5, Joe wrote: > > I am using Pythonanywhwere and having some problems. Can anyone recommend > an other hostin

[web2py] Compute and requires

2015-08-13 Thread Cássio Botaro
Is there a wat to validate(with validators) if the computed permalink is unique? https://gist.github.com/cassiobotaro/0b763eda836ad4a3231f -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/we

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-13 Thread Joe
Thanks for your reply Jorge, I have been using Pythonanywhere for a long time as well, hosting 2 very simple web2py sites there with no problem. However, now I am trying to deploy a more complex app there and I have been experiencing some issues. I finally uploaded the app using sftp because th

[web2py] Re: Is there any alternative to Pythonanywhere hosting?

2015-08-13 Thread Annet
Hi Joe, I host my appliaction at Webfaction and had a similar issue, support advised me to set pool_size = 0 pool_size = 1 conflicted with a setting outside web2py. Kind regads, Annet -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py

[web2py] Re: error with "list:reference table"

2015-08-13 Thread Val K
may be there are any workaronds to prevent error and it is still in your code. -- 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 message

[web2py] A request to clean up install scripts...

2015-08-13 Thread Jason (spot) Brower
I have found that many of the scripts have the following issues: * They all seem to have their own opinion about how things should be install. From sources, repos, binaries etc * The scripts seem to have some version that run on the latests but some do not. It's important we declare the versio