Re: [web2py] Re: web2py website error with Chinese user

2014-10-30 Thread Gael Princivalle
Thanks to all for our answers. I've check with other Chinese users if they have some problems to login and everything's ok. So certainly the user that don't reach to load CSS files have a specific problem on his computer. Il giorno venerdì 24 ottobre 2014 21:48:43 UTC+2, Dave S ha scritto: > >

[web2py] Re: Ractive example

2014-10-30 Thread Richard D
Leonel, Richard, Thank you for your support :) The big disturbing factor for me was the wrong Ractive.js I took the first I saw, but that is the development code starting with the imports etc Dive into the release and take ractive.js there. Richard Dijkstra p.s. Trying to use Richard D for no

[web2py] define_table does not create table in database

2014-10-30 Thread Daniel Gonzalez
I am running `define_tables` in the recommended way: db = DAL('postgres://user:@localhost:5432/mydb', migrate_enabled=False, auto_import=False, lazy_tables=True) db.define_table('auth_user', Field('email', unique=True), Field('password', length=512, type='password', re

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Leonel Câmara
Well the tables are lazy, but that shouldn't cause your problem because once you use them they really get defined. May I ask why you are defining your own user table instead of using auth.define_tables()? Anyway, your problem is caused by migrate_enabled=False. -- Resources: - http://web2py.co

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Daniel Gonzalez
Thanks for your reply, Migrate is not the problem: it does not matter if I do migrate_enabled=False or migrate_enabled=True. Besides, there is no table to migrate. That is the whole problem: define_table does not create the table! I am doing my own define_table because I have need to trigger so

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Daniel Gonzalez
One more thing: you mention tables are lazy, but the documentation says they are lazy only whenever DAL(...,lazy_tables=True) is set (DAL documentation ) Which one is right? -- Resources: - http

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Leonel Câmara
Well lazy_tables=True is the default. I am doing my own define_table because I have need to trigger some other > code whenever new users are created (not shown here) Well you don't need to do that because you can append a function to db.auth_user._after_insert or to auth.settings.register_ona

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Anthony
See my response on Stack Overflow: http://stackoverflow.com/a/26651810/440323 > Migrate is not the problem: it does not matter if I do > migrate_enabled=False or migrate_enabled=True. > Besides, there is no table to migrate. That is the whole problem: > define_table does not create the table!

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 7:41:07 AM UTC-4, Leonel Câmara wrote: > > Well lazy_tables=True is the default. > Actually, it does default to False, but that's not the issue here. Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2

[web2py] Re: Kendo UI

2014-10-30 Thread Richard D
Trying the start of Kendo runs me into a jQuery issue. The followoing code has difficulties understanding jQuery(".myButton").kendoButton(); Edit Delete Add jQuery(function(){ jQuery(".myButton").kendoButton(); }); jQuery(document).ready(function() { console.log('ok')}

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Daniel Gonzalez
Getting closer to identifying my problem. It seems I am having several problems at once. First, it seems that migrate_enabled=False prevents not only migrations, but also table creation (am I right here?) Second: while trying to guess the problems with my application, I am using the test scr

[web2py] Re: Kendo UI

2014-10-30 Thread Ron McOuat
Since AngularJS came up in this thread, I thought I would point to this article. Not to be off topic, but there are some users here of this package and this is information that will have to be considered by them moving forward. http://jaxenter.com/angular-2-0-announcement-backfires-112127.html

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Daniel Gonzalez
I have solved my problem. I was not properly reusing the db (DAL object) in my library. Instead, a new DAL connection was being created in some cases. Therefore, even though the tables were defined at the pyhton level, auth was not really aware of it, and was trying to redefine them. Facit: mak

[web2py] Re: Kendo UI

2014-10-30 Thread Leonel Câmara
Frankly I considered Angular 1.0 a horrible framework that appeared to have been created by crazy java developers (yes java not javascript). I don't know why the hell people used it. Angular 2.0 seems to have other problems to me, like making you learn yet another stupid language. -- Resources

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 11:29:26 AM UTC-4, Daniel Gonzalez wrote: > > First, it seems that migrate_enabled=False prevents not only migrations, > but also table creation (am I right here?) > Yes, as mentioned earlier and described in the documentation: http://web2py.com/books/default/chapte

[web2py] Re: define_table does not create table in database

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 12:38:35 PM UTC-4, Daniel Gonzalez wrote: > > I have solved my problem. I was not properly reusing the db (DAL object) > in my library. Instead, a new DAL connection was being created in some > cases. Therefore, even though the tables were defined at the pyhton leve

[web2py] Re: Kendo UI

2014-10-30 Thread Richard D
After a day struggeling and finding Kendo and Angular too much connected, and we need the layout functionality the most, we go for jqxwidgets! Richard D On Thursday, October 30, 2014 5:41:22 PM UTC+1, Leonel Câmara wrote: > > Frankly I considered Angular 1.0 a horrible framework that appeared to

[web2py] Re: DAL upper() in SQL Server

2014-10-30 Thread José Eloy
Thanks Leonel for your answer. Finally I resolved this using the python's upper() method apply to the variables before to save the record. Thanks anyway. Regards. El martes, 28 de octubre de 2014 12:36:23 UTC-6, José Eloy escribió: > > Hello! > > How can I to save fields in uppercase mode usin

[web2py] SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
Hi! I have a SQLFORM.factory that define a SELECT. I want multiple=False, but is it not working. I can select one o more elements. Code: 1.form = SQLFORM.factory( 2.Field('numero', requires=IS_NOT_EMPTY()), 3.Field('fecha', 'datetime', requires=IS_NOT_EMPTY(

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
You have explicitly specified the "multiple" widget for this field, so the validator has no effect on the widget. You should instead use the "options" widget. Anthony On Thursday, October 30, 2014 2:41:04 PM UTC-4, José Eloy wrote: > > Hi! > > I have a SQLFORM.factory that define a SELECT. I wa

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
Thanks Anthony But if I use options I get a dropdown combo, instead I want a SELECT. Is this possible? Regards -- 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 Issue

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 3:08:13 PM UTC-4, José Eloy wrote: > > Thanks Anthony > > But if I use options I get a dropdown combo, instead I want a SELECT. Is > this possible? > Not sure what you mean. With "options", you should get a dropdown that allows you to select a single option. Both "o

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
Anthony With options I mean SQLFORM.widgets.options.widget. I checked and discovered that using either SQLFORM.widgets.options.widget or SQLFORM.widgets.multiple.widget I get an html select element. My question is how to create a SELECT (no dropdown) with multiple=False. I want to select only

[web2py] Re: Format specification for chained one to many

2014-10-30 Thread Anthony
> # Road table, some winding roads are both street and avenue > db.define_table('road', > Field('name', 'string', length=32, unique=True, required=True, > notnull=True, label='Road Name'), > Field('is_street', 'boolean', default=False), > Field('is_avenue', 'boolean', default=False),

[web2py] Re: Notes on IIS configuration for web2py

2014-10-30 Thread Derek
It's definitely possible. And yes, you can run it without IIS, just if you want to configure Kerberos authentication using secure windows credentials (because of corporate IT policies), you kind of need it behind iis. On Wednesday, October 29, 2014 12:51:51 PM UTC-7, Niphlod wrote: > > > > On We

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Anthony
On Thursday, October 30, 2014 3:34:02 PM UTC-4, José Eloy wrote: > > Anthony > > With options I mean SQLFORM.widgets.options.widget. I checked and > discovered that using either SQLFORM.widgets.options.widget or > SQLFORM.widgets.multiple.widget I get an html select element. My question > is how

[web2py] Re: Notes on IIS configuration for web2py

2014-10-30 Thread Niphlod
my point is different: you can't complain about the script not working if you haven't an existing python setup that lets your app run in web2py. Once you have it running "in standalone mode", the script will put it behind iis. On Thursday, October 30, 2014 8:45:31 PM UTC+1, Derek wrote: > > It'

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread José Eloy
(SOLVED) Anthony: Thanks for your ideas. Finally I solved this: Code: 1. form = SQLFORM.factory( 2.Field('numero', requires=IS_NOT_EMPTY()), 3.Field('fecha', 'datetime', requires=IS_NOT_EMPTY()), 4.Field('gasto', requires= IS_IN_SET(gastos_list,

[web2py] Re: SQLFORM.factory --> select multiple=False doesn't work

2014-10-30 Thread Niphlod
> > Why I need a combobox with multiple=False?, Well, is for aesthetics. > > although misleading. "select one choice amongst multiple items" is usually: - a select box --> when items are a lot - radio buttons --> when items are a few -- Resources: - http://web2py.com - http://web2py.com/book (

[web2py] Re: web2py meetup with Massimo in north Bay Area

2014-10-30 Thread Larry Weinberg
Any Update on finalizing this date? On Tuesday, September 23, 2014 9:04:07 AM UTC-7, weheh wrote: > > Massimo can not commit to a date yet, but his best guess is December 5. > Pencil it into your calendar please: Friday December 5, 6PM to 9PM. > Location, Berkeley CA. THIS IS AN ESTIMATE ONLY AN