Re: [web2py] vue.js

2016-09-24 Thread Kiran Subbaraman
Would like to know why you like it ... if you can share. Thanks. Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Sun, 25-09-2016 8:55 AM, Massimo Di Pierro wrote: I am becoming a huge fan of vue.js. Any other user here? -- Resources: - http://

[web2py] vue.js

2016-09-24 Thread Massimo Di Pierro
I am becoming a huge fan of vue.js. Any other user here? -- 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 subscri

[web2py] Re: Code change in oracle.py to allow joins in pagination.

2016-09-24 Thread Massimo Di Pierro
I can take care of it. Can you email me your patch as an attachment? On Friday, 23 September 2016 19:46:34 UTC-5, tomt wrote: > > I'd be happy to give it a try, but I'm not sure what steps to take. When >> I go to github and click on create new pull request it appears I have to >> select a bran

[web2py] Re: Upload files folder setup

2016-09-24 Thread Massimo Di Pierro
Field('name', 'upload', uploadfolder=..., uploadfs=...) uploadfolder lets you specify a folder uploadfs lets you specify another file system (from pyfilesystem) like S2, FTP mounted, etc. massimo On Friday, 23 September 2016 19:46:03 UTC-5, SR wrote: > > > When we upload a file via an upload f

[web2py] Re: scaling web2py

2016-09-24 Thread Massimo Di Pierro
First of all I refer you to niphlod which is very comprehensive. Let me add something in relation to your last questions. When you run web2py with rocket, rocket uses threads. When you run web2py with nginx+uwsgi, uwsgi runs in emperor mode and it uses multiple processes (not threads) and you c

[web2py] Re: anonymize sensitive data on the fly using LazyCrypt() object as primary key

2016-09-24 Thread Massimo Di Pierro
That is a god question and it is more a question for a cryptanalyst. Theoretically you are giving some info to the attacker but how much info. Intuitively I would say you are giving almost no additional info. If I were to review code with this trick, I would consider it secure. On Wednesday, 2

[web2py] Re: advice for a restful app

2016-09-24 Thread Massimo Di Pierro
In terms of scalability most framework, like web2py, all scale in the same using the same tricks. There is no scalability gain in replacing one framework for another. The bottle neck is always the database. When I optimize for production I always stick to web2py but make extensive uses of serve

[web2py] Re: A logged in page and a logged out page for the same url?

2016-09-24 Thread David Ripplinger
Thank you. On Saturday, September 24, 2016 at 11:49:06 AM UTC-6, Anthony wrote: > > Just put some conditional logic in the controller and/or view. For example: > > {{if auth.user_id:}} > The application > {{else:}} > Sign up / login > {{pass}} > > Perhaps a better option is the standard approach o

[web2py] Re: A logged in page and a logged out page for the same url?

2016-09-24 Thread Anthony
Just put some conditional logic in the controller and/or view. For example: {{if auth.user_id:}} The application {{else:}} Sign up / login {{pass}} Perhaps a better option is the standard approach of decorating actions that require login, which will automatically redirect to the login page for

[web2py] A logged in page and a logged out page for the same url?

2016-09-24 Thread David Ripplinger
Does anyone know how I can have the same url return a totally different page depending on whether the user is logged in or not? I'd like the home page to display a simple "Sign up / log in" page when the user is logged out and display the actual app when logged out. I'd rather not have a separa

Re: [web2py] Re: Password Recovery Not Sending (lazyT object being passed to GAE?)

2016-09-24 Thread Jacinto Parga
Unfortunatly it didn't work for me. Is it a translation issue? Can it be solved changing the auth_user messages? I think it is an important bug!! I can send mails with my application form GAE, there is no problem at all. But when someone is singing up it is "Unable to send mail!" Same happens

[web2py] Re: What's wrong here such that the delete query in accept() doesn't work at all?

2016-09-24 Thread Anthony
On Saturday, September 24, 2016 at 6:47:50 AM UTC-4, Steve Joe wrote: > > No error, > just the thing that "db((db.friend_requests. > requester== auth.user_id) & (db.friend_requests.declarer== > request.args[0])).delete(" doesn't seem to work in accept(). > Presumably either auth.user_id or reques

[web2py] Re: flot charts are not getting displayed

2016-09-24 Thread Anthony
Not sure if any of this is the source of your problem, but first, make sure you are not loading jquery twice (it is loaded in the default layout.html view). Second, in the addArrow function, the " > Hi, > I want to use flot charts in my application.I tried running an example > which required jqu

[web2py] flot charts are not getting displayed

2016-09-24 Thread @brooks
Hi, I want to use flot charts in my application.I tried running an example which required jquery.js ,jquery.flot.js ,jquery.flot.navigate.js files.I uploaded all these files in the static/js folder and in the view I used I also uploaded some images and included them in the view as follows: ..

[web2py] Re: What's wrong here such that the delete query in accept() doesn't work at all?

2016-09-24 Thread Steve Joe
No error, just the thing that "db((db.friend_requests. requester== auth.user_id) & (db.friend_requests.declarer== request.args[0])).delete(" doesn't seem to work in accept(). On Friday, September 23, 2016 at 7:04:52 PM UTC+5:30, Anthony wrote: > > First, you should move all of that logic out of