[web2py] How organize double-inheritance in web2py

2016-01-27 Thread Georgy Silkly
I have 4 classes: Abonent, Person, Company and Provider. Person and Company are (sublasses of) Abonents, and Provider is (subclasses of) Company. In django I can write class Abonent(models.Model): passclass Person(Abonent): passclass Company(Abonent): passclass Provider(Company): pass how it

[web2py] Re: Validating an input manually added to auth.register() form?

2016-01-27 Thread Massimo Di Pierro
Something is wrong here. What are you trying to do? Add a field to registration form? Why not use auth.settings.extra_fields['auth_user'] = Field('f_zipcode', requires=IS_LENGTH(3,5)) On Wednesday, 27 January 2016 09:39:22 UTC-6, Spokes wrote: > > I've manually added a field to the

[web2py] Re: Login App engine

2016-01-27 Thread Charles tenorio
I do not know that. After I read your message, I tried to use but can not. you can pass an example? thank you Em terça-feira, 26 de janeiro de 2016 15:50:34 UTC-3, Charles tenorio escreveu: > > good afternoon I need your help in the app engine can not use part of the > web2py login when I

[web2py] extjs running on web2py

2016-01-27 Thread john sitjar
Good day sir's I would like to ask if we have a tutorial on how to run an extj s6 application using web2py.thanks, I hope for your reply -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] How to keep project separate from web2py itself?

2016-01-27 Thread Brendan Barnwell
I've recently begun looking at web2py. It looks very nice. However, one thing that seems strange to me is that it is apparently not set up to be installed. Rather, to "install" it you just copy the web2py files (or clone the repo) into a directory. That install then "knows" about all the

[web2py] extjs6 how to run using web2py

2016-01-27 Thread john sitjar
good day i would like to ask on how to run an extjs6 application using web2py,with the database connection on oracle? plz help tnx -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: web2py 2.13.3 is OUT

2016-01-27 Thread john sitjar
Good day sir I am new to web2py and extjs 6,I would like to ask if you have a tutorial on how to run an Extjs 6 app using web2py.thanks On Thursday, December 24, 2015 at 11:21:42 PM UTC+8, Massimo Di Pierro wrote: > > web2py 2.13.3 is out. MERRY CHRISTMAS EVERYBODY!!! > > It contains some bug

[web2py] Re: Duplicate entries in Auth_user DB table upon sign in

2016-01-27 Thread Massimo Di Pierro
Are you saying that fixes it? Please submit your patch to git and we will improve it if necessary. Thanks. On Tuesday, 26 January 2016 16:45:33 UTC-6, Michael M wrote: > > Ok, I inadvertently lied. > > Not everything was the same. Part of my install script is to download the > source from

[web2py] Re: manage rooms places

2016-01-27 Thread Massimo Di Pierro
It is french. No idea what it does. :-( On Wednesday, 27 January 2016 02:23:56 UTC-6, Laurent Lc wrote: > > Hi, > > Do you know if there is an existing app similar as grr ( > http://grr.devome.com/fr/) for web2py ? > thanks > -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: How organize double-inheritance in web2py

2016-01-27 Thread Massimo Di Pierro
db.define_table('abonent', Field('a')) db.define_table('person', db.abonet, Field('b')) # has a,b db.define_table('company', db.abonet, Field('c')) # has a,c db.define_table('provider', db.company, Field('d')) # has a,c,d On Wednesday, 27 January 2016 17:05:57 UTC-6, RekGRpth wrote: > > I have

[web2py] Re: web2py star rating

2016-01-27 Thread Ron Chatterjee
No but I found a work around. I know this is probably not the best way to do this but here is a way to do this without any javascript. #Without styling gives the value numerically db.define_table('my_table', Field('name', 'string', requires=[IS_NOT_EMPTY()]), Field('Rating',

[web2py] Re: How to keep project separate from web2py itself?

2016-01-27 Thread Massimo Di Pierro
Hello Brendan, there is not one solution to this problem. What is important is that there is one one web2py folder and one applications (plural) folder. Normally the latter is under the former but it does not have to be. Each application you run must be a subfolder of that one applications

[web2py] Re: Need method for authenticating on multiple fields

2016-01-27 Thread Massimo Di Pierro
You could use multi-tenancy http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Common-fields-and-multi-tenancy On Wednesday, 27 January 2016 17:05:57 UTC-6, Cody Landry wrote: > > > I'm working on a project using web2py and we'd like to use the built in > auth, however

[web2py] Edit layout of SQLFORM.grid (move Edit/View to left side of table)

2016-01-27 Thread Thomas Sitter
Hello, I'm looking to move the Edit/View buttons of SQLFORM.grid to the left side of the table. I'm not sure where I should be looking to modify this. As a further complication, only one of our clients wishes for this to happen so it would be a change which on affects only one view of our

Re: [web2py] Re: manage rooms places

2016-01-27 Thread Laurent Lc
Managing ressources (rooms,equipment and so on) Le 28 janv. 2016 12:09 AM, "Massimo Di Pierro" a écrit : > It is french. No idea what it does. :-( > > On Wednesday, 27 January 2016 02:23:56 UTC-6, Laurent Lc wrote: >> >> Hi, >> >> Do you know if there is an existing

[web2py] Re: Edit layout of SQLFORM.grid (move Edit/View to left side of table)

2016-01-27 Thread Anthony
SQLFORM.grid(..., buttons_placement='left') Anthony On Wednesday, January 27, 2016 at 9:18:16 PM UTC-5, Thomas Sitter wrote: > > Hello, > > I'm looking to move the Edit/View buttons of SQLFORM.grid to the left side > of the table. I'm not sure where I should be looking to modify this. > > As a

Re: [web2py] Re: Validating an input manually added to auth.register() form?

2016-01-27 Thread Martin Weissenboeck
I had the same problem: I want an extra field in the login form without an additional field in auth_user. Some months ago I wrote a proposal how to implement it, but I did not get any response. Here is the proposal again: A proposal to extend the register form and the login form The issue: I

[web2py] Where to find "old issues" that were in google code?

2016-01-27 Thread Dave
I am having an issue like what is described below. There was apparently a solution posted in the ticket, but I can't seem to find old tickets now that everything is over on github. Any advice? Here is a single-table snippet similar to what I am trying to do. Rather than deal with all the

[web2py] Re: web2py star rating

2016-01-27 Thread Massimo Di Pierro
did you put the script at the bottom of your html? If not, it gets executed before the HTML exists and you have to wrap it in a jQuery(function(){... }); On Tuesday, 26 January 2016 13:31:06 UTC-6, Ron Chatterjee wrote: > > I probably need to invoke that jQuery routine in my controllers. My

[web2py] Re: How to keep project separate from web2py itself?

2016-01-27 Thread Anthony
> This seems like a rather odd setup. With this setup, my application is > stored under the web2py directory tree. But I want to put my application > code in its own directory --- in particular, in its own repository. My > application's code should be handled separately from the code of

[web2py] manage rooms places

2016-01-27 Thread Laurent Lc
Hi, Do you know if there is an existing app similar as grr (http://grr.devome.com/fr/) for web2py ? thanks -- 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)

[web2py] Re: new free toys

2016-01-27 Thread stefaan
Interesting! -- 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] Validating an input manually added to auth.register() form?

2016-01-27 Thread Spokes
I've manually added a field to the auth.register() form, but validation is not performed for the field upon form submission. The code is as follows: def create_zipcode_field_for_register_form(): input_zipcode = INPUT(_class = 'span4 string', _name = 'f_zipcode', _id = 'f_zipcode',

[web2py] Re: Can we use a web2py app on Android mobile?

2016-01-27 Thread Ron Chatterjee
Any documentation of using Cordova or Kivy using a web2py app? Lets say the welcome app? may be we can put that in the slice then. I am looking at this slice post: http://www.web2pyslices.com/slice/show/1490/how-to-install-web2py-on-android-for-fun-without-rooting-the-device What if I have a

Re: [web2py] new free toys

2016-01-27 Thread Carlos Cesar Caballero Díaz
Great!! The autoinstaller is amazing, so simple and so good. Is python 3 compatible? PD: I will look at taskutils for my mail services microframework. El 27/01/16 a las 00:49, Massimo Di Pierro escribió: # a library to convert units and propagate errors in math

Re: [web2py] new free toys

2016-01-27 Thread Ron Chatterjee
Autoinstaller,... if I understand...its not web2py specific. But from source to run it for my python environment. Right? On Wednesday, January 27, 2016 at 10:55:28 AM UTC-5, Carlos Cesar Caballero wrote: > > Great!! > The autoinstaller is amazing, so simple and so good. Is python 3 >

[web2py] Re: How organize double-inheritance in web2py

2016-01-27 Thread RekGRpth
Thank You! And I found how to do that I want. I added support of 'native postgres inheritance' into web2py: ~/web2py/gluon/packages/dal/pydal/git diff diff --git a/pydal/adapters/base.py b/pydal/adapters/base.py index 94c6819..9ddfaad 100644 --- a/pydal/adapters/base.py +++

[web2py] Re: How to keep project separate from web2py itself?

2016-01-27 Thread Brendan Barnwell
Yes, I realize I can do that. The problem is that (if I understand right) unless I put it in the web2py folder, web2py won't know about it. I can symlink it (or directory-junction it, in windows), but that still seems quite awkward to me. I feel like it would make more sense if the

[web2py] Re: How to keep project separate from web2py itself?

2016-01-27 Thread Brendan Barnwell
Thanks. The "folder" option in options.py seems like a decent solution for the moment. However, if I understand right, it would still require me to move the existing applications (like admin) along with my own apps. Have you considered adding a feature to web2py to allow the directory for

[web2py] Re: Login App engine

2016-01-27 Thread Massimo Di Pierro
Are you using this? from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount auth.settings.login_form=GaeGoogleAccount() On Tuesday, 26 January 2016 12:50:34 UTC-6, Charles tenorio wrote: > >

[web2py] Re: web2py star rating

2016-01-27 Thread Ron Chatterjee
Doesn't it also can be worked as a radio button with Boolean if we know the value of that? And then apply the css rule for the display? On Tuesday, January 26, 2016 at 2:31:06 PM UTC-5, Ron Chatterjee wrote: > > I probably need to invoke that jQuery routine in my controllers. My table > is

[web2py] Re: Validating an input manually added to auth.register() form?

2016-01-27 Thread Spokes
Hi, Massimo. Yes, I'm trying to add an extra input field to the registration form. The above code does this successfully, with the exception of validation, which is not performed. If I'm not mistaken, the 'extra_fields' way of solving this problem will add an otherwise useless field to the

Re: [web2py] new free toys

2016-01-27 Thread Manuele Pesenti
Il 27/01/16 06:49, Massimo Di Pierro ha scritto: > # a library to convert units and propagate errors in math > https://github.com/mdipierro/buckingham > > > # a library to automatically install modules when imported >

[web2py] Re: ondelete=CASCADE

2016-01-27 Thread Niphlod
primary keys are primary keys. their only purpose is to be as small as possible while uniquely identifiyng a row, with the added bonus of being ordered. if you need strict sequential ordering, use another field. On Wednesday, January 27, 2016 at 12:49:09 PM UTC+1, Pierre wrote: > > Hi everyone

[web2py] ondelete=CASCADE

2016-01-27 Thread Pierre
Hi everyone The default behaviour will result in irregular primary-key sequence like : (1,2,3,6,7,8,12,13,14,20,23...etc) also It seems impossible to retrograde the 'automat-id-counter' like : db.table.insert(id=5,field=value) eventhough there's no record with id=5 so is it ok to let

[web2py] Re: ubuntu vmware uwsgi

2016-01-27 Thread Niphlod
something doesn't add up. if you followed the book you'd have uwsgi-emperor ^_^ On Tuesday, January 26, 2016 at 10:40:45 PM UTC+1, xmarx wrote: > > i have ubuntu on vmware. install this > ( >

[web2py] Re: web2py.app.booking.w2p??? Booking system??

2016-01-27 Thread Laurent Lc
di you get it ? I am interested Le mercredi 26 octobre 2011 21:19:40 UTC+2, Ismael Serratos a écrit : > > Hi! Everybody!! I've been looking for a good booking system example, I > found the web2py.app.booking.w2p app, but the link is not working. > How could I get it?? Is there any good