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)
*
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
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
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
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
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)
-
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',
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
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)
-
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
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',
..
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
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
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.
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
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',
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
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
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
19 matches
Mail list logo