[web2py] What kind of application is web2py for designing and what kind of application it isn't as good?

2016-10-24 Thread Mike Stephenson
for example, you may compare chatting and other kinds. -- 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 subscribe

[web2py] What kind of application is web2py good for designing and what kind of application it isn't as good?

2016-10-24 Thread Mike Stephenson
for example, you may compare chatting and other kinds. -- 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 subscribe

[web2py] I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-09 Thread Mike Stephenson
I have totally messed up. Can you write the required snippet for me or share a helpful link? Thanks for the same. -- 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 Iss

[web2py] Re: I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-09 Thread Mike Stephenson
It's messed up. Can you help out with a code snippet? Will be of much help. On Thursday, November 10, 2016 at 12:17:17 AM UTC+5:30, Leonel Câmara wrote: > > What do you mean? What are you trying to do? How are you putting the json > there? Are you getting it using $.getJSON or something like that

[web2py] Re: I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-11 Thread Mike Stephenson
:02 PM UTC-8, Mike Stephenson wrote: >> >> It's messed up. >> > > How so? What does it do? What do you expect it to do? > > Can you show us how your controller prepares the json? What does your > view look like? > > >> Can you help out with a

[web2py] Re: I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-11 Thread Mike Stephenson
wDKduE0mVQ> On Friday, November 11, 2016 at 7:05:00 PM UTC+5:30, Anthony wrote: > > On Friday, November 11, 2016 at 7:29:06 AM UTC-5, Mike Stephenson wrote: >> >> Hi Dave. for example how do I read the json from this link: >> https://biglibrary.pythonanywhere.com/app/phonegap

[web2py] Re: I am unable to parse contents from a json view in javascript? How do I do it?

2016-11-11 Thread Mike Stephenson
Yeah exactly that doesn't work. How do I avoid that error? It says:" XMLHttpRequest cannot load https://biglibrary.pythonanywhere.com/app/phonegap/temp.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access." when I use

[web2py] Why is this query not giving me the correct set of rows as expected?

2016-11-24 Thread Mike Stephenson
rows=db((str(db.emeter.instant.month) == str(request.args[0])) & (db.emeter.userid==auth.user_id) ).select() emeter: db.define_table('emeter', Field('userid'), Field('instant', 'datetime', default=request.utcnow+datetime.timedelta(0,19800), writable=False, read

[web2py] Re: Why is this query not giving me the correct set of rows as expected?

2016-11-24 Thread Mike Stephenson
Just to make sure both are strings. request.args[0] is just a number representing a day. What's wrong here? On Thursday, November 24, 2016 at 6:57:59 PM UTC+5:30, Leonel Câmara wrote: > > str??? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2p

[web2py] Re: Why is this query not giving me the correct set of rows as expected?

2016-11-24 Thread Mike Stephenson
request.args[0] is just a number representing a day. What's wrong here? On Thursday, November 24, 2016 at 7:14:55 PM UTC+5:30, Marlysson Silva wrote: > > what is request.args[0] ? a datetime? > > Em quinta-feira, 24 de novembro de 2016 08:38:29 UTC-3, Mike Stephenson > esc

[web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Mike Stephenson
form3 = SQLFORM.factory(Field('ddate','date', label='Enter a date')).process() if form3.accepted: k=form3.vars.ddate.day() redirect(URL('readings', 'check', args=[k,k,k])) K doesn't read value as expected. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

Re: [web2py] This is not working as expected. Please correct this.

2016-11-28 Thread Mike Stephenson
I am not getting the day of the month On Monday, November 28, 2016 at 10:47:13 PM UTC+5:30, Yoel Benitez Fonseca wrote: > > and what value are u getting on 'k', the day of month i suppose !? > > 2016-11-28 9:56 GMT-05:00 Mike Stephenson >: > > > form3 = S

[web2py] How to make Web2py not block 'get' as well as 'post' requests from external sources?

2017-03-24 Thread Mike Stephenson
$().ready(function () { //here any https will work but below is not working because of cross origin ..code is correct, just change url or put some json string or file var url = 'http://biglibrary.pythonanywhere.com/app/phonegap/temp.json'; $.get(url, function (data) { alert(data); }); })

[web2py] Why the response.flash can't be dismissed here?

2017-04-04 Thread Mike Stephenson
I am using this layout from web2py's official site: web2py.plugin.layout_Chasmogamous However I see that the response.flash can't be dismissed. I guess there is a problem with this snippet in its layout.html: {{=response.flash or ''}} How do I make it work like it does in default layout? This sn

[web2py] Date selector doesn't display properly after changing layout(see screenshot).What can be the reason?

2017-04-20 Thread Mike Stephenson
Any idea on what must be wrong in any of the external css file in the layout. What I should do to rectify this? -- 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

[web2py] Can't show images from database in web2py 2.14.6?

2017-05-31 Thread Mike Stephenson
I used the following snippet before in the old versions of web2py. They worked like charm there. However doesn't work here. What am I losing? controller: row1=db(db.slideshow).select().first().picture in view: the image doesn't display at all! -- Resources: - http://web2py.com - http://web2

[web2py] How to speed up query processing in web2py's sqlite?

2017-06-01 Thread Mike Stephenson
I see that with a million of rows, the search takes almost 15-20 seconds. How do I speed it up? -- 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 recei

[web2py] As an MVC framework, does web2py allows updating model from view?

2017-11-08 Thread Mike Stephenson
Can mo

[web2py] Re: As an MVC framework, does web2py allows updating model from view?

2017-11-09 Thread Mike Stephenson
So in the same way, can it make updates in the db? And why is it not recommended in web2py if the diagram doesn't say so? On Thursday, November 9, 2017 at 6:17:42 PM UTC+5:30, Leonel Câmara wrote: > > In the way shown in that diagram yes it can. You can make > db(query).select() inside a view so

[web2py] Re: As an MVC framework, does web2py allows updating model from view?

2017-11-09 Thread Mike Stephenson
Thanks On Thursday, November 9, 2017 at 6:25:00 PM UTC+5:30, Leonel Câmara wrote: > > It's not recommended because the logic in web2py is that you use the same > controller for many different views (html, json, pdf, etc) so if you put > the getting of data in the view you will have to replicate