[web2py] Re: web2py multiple records in 1 form or in wizard

2014-02-08 Thread Davy Jacops
Massimo Thank you for your suggestion. In fact the code suggested gives an error: SyntaxError: Object exists and cannot be redefined: PersonName But your hint pointed me in the right direction. The following works: def reserve(): form = SQLFORM(db.reservations) *

Re: [web2py] heads up if you localized your app and upgrade to version 2.8.2+

2014-02-08 Thread step
I think we are talking about the same messages. When you wrote that [gluon] messages are customizable via the API and translatable I thought you were describing something more than the process of grabbing all T(x)s in gluon code and entering a translation for each x in file

Re: [web2py] heads up if you localized your app and upgrade to version 2.8.2+

2014-02-08 Thread Anthony
I think we are talking about the same messages. When you wrote that [gluon] messages are customizable via the API and translatable I thought you were describing something more than the process of grabbing all T(x)s in gluon code and entering a translation for each x in file

[web2py] apache config static files, discrepancy in book?

2014-02-08 Thread Tim Richardson
There is different guidance in the book for Apache static file configuration in the Linux and Windows section. The Linux section is identical to the guidance on the mod_wsgi site: Use Alias and Directory like so: AliasMatch ^/([^/]+)/static/(.*) /users/www-data/web2py/applications/$1/ static/$2

[web2py] Re: binary(1024) field truncates to 255

2014-02-08 Thread Oleg Marin
I'm sorry for long silence, I was busy. I solved my problem. At first, I didn't specified TDS version in connection string. Then I found that connection string at least for mssql not fully URI-compliant, multiple parameters after question sign separating by ; instead of . I think it needs to

[web2py] Installing web2py

2014-02-08 Thread Timo Bahner
Chromebook user here. Install linux besides ChromeOS and use web2py easily: http://www.howtogeek.com/162120/how-to-install-ubuntu-linux-on-your-chromebook-with-crouton/ -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: SQLFORM.grid, how to edit non-visible field in the onvalidate function?

2014-02-08 Thread A36_Marty
Thanks for your help LightDot. It's nice to be pointed in direction after several days of getting nothing done. One question on hidden fields that I'm missing -- as I have everything working except for hiding the field from the user. Model db.define_table('table',

[web2py] Re: Dreamhost deployment

2014-02-08 Thread sasogeek
Shared hosting -- 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 are subscribed to the Google Groups web2py-users

[web2py] Re: SQLFORM.grid, how to edit non-visible field in the onvalidate function?

2014-02-08 Thread Larry Weinberg
will one of these work? form.element('input',_name=field_hidden)['_type'] = hidden form.element('input[name=field_hidden]')['_type'] = hidden -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: Dreamhost deployment

2014-02-08 Thread NeoToren
If you want to deploy quickly and pain free - try PythonAnywhere. I just deployed there recently and the whole process took literally minutes. Web2Py (and MySQL) are already installed there and wait for you as consoles. So you have the familiar W2P interface waiting for you to work in the cloud

[web2py] Show items i created only on form reference fields.

2014-02-08 Thread Avi A
Hi, Assuming different users are adding projects to the t_projects table which is a referenced field in t_tests table as below: db.define_table('t_tests', Field('f_test_name', type='string', label=T('Test Name')), Field('f_test_project', type='reference t_projects', ..

[web2py] pg8000 strange errors

2014-02-08 Thread puercoespin
Yes, may be its a little strange, but when google bot try to spider my web, my web downs, with a three differents pg8000 errors: InternalError: Unexpected response msg gluon.contrib.pg8000.protocol.CloseComplete object at 0x1553ed90 ... InternalError: Unexpected response msg

Re: [web2py] pg8000 strange errors

2014-02-08 Thread Mariano Reingart
For production, a better option psycopg2 postgresql connector. pg8000 is more oriented to development and special situations (i.e. when you cannot install compiled c extensions) There is a new official pg8000 version with some improvements, please see: https://github.com/mfenniak/pg8000 Let me

[web2py] Re: only one session/login per user?

2014-02-08 Thread DeanK
Thanks Anthony. I think I like the sound of your last suggestion. I'm going to try that one out. On Tuesday, February 4, 2014 10:16:46 AM UTC-5, Anthony wrote: Note, this can be tricky. It is difficult to explicitly log out a user in one session based on a login within a different session.

Re: [web2py] Setting DAL less strict from a model

2014-02-08 Thread Rene Dohmen
Hi, Just checked with trunk Version 2.8.2-stable+timestamp.2014.01.30.08.43.19 and entity_quoting=True in the DAL connection string; Then it works. (but I still have to remove the check_reserved from the DB connection URI) I really would like to build/release a .w2p/plugin that doesn't

[web2py] Re: Show items i created only on form reference fields.

2014-02-08 Thread Anthony
Assuming different users are adding projects to the t_projects table which is a referenced field in t_tests table as below: db.define_table('t_tests', Field('f_test_name', type='string', label=T('Test Name')), Field('f_test_project', type='reference t_projects',

[web2py] Re: Show items i created only on form reference fields.

2014-02-08 Thread Avi A
great thanks. On Sunday, February 9, 2014 3:47:44 AM UTC+2, Anthony wrote: Assuming different users are adding projects to the t_projects table which is a referenced field in t_tests table as below: db.define_table('t_tests', Field('f_test_name', type='string', label=T('Test

[web2py] web2py and prepared statements

2014-02-08 Thread Jayadevan M
When web2py is used with PostgreSQL and psycopg2, are prepared statements sent to the database or the statements will go through the parse/analysis step for each user/call? http://www.postgresql.org/docs/9.2/static/sql-prepare.html -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: SQLFORM.grid, how to edit non-visible field in the onvalidate function?

2014-02-08 Thread A36_Marty
Made some progress -- got a the field not showing to user yet visible in the onvalidation function. Now, a new problem. When I change the value of the hidden field in the onvalidate function, it doesn't get written to the database. The value remains whatever was passed as the default in the