[web2py] Re: import_from_csv_file and id_map={}

2015-08-25 Thread Mark Li
Is id_map still necessary to preserver references when using import_form_csv_file function? I read this in the docs ( http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV--all-tables-at-once- ): "When importing, the new records will be appended to the database if it i

[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Thomas Sitter
This worked perfectly, thanks! On Tuesday, 25 August 2015 09:00:48 UTC-4, Jim S wrote: > > Here is what I do to put custom buttons on my grid view in SQLFORM.grid > > In my Controller: > > if not request.args(0) in ['view']: > details = False > links = [lambda row: getProductionDisplayAnchor(row

[web2py] Web2py Restfull API Token authentication

2015-08-25 Thread Stefan van den Eertwegh
Hi everyone, If i search on authentication for restfull API web2py i get basic auth as a result in google and google groups. Does anyone know how to use a token authentication for the Restfull service like db.auth_user.token ...? Thanks! -- Resources: - http://web2py.com - http://web2py.com/b

[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Jim S
Here is what I do to put custom buttons on my grid view in SQLFORM.grid In my Controller: if not request.args(0) in ['view']: details = False links = [lambda row: getProductionDisplayAnchor(row)] grid = SQLFORM.grid(query, fields=fields, orderby=orderby, left=left, create=create, details=de

[web2py] Re: populate form in view

2015-08-25 Thread Iancic Bogdan
sure form = SQLFORM(db.certificate_request).process() if form.accepted: response.flash = 'new CSR registered' redirect(URL('customerArea','index')) On Tuesday, August 25, 2015 at 2:51:27 PM UTC+2, Jim S wrote: > > Can we see the form definition from your controller? > > -Jim >

[web2py] Re: populate form in view

2015-08-25 Thread Jim S
Can we see the form definition from your controller? -Jim On Tuesday, August 25, 2015 at 7:16:49 AM UTC-5, Iancic Bogdan wrote: > > I want to populate a form, besides the input that the user inserts. > > This is the code from view: > > var MattsPublicKeyString = cryptico.publicKeyString

[web2py] populate form in view

2015-08-25 Thread Iancic Bogdan
I want to populate a form, besides the input that the user inserts. This is the code from view: var MattsPublicKeyString = cryptico.publicKeyString(MattsRSAkey); print("Matt's public key string:"); print(MattsPublicKeyString);

[web2py] Re: Add link to view a referenced table in SQLFORM.grid

2015-08-25 Thread Thomas Sitter
I have, but I run into two issues. 1) I do not know how to specify a query in a smartgrid. 2) The link brings me to a list of records, but this is a 1-to-1 relationship so it will always be unnecessary to display the list. On Tuesday, 25 August 2015 02:26:14 UTC-4, Anthony wrote: > > Have you c