[web2py] Re: custom auth table on separate file not in db.py

2013-02-15 Thread 黄祥
thank you very much for your detail explaination, lightdot. it makes me clear right now. is that hard way is same like build minimalist web2py ( http://web2py.com/books/default/chapter/29/14#Building-a-minimalist-web2py) or it just pure build it from scratch? i'm usually create the application t

[web2py] Re: custom auth table on separate file not in db.py

2013-02-15 Thread LightDot
I'd say that common work flow when creating new web2py applications is: - create a new application trough admin. Name it for example "init" (if you want it to be the default, without touching the routes) or something else - edit it, either trough admin's embedded editor or by other means - once y

[web2py] Re: custom auth table on separate file not in db.py

2013-02-15 Thread 黄祥
thank you so much for your detail explaination anthony. i understand now, so that i'm just focus on the created the layout.html and created layout_custom.html for example which is often update when the new vesion is arrive. -- --- You received this message because you are subscribed to the Go

[web2py] Re: custom auth table on separate file not in db.py

2013-02-15 Thread Anthony
> > when upgrade to the new version, web2py will updated the scaffolding that > generated by default (like db.py, menu.py, default.py, layout.html, css, > etc), isn't it? Well, it won't actually update your specific application files, which are just a copy of the "welcome" app (it will only u

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread 黄祥
hi anthony, when upgrade to the new version, web2py will updated the scaffolding that generated by default (like db.py, menu.py, default.py, layout.html, css, etc), isn't it? so to keep my code always can be run in the newer version, i'm trying to avoid to modify the default file. please correc

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread Anthony
May I ask why you are working so hard to avoid modifying the scaffolding application? It is intended to be modified -- it's really just an example app that you should customize to fit your specific needs. Anthony On Thursday, February 14, 2013 2:45:17 PM UTC-5, 黄祥 wrote: > > hi, > > is it possi

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread 黄祥
yeah, i've already read that part, and think about another possiblity. again, thank you for your detail explaination, Niphlod -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it,

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread Niphlod
On Thursday, February 14, 2013 10:10:08 PM UTC+1, 黄祥 wrote: > > hi Niphlod, > > thank you so much for your hints. > No problem, it's both a pleasure and an occasion to "refresh" topics > i've already read the book, and just curious, is the web2py support to > modified (alter) the auth table

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread 黄祥
hi Niphlod, thank you so much for your hints. i've already read the book, and just curious, is the web2py support to modified (alter) the auth tables after it's define. i've already do some experiment for it, but it didn't works, n i don't know the reason. yes, you right in term of auth table,

[web2py] Re: custom auth table on separate file not in db.py

2013-02-14 Thread Niphlod
to define a table you must have the auth object and the DAL connection executed before than your auth customizations. models are executed alphabetically. You need to respect this order 1. db = DAL() 2. from gluon.tools import Auth auth = Auth(db) 3. your customizations 4. auth