Re: [web2py] Re: Partial flush of request

2016-10-01 Thread Anthony
On Saturday, October 1, 2016 at 4:19:59 PM UTC-4, Luis Valladares wrote: > > They expire, when I generate a new token I store it in the database and > send to the user browser, each time the token is expired I generate a new > one, overwrite the token in the database (and because this the other

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-10-01 Thread 黄祥
sorry, my bad, i missed the step 5, it more simple, just modify the layout.html *views/layout.html* {{ #string_representation = "%(first_name)s" #string_representation = "%(last_name)s" #string_representation = "%(first_name)s %(last_name)s"

[web2py] Re: SQLFORM key error on simple table with one record

2016-10-01 Thread Peter
Never stop asking me to post anything Anthony! format='%(invoice_number)s - %(company)s - %(status)s - %(date)s') changed to format='%(invoice_number)s - %(company)s - %(status)s - %(issue_date)s') problem sorted! I must have looked at that table a dozen times and had, at least

[web2py] Re: SQLFORM key error on simple table with one record

2016-10-01 Thread Peter
If there is anything stupid here Anthony, please remember I am a novice at this! db.define_table('invoice', Field( 'invoice_number' , 'integer' , writable=False), Field( 'company' , writable=False), Field( 'amount' , 'decimal(6,2)' , writable=False), Field(

Re: [web2py] Re: Partial flush of request

2016-10-01 Thread Luis Valladares
They expire, when I generate a new token I store it in the database and send to the user browser, each time the token is expired I generate a new one, overwrite the token in the database (and because this the other token is lost) and sent to the user. But that's not really my problem (maybe I

Re: [web2py] Re: A simple request for the "so old and so good admin"

2016-10-01 Thread António Ramos
Thanks , as always... 2016-10-01 19:05 GMT+01:00 Anthony : > If you want to do it using the /appadmin/manage functionality, you can add > something like the following to a model file: > > def make_clone_link(r): > tablename = request.args(2) > index =

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-10-01 Thread Anthony
On Friday, September 30, 2016 at 5:36:26 PM UTC-4, 黄祥 wrote: > > thank you so much marlysson for detail explaination. > i change it in gluon/tools.py > around line 2004 > if user_identifier is DEFAULT: > #user_identifier = '%(first_name)s' >

[web2py] Re: Partial flush of request

2016-10-01 Thread Anthony
On Saturday, October 1, 2016 at 9:52:18 AM UTC-4, luis.vallada...@metamaxzone.com wrote: > > Hello! > > Im creating a website with a microservices architecture, and for > authentication i'm using JWT token stored in the cookies, this tokens are > automatically renewed each 5 minutes, the basic

[web2py] Re: A simple request for the "so old and so good admin"

2016-10-01 Thread Anthony
If you want to do it using the /appadmin/manage functionality, you can add something like the following to a model file: def make_clone_link(r): tablename = request.args(2) index = db.tables.index(tablename) return URL('appadmin', 'manage.load', args=['db', index, tablename, 'new',

Re: [web2py] A simple request for the "so old and so good admin"

2016-10-01 Thread Anthony
On Saturday, October 1, 2016 at 10:18:55 AM UTC-4, Manuele wrote: > > Il 30/09/16 19:47, António Ramos ha scritto: > > Hello, i would like to suggest the ability to duplicate a record in > > admin. > > > > It would make me happy :) > what about doing it in your web2py console with something

[web2py] Re: modify default scaffolding (welcome app) welcome user logged in (top right)

2016-10-01 Thread Marlysson Silva
So you are changing framework's default behavior , when you update latest version , likely your script inserted in tools.py will cleaned. The web2py give you ways to define it by parameters.. but.. Anyway you are welcome Em sexta-feira, 30 de setembro de 2016 18:36:26 UTC-3, 黄祥 escreveu: > >

Re: [web2py] A simple request for the "so old and so good admin"

2016-10-01 Thread Manuele Pesenti
Il 30/09/16 19:47, António Ramos ha scritto: > Hello, i would like to suggest the ability to duplicate a record in > admin. > > It would make me happy :) what about doing it in your web2py console with something like: db.table[0] = {k: v for k,v in db.table[id].iteritems() if k!='id'} M. >

[web2py] Partial flush of request

2016-10-01 Thread luis . valladares
Hello! Im creating a website with a microservices architecture, and for authentication i'm using JWT token stored in the cookies, this tokens are automatically renewed each 5 minutes, the basic flow of this is: 1 My front end makes a request to a microservice 2 The microservice check if the

[web2py] Re: SQLFORM key error on simple table with one record

2016-10-01 Thread Anthony
Let's see the table definitions for db.invoice and db.task. Anthony On Friday, September 30, 2016 at 8:42:22 PM UTC-4, Peter wrote: > > > ...you should just remove the version of pydal you have in the >> dist-packages folder on your system. >> > >- renamed the system installed dal directory

[web2py] Re: set individual action's transaction mode

2016-10-01 Thread Niphlod
a transaction is live from the first command you execute AFTER the first commit() or rollback(). Web2py automatically commit() at the end of a request, or rollback() in case an error occurred. Everything runs separated in each thread (which means every thread runs its own transaction) and -

[web2py] Re: Impersonate in Layers...

2016-10-01 Thread Joe Barnhart
Still looking for a reply for this message! C'mon, it's only been...what... 2-1/2 years?? Seriously. I was just looking at this again and thought to myself, "I remember asking that on web2py-user... I wonder if I missed the response?" Turns out I didn't! -- Joe On Thursday, April 17, 2014