[web2py] Re: web2py as Grafana endpoint

2016-12-05 Thread Dave S
On Friday, December 2, 2016 at 5:53:46 PM UTC-8, Dave S wrote: > > > > On Friday, December 2, 2016 at 12:10:55 PM UTC-8, Dave S wrote: >> >> >> >> On Thursday, December 1, 2016 at 12:15:50 AM UTC-8, Dave S wrote: >>> >>> >>> >>> On Monday, November 28, 2016 at 11:11:48 PM UTC-8, Dave S wrote:

[web2py] Re: Arbitrary args/kwargs with service?

2016-12-05 Thread Dave S
On Sunday, December 4, 2016 at 3:24:35 AM UTC-8, Leonel Câmara wrote: > > I'm using @request.restful for this instead of @service.json. Then just > return json using response.json. > @request.restful is dependent on your field definitions, no? It's not clear that that is what Brendan is

[web2py] Re: Moving from sqlite to postgresql - operator does not exist: integer = text

2016-12-05 Thread Niphlod
just check that all your columns where you do == have the same type. sqlite datatype handling is more resilient than standard, meaning that there is no strict type check. dunno how you migrated data from sqlite to postgresql but probably something doesn't match . -- Resources: -

Re: [web2py] Re: switch to python 3

2016-12-05 Thread Niphlod
m2crypto port for py3 are available (although not strictly official). The contrib module for x509 auth stands on it so, on py3, it MAY not work, but it's not web2py's fault (BTW, if you have an alternative, that works for py2 and py3 we'll be glad to adopt it) On Monday, December 5, 2016 at

[web2py] Re: admin interface

2016-12-05 Thread Niphlod
this is far clearer. If you want a single web2py instance to behave like that, you NEED to use routes.py, enabling/disabling routes to the admin app inspecting the hostname it's called in. OR, you can just short-circuit admin adding a model file (name it alphabetically so it gets executed

[web2py] Re: Javascript functions for Canvas not working

2016-12-05 Thread Niphlod
it'd be hardly an issue with bootstrap itself given bootstrap "share" among websites On Friday, December 2, 2016 at 9:38:09 PM UTC+1, Dave S wrote: > > > > On Friday, December 2, 2016 at 11:55:33 AM UTC-8, Brian M wrote: >> >> In case others have this sort of a problem where javascript events

[web2py] Re: Arbitrary args/kwargs with service?

2016-12-05 Thread Anthony
On Monday, December 5, 2016 at 2:20:59 PM UTC-5, Dave S wrote: > > > > On Sunday, December 4, 2016 at 3:24:35 AM UTC-8, Leonel Câmara wrote: >> >> I'm using @request.restful for this instead of @service.json. Then just >> return json using response.json. >> > > @request.restful is dependent on

[web2py] Re: Arbitrary args/kwargs with service?

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 12:03:15 PM UTC-8, Anthony wrote: > > On Monday, December 5, 2016 at 2:20:59 PM UTC-5, Dave S wrote: >> >> >> >> On Sunday, December 4, 2016 at 3:24:35 AM UTC-8, Leonel Câmara wrote: >>> >>> I'm using @request.restful for this instead of @service.json. Then just

[web2py] Re: Moving from sqlite to postgresql - operator does not exist: integer = text

2016-12-05 Thread António Ramos
this is the offending line steps=db((db.status.workflow==currentstep["status"]["workflow"])&(db.status.id==db.events.event)&(db.events.relatedto==uuid)&(db.events.doneat!=None)).select(limitby=(0,5),orderby=~db.events.doneat) 2016-12-05 18:29 GMT+00:00 António Ramos : >

[web2py] Re: Moving from sqlite to postgresql - operator does not exist: integer = text

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 10:30:37 AM UTC-8, Ramos wrote: > > this is the offending line > >

[web2py] Moving from sqlite to postgresql - operator does not exist: integer = text

2016-12-05 Thread António Ramos
Hello i have changed my app from sqlite to postgres... moved all data from sqlite to postgres and i get this error.. IT WAS WORKING ;) operator does not exist: integer = text LINE 1: ...nts WHERE status.workflow = 4) AND (status.id = events.e... ^ HINT: No operator matches the given name and

[web2py] Re: Is web2py good for e-shop that has up to 500 products?

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 11:11:01 AM UTC-8, Dave S wrote: > > On Monday, December 5, 2016 at 8:33:21 AM UTC-8, Justin Time wrote: >> >> Thanks for the answer, I will probably do it in that way. >>> >>> E-commerce is a solved problem, and given that your client is a jewelry >>> shop I

[web2py] Re: Is web2py good for e-shop that has up to 500 products?

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 8:33:21 AM UTC-8, Justin Time wrote: > > Thanks for the answer, I will probably do it in that way. >> >> E-commerce is a solved problem, and given that your client is a jewelry >> shop I doubt he will be needing the kind of custom made development where >> web2py

Re: [web2py] Re: https causes site to be in text

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 7:24:37 AM UTC-8, peter wrote: > > I was pretty stumped as to how to go about solving the problem, so the > support I got was great. > > Putting > > location ~* /(\w+)/static/ { > root /opt/web2py_apps/web2py/applications/; > } > > > in

[web2py] Re: Is web2py good for e-shop that has up to 500 products?

2016-12-05 Thread Justin Time
This is very helpful, thanks to everyone! -- 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

Re: [web2py] Show images and pdf online

2016-12-05 Thread Áureo Dias Neto
It's still downloading files... 2016-12-05 10:38 GMT-02:00 António Ramos : > i think this helps > > def download(): > return response.download(request,* db,attachment=False*) > > 2016-12-05 12:11 GMT+00:00 Áureo Dias Neto : > >> Hello guy's, >>

Re: [web2py] Show images and pdf online

2016-12-05 Thread Dave S
On Monday, December 5, 2016 at 3:56:39 PM UTC-8, Áureo Dias Neto wrote: > > It's still downloading files... > > Are you saying that a download request never terminates? Can you use your browser's developer tools to see what's happening in terms of requests-responses (as shown on the network

Re: [web2py] Show images and pdf online

2016-12-05 Thread Áureo Dias Neto
No, the function show pdf's online, but images, insiste to download it, i want to show it online 2016-12-06 0:19 GMT-02:00 Dave S : > On Monday, December 5, 2016 at 3:56:39 PM UTC-8, Áureo Dias Neto wrote: >> >> It's still downloading files... >> >> > Are you saying that a

Re: [web2py] Show images and pdf online

2016-12-05 Thread António Ramos
i think this helps def download(): return response.download(request,* db,attachment=False*) 2016-12-05 12:11 GMT+00:00 Áureo Dias Neto : > Hello guy's, > > I want to show uploaded photos and pdf's documments, to users, online > > Example, a page show thumbnails of

[web2py] Show images and pdf online

2016-12-05 Thread Áureo Dias Neto
Hello guy's, I want to show uploaded photos and pdf's documments, to users, online Example, a page show thumbnails of photos uploaded, and when user click on thumbnail, it open a full photo or pdf online -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Is web2py good for e-shop that has up to 500 products?

2016-12-05 Thread Leonel Câmara
> > I have this side job, jewelry shop, right now it has only 50 products to > sell, but will expand maybe to 300-500 in the future. My question is, is > this the right thing to do in web2py? Yes you could do it in web2py and it is fine. But I wouldn't. For that project you could easily

[web2py] Re: response.menu + HTML5 attributes

2016-12-05 Thread Anthony
See http://web2py.com/books/default/chapter/29/05/the-views#HTML-helpers, in particular: Notice that helper attributes are passed as keyword arguments to the helper. In some cases, however, attribute names include special characters that are not allowed in Python identifiers (e.g., hyphens)

Re: [web2py] Re: https causes site to be in text

2016-12-05 Thread peter
I was pretty stumped as to how to go about solving the problem, so the support I got was great. Putting location ~* /(\w+)/static/ { root /opt/web2py_apps/web2py/applications/; } in the 'listen 443' just as it is in the 'listen 80' section did indeed solve the

[web2py] Re: response.menu + HTML5 attributes

2016-12-05 Thread lyn2py
That worked!!! Fantastically. I tried .replace() and many more, but it didn't occur to me to try it this way! My gratitude, Anthony :) On Monday, December 5, 2016 at 11:51:48 PM UTC+8, Anthony wrote: > > See http://web2py.com/books/default/chapter/29/05/the-views#HTML-helpers, > in particular:

[web2py] Re: Is web2py good for e-shop that has up to 500 products?

2016-12-05 Thread Justin Time
Thanks for the answer, I will probably do it in that way. > > E-commerce is a solved problem, and given that your client is a jewelry > shop I doubt he will be needing the kind of custom made development where > web2py really shines at. Can you elaborate more on this? What kind of web