[web2py] Re: web2py and pylint

2014-12-09 Thread Massimo Di Pierro
perhaps we should include this in script? On Tuesday, 9 December 2014 09:28:08 UTC-6, flagist0 wrote: > > Hello! > Yes, it is a known issue and there is a pylint plugin to fix it: > https://github.com/dsludwig/pylint-web2py > The problem with it is that it relies on old Pylint API, so it doesn't

[web2py] Re: AttributeError: 'Table' object has no attribute 'q_type'

2014-12-09 Thread Dave S
On Tuesday, December 9, 2014 1:13:06 PM UTC-8, Michael Howard wrote: > > Hi everyone, > I am an undergrad at UCSC taking a web development course taught in > web2py. I am working on a quarter long project that is a very watered down > version of SurveyMonkey where a user can create surveys and

[web2py] migrate and fake_migrate

2014-12-09 Thread Jose
Hi Versión 2.9.11-stable+timestamp.2014.09.15.23.35.11 (Ejecutando en Rocket 1.2.6, Python 2.7.8) I have the following: db = DAL('postgres://usr:psw@localhost/mi_db', pool_size=10, check_reserved=['all']) db.define_table('mi_tabla', Field('f1', 'integer'), Field('f2', 'integ

Re: [web2py] Re: pythonanywhere now supports postgres

2014-12-09 Thread Massimo Di Pierro
they all do by pythonanywhere and google appengine have a special place in our heart because their support for python, managed vm support, and scalability features. Massimo On Tuesday, 9 December 2014 11:17:45 UTC-6, Ramos wrote: > > webfaction also supports postgres > > 2014-12-09 2:33 GMT+00:

[web2py] Re: web2py and pylint

2014-12-09 Thread flagist0
Hello! Yes, it is a known issue and there is a pylint plugin to fix it: https://github.com/dsludwig/pylint-web2py The problem with it is that it relies on old Pylint API, so it doesn't work after version of 1.0 I updated it to support new Pylint (Astroid) API and added ability to find web2py mo

[web2py] AttributeError: 'Table' object has no attribute 'q_type'

2014-12-09 Thread Michael Howard
Hi everyone, I am an undergrad at UCSC taking a web development course taught in web2py. I am working on a quarter long project that is a very watered down version of SurveyMonkey where a user can create surveys and have other people take them. I seem to be having trouble with referencing a tabl

[web2py] SQLFORM - best method for hide fields and set default values

2014-12-09 Thread Pavel Obr
Hi, I'm new in web2py and I'm bulding apps for students registrations on school events. Exists better method for setting ALL default values in fields and hide them ALL in SQLFORM? I do not make it in table definition as I need table for other form. Thanks My definition: def view_event():

Re: [web2py] Re: Getting Log details

2014-12-09 Thread Niphlod
there are two kind of logs. "every request gets traced here" --> httpserver.log mimics apache's access.log when using the builtin webserver. of course when running on apache httpsever.log isn't needed web2py and application logging --> logging.conf and logging (python module) calls... this will

Re: [web2py] Get a Web2py cloud instance in less than 30 seconds

2014-12-09 Thread Pystar
my On Tuesday, December 9, 2014 11:28:38 PM UTC+1, Niphlod wrote: > > checking isn't needed. if you want to access admin is either through https > or http on localhost. > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code)

Re: [web2py] Get a Web2py cloud instance in less than 30 seconds

2014-12-09 Thread Niphlod
checking isn't needed. if you want to access admin is either through https or http on localhost. -- 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 rece

Re: [web2py] How to use DAL with effective dated queries

2014-12-09 Thread Niphlod
clean api is on DAL's side. Whenever a T-SQL query is easier to write (and read) than python code, exposing an harder-to-code-and-to-look-at python API is kinda a dealbreaker. On Tuesday, December 9, 2014 8:24:30 AM UTC+1, Remco Boerma wrote: > > Thanks, i'll checkout the lateral joins. :) >

[web2py] Re: are expired session files deleted automatically?

2014-12-09 Thread Niphlod
linux filesystem were never an issue. the issue is noticeable only on fat32 and ntfs when a single folder holds > 10k files. and yes, splitting to folders is now a default, where previously you would have needed to set it explicitely. On Tuesday, December 9, 2014 10:20:09 AM UTC+1, Robin Manoli

Re: [web2py] Get a Web2py cloud instance in less than 30 seconds

2014-12-09 Thread Pystar
I just gave terminal.com a spin and for all whims and purposes it worked as described until I tried accessing the admin page and I got this error: "Admin is disabled because insecure channel" This is the link I accessed "http://[my username]-8000.terminal.com/admin/default/index" Kindly check

[web2py] Re: My first web project

2014-12-09 Thread Pystar
Hello, Have you written any code at all? Show what you have written then people would chip in to smoothen out any chinks in your implementation. On Tuesday, December 9, 2014 1:14:47 AM UTC+1, Adrian Aurel Chiriac wrote: > > Hello! > > I'm taking my introduction to programming class (Python) and

[web2py] Re: How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-09 Thread Limedrop
Hi there, The issue you have is that you are mixing a fully normalized solution and the web2py "short-cut". In the table you have defined db.component_package_association.component_id as a single integer, but the validator is giving the field multiple values. The easy option is to delete the

[web2py] Re: 2 factor auth doesn't seem to take effect.

2014-12-09 Thread pn
I just tested and it works fine except it seems that the documentation in the book is incorrect. You must add this line to db.py (or in whatever file you define the auth and set auth.settings); auth.settings.two_factor_authentication_group = 'web2py Two-Step Authentication' Other things to no

[web2py] Re: 2 factor auth doesn't seem to take effect.

2014-12-09 Thread pn
I contributed this originally, will take a look today. Should be an easy fix. On Monday, December 8, 2014 9:27:35 PM UTC-5, Massimo Di Pierro wrote: > > Honestly I have not used this much myself recently. Please open a ticket > about this problem. It may be broken. > v > > On Friday, 5 December

Re: [web2py] Re: pythonanywhere now supports postgres

2014-12-09 Thread Ovidio Marinho
I think this was the best news of the year for pythonanywhere users. -- 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 because you

Re: [web2py] Re: pythonanywhere now supports postgres

2014-12-09 Thread António Ramos
webfaction also supports postgres 2014-12-09 2:33 GMT+00:00 Massimo Di Pierro : > this is great news. > > > On Monday, 8 December 2014 17:59:47 UTC-6, Alex Glaros wrote: >> >> http://blog.pythonanywhere.com/ > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > -

[web2py] How to fix 'list' TypeError with many-to-many SQLFORM.factory and multiple=True?

2014-12-09 Thread Jan Beilicke
Hi everybody, since a couple of days I am trying to implement a *normalized many-to-many model* that can be managed using a single form consisting of a couple of fields from one table and a multiple select drop-down list containing references to an intersection table. My problem is an excepti

[web2py] Re: 2.9.11 / cache / WindowsError [Error 123]

2014-12-09 Thread Massimo Di Pierro
Let's move this to the developers list. Ok but I would simplify. How about we make a whitelist instead of a blacklist? Also the fix as proposed can create key conflicts. How about we simply make the key = re.compile('\W+').sub('-',key)+'-'+hashlib.md5(key).hexdigest() On Tuesday, 9 December 2

[web2py] Re: Postgresql case sensitive field

2014-12-09 Thread Paolo Valleri
try to set ignore_field_case and entity_quoting to True., see http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Database-quoting-and-case-settings--entity_quoting--ignore_field- Paolo On Tuesday, December 9, 2014 2:58:05 PM UTC+1, Leonardo Silvano wrote: > > > I have

[web2py] a radio.widgets can be used in a show_if condition ?

2014-12-09 Thread ATeo
hi, I have problems with show_if and radio.widgets it would seem that a field whit widget = SQLFORM.widgets.radio.widget can not be used in a show_if condition. in the following code, db.t_sezioneii.d0102=='1' not work but db.t_sezioneii.d0104=='3' is ok there is a bug or i make something wrong

[web2py] Postgresql case sensitive field

2014-12-09 Thread Leonardo Silvano
I have a legacy table, and it has some uppercases letters, so in the select the field must be wrapped in ". Something like SELECT table."fielD" from table... Is there any way filter any select that web2py does and wrap any field or table with uppercase letter around "? -- Resources: - http:/

[web2py] Re: 2.9.11 / cache / WindowsError [Error 123]

2014-12-09 Thread Leonel Câmara
The fix for this could be relatively straightforward you would replace invalid chars in the key. For instance in cache.py > CacheOnDisk > PersistentStorage you could have something like this in the __init__ self.invalid_chars_regex = re.compile(r"""[\\ / \: \* \? "\< \> |]+""") Then you could a

[web2py] Re: are expired session files deleted automatically?

2014-12-09 Thread Robin Manoli
what about on linux filesystems? also, isn't folders the default in later web2py? Den söndagen den 30:e november 2014 kl. 13:39:34 UTC+1 skrev Niphlod: > > folders do not create a "performance" issue on ntfs. if you want to keep > it clean for aestethical reasons, do it with another step in your