[web2py] Re: Deploy with postgresql

2016-12-27 Thread Mark Graves
Hopefully this is solved, but a simple test is to use the original appconfig.ini with storage.sqlite as the connection string. That will tell you if it is a syntax problem, at least. -Mark On Monday, December 26, 2016 at 7:08:23 PM UTC-6, Ben Lawrence wrote: > > seems to be an appconfig probl

Re: [web2py] Re: get a file path instead retrieving it

2016-12-27 Thread Manuele Pesenti
Il 27/12/16 17:22, Anthony ha scritto: > I'm not sure it's considered part of the public API (it's not in the > book), but you can do: > > | > filepath > =db.mytable.myupload.retrieve_file_properties(row.myupload)['path'] > | > > The returned dictionary also includes a "filename" key, which holds >

[web2py] Re: get a file path instead retrieving it

2016-12-27 Thread Anthony
I'm not sure it's considered part of the public API (it's not in the book), but you can do: filepath = db.mytable.myupload.retrieve_file_properties(row.myupload)['path' ] The returned dictionary also includes a "filename" key, which holds the decoded (i.e., original) filename. More generally,

[web2py] get a file path instead retrieving it

2016-12-27 Thread Manuele Pesenti
Hi! Other than the methods "store" and "retrieve" of a field is there a programmatic way to get from a row just the path where a file is stored on the filesystem (expecially when uploadseparate option is set to True)? Thank you very much Manuele -- Resources: - http://web2py.com - http://

[web2py] Re: URL (controller function) call with authentication

2016-12-27 Thread Anthony
On Tuesday, December 27, 2016 at 8:33:09 AM UTC-5, Aydin wrote: > > I am trying to call a a function externally. I have a function: > @auth.requires_login() > @service.json > def func(a): > db.table1.insert(data1=a) > db.commit() > return locals() > > This has two problems: 1) When

[web2py] Re: URL (controller function) call with authentication

2016-12-27 Thread Anthony
On Tuesday, December 27, 2016 at 8:33:09 AM UTC-5, Aydin wrote: > > I am trying to call a a function externally. I have a function: > @auth.requires_login() > @service.json > def func(a): > db.table1.insert(data1=a) > db.commit() > return locals() > > This has two problems: 1) When

[web2py] URL (controller function) call with authentication

2016-12-27 Thread Aydin
I am trying to call a a function externally. I have a function: @auth.requires_login() @service.json def func(a): db.table1.insert(data1=a) db.commit() return locals() This has two problems: 1) When I use urllib2.urlopen("https://www.example.com/default/call/func.json/2) which do

[web2py] Re: Layout and CSS

2016-12-27 Thread Marlysson Silva
Yes it possible. Description of files: - bootstrap.min.css - already known - calendar.css - to styling native calendar component of web2py - web2py-bootstrap.min.css - I think that it a old version from web2py.css - web2py.css - styling component's web2py ( as flash messages , grid component , s

[web2py] Re: Layout and CSS

2016-12-27 Thread Andrea Fae'
It's impossible to modify this... for example...bootstrap.min.css... djust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){disp