[web2py] Re: web2py conference, next week!
Make the next one in Sydney (Australia) Massimo :) Just joking... all the best for it and looking forward to seeing the videos... On Saturday, 26 April 2014 13:08:01 UTC+10, Massimo Di Pierro wrote: Please register only if you plan to attend in person. We will record the talks and post them. On Friday, 25 April 2014 16:29:28 UTC-5, David Rager wrote: Is there an online option (if you don't tick the will attend in person)? On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pierro wrote: There is one more to the first web2py conference http://www.experts4solutions.com/web2py_conference We got a bigger room and we can take 10-15 more people. register now! Massimo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] i am trying send email using web2py with gmail and using smtp setting i have attached all code
If you have two step authentication enabled in your gmail account you need to use an application specific password ... https://support.google.com/mail/answer/1173270?hl=en -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] User login with user id
Hi, I'm trying to integrate my app with facebook, i didn't quite understand all the content on the internet, Here's what i'm trying to do, i authenticate the user from facebook, i get his information. I'm using this info to find if he exists in the auth_user database. If he does, i have his auth_user.id i tried session.logged_in_user = user.id it doesn't work the user doesn't get logged in. Can anyone please help. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] API Rest authenticatio
thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs consume the API Rest. x509 its grate but, work x509 on app engine ?, or what do you think about use Oauth 2.0 http://oauth.net/2/ ? 2014-04-25 21:41 GMT-05:00 Samuel Marks samuelma...@gmail.com: Sure, take a look at x509 at http://web2py.com/books/default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill pythonn...@gmail.comwrote: is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lXfe0tpGi8U/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: how to render a widget using a class?
I think you want this: class CustomWIdget(): def __init__(self, parameters=None): pass def html(self): return DIV(self.field.name) def __call__(self, field, value): self.field = field self.value = value return self.html() #this doesnt return html markup, escaped text instead db.define_table(table1, Field(myField, string, widget=CustomWidget() ) ) On Friday, 25 April 2014 22:40:57 UTC-5, aleon...@gmail.com wrote: Hi, Im having troubles defining widgets as classes. When widgets are defined as functions it all works well, the function returns a html object(DIV, UL, ...) and the view renders the markup correctly, but im trying to define the widget as a class to handle static files requirements for that widget. I have tried the __str__ method to render the widget but the view(or SQLFORM) renders as text, not html markup. Here is some example code: #Widget as a function def CustomWidget(field, value): return DIV(field.name, _class=myClass) #Widget as a class class CustomWIdget(): def __init__(self, field, value): self.field = field self.value = value def html(self): return DIV(self.field.name) def __str__(self): return str(self.html()) #this doesnt return html markup, escaped text instead db.define_table(table1, Field(myField, string, widget=CustomWidget) ) Thanks in advance. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Error on the nginix-uwsgi-ubunto setup script?
Which file extension is correct, .xml or .ini , in this snippet from web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh? # Create configuration file /etc/uwsgi/web2py.xml echo '[uwsgi] socket = /tmp/web2py.socket pythonpath = /home/www-data/web2py/ mount = /=wsgihandler:application processes = 4 master = true harakiri = 60 reload-mercy = 8 cpu-affinity = 1 stats = /tmp/stats.socket max-requests = 2000 limit-as = 512 reload-on-as = 256 reload-on-rss = 192 uid = www-data gid = www-data cron = 0 0 -1 -1 -1 python /home/www-data/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o no-orphans = true ' /etc/uwsgi/web2py.ini ... ## to reload web2py only (without restarting uwsgi) # touch /etc/uwsgi/web2py.xml Thank you! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] API Rest authenticatio
I'm a big RFC6749 fan Quite simple; and you can implement your own custom grant for e.g.: higher security using x509 certificates. Samuel Marks http://linkedin.com/in/samuelmarks On 27/04/2014 12:05 am, samuel bonill pythonn...@gmail.com wrote: thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs consume the API Rest. x509 its grate but, work x509 on app engine ?, or what do you think about use Oauth 2.0 http://oauth.net/2/ ? 2014-04-25 21:41 GMT-05:00 Samuel Marks samuelma...@gmail.com: Sure, take a look at x509 at http://web2py.com/books/default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill pythonn...@gmail.comwrote: is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lXfe0tpGi8U/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Using stock Bootstrap
What I loose from web2py if I create site where all .html files are first cleaned up and written from scratch according Bootstrap manuals? BR, -- MJo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Error on the nginix-uwsgi-ubunto setup script?
it's an ini file. all errors are in commented lines...I'll send a PR to fix it. On Saturday, April 26, 2014 10:51:04 AM UTC+2, Cynthia Butler wrote: Which file extension is correct, .xml or .ini , in this snippet from web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh? # Create configuration file /etc/uwsgi/web2py.xml echo '[uwsgi] socket = /tmp/web2py.socket pythonpath = /home/www-data/web2py/ mount = /=wsgihandler:application processes = 4 master = true harakiri = 60 reload-mercy = 8 cpu-affinity = 1 stats = /tmp/stats.socket max-requests = 2000 limit-as = 512 reload-on-as = 256 reload-on-rss = 192 uid = www-data gid = www-data cron = 0 0 -1 -1 -1 python /home/www-data/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o no-orphans = true ' /etc/uwsgi/web2py.ini ... ## to reload web2py only (without restarting uwsgi) # touch /etc/uwsgi/web2py.xml Thank you! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: A couple question on the scheduler
1. When a task goes into TIMEOUT, it needs to be carefully reviewed. TIMEOUT means that something that you needed isn't there... your case seems to contemplate a missing run, but if it's so, you need to manage the absence in your code (i.e. it must be eventually planned). To summarize, a TIMEOUT task is something that you DIDN'T plan to go on timeoutif instead you are cool with that, you should manage it into the task itself, e.g. raising an error if n seconds are passed (so the task gets into the FAILED status) 2. if you modify directly the scheduler_task table, pretty much ALL fields are important, because every one of them specifies how, when, etc a task needs to run 3. if you need it monthly, why the need for number of seconds to be variable ? In any case you'd better off queuing something that gets fired every once in a while and schedules the task only when it's needed On Friday, April 25, 2014 7:00:18 PM UTC+2, David Rager wrote: I'm just a tad confused about the scheduler - just 3 items I haven't been able to figure out and handle: 1. When a scheduler_task times out I see the status of TIMEOUT. It appears the task will not run again for the next scheduled run. Is this the expected behavior or am I misinterpreting? Because I work with external resources that are not always reliable I expect timeouts but would like the task to run on the next scheduled try if possible. 2. When entering or modifying scheduler_task items is it important to update the Next Run Time to a future data in order for the task to run? I have been doing this because it seems logical. For instance - after a TIMEOUT when I update the task to QUEUED do I also need to modify the Next Run Time to get it to go again? I believe this is the behavior but wanted to clarify. 3. Is there a method to run a task monthly (where number of seconds is variable)? I'm contemplating writing a schedule manager of a sort which would: 1. capture the status of all the tasks (just a snap of the table) 2. flip the TIMEOUTs to QUEUED for me every morning so they will continue to run 3. update the Next Run Time on timed out jobs and monthly jobs on the flip of the month I would use a scheduler_task to do this (with the hope that task would not timeout or stop executing for whatever reason) - but perhaps I'm misinterpreting how this is working from playing with it this week. Appreciate any clarification - this is my first attempt to harden the scheduler for production use. TY! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: web2py conference, next week!
On 26 Apr 2014 at 10:47:30, Greg Vaughan (greg.s.vaug...@gmail.com) wrote: Make the next one in Sydney (Australia) Massimo :) Just joking... all the best for it and looking forward to seeing the videos... +1. are any videos out there from past conferences ? On Saturday, 26 April 2014 13:08:01 UTC+10, Massimo Di Pierro wrote: Please register only if you plan to attend in person. We will record the talks and post them. On Friday, 25 April 2014 16:29:28 UTC-5, David Rager wrote: Is there an online option (if you don't tick the will attend in person)? On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pierro wrote: There is one more to the first web2py conference http://www.experts4solutions.com/web2py_conference We got a bigger room and we can take 10-15 more people. register now! Massimo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Tk library is not installed which package do I need and where do I install it?
My machine: ubuntu 14.04 LTS, 64 bit My web2py: 2.9.5-stable+timestamp.2014.03.16.02.35.39 I get this when running web2py.py: WARNING:web2py:GUI not available because Tk library is not installed I tried downloading/installing Tk 8.6.1 from Active State but it didn't fix it. I also tried: sudo apt-get install python-tk which removed the warning, but I still do not see the GUI/console. Sorry, I'm a noob. Which package do I need and where do I install it to get web2py's GUI/console to display? Thanks! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Error on the nginix-uwsgi-ubunto setup script?
The answer is: .ini It took me two days to find this bug and fix it. I'm a noob to web2py and nginx. I wanted to make sure my production setup works before I develop a web2py site because that always causes me the most trouble. I haven't learned how to submit the fix yet, but it is such an easy one to do and would save other noob's alot of time/frustration. Can someone submit the fix for me or should I learn to do it? Thank you for web2py, I really like this framework -- my favorite so far! On Saturday, April 26, 2014 2:51:04 AM UTC-6, Cynthia Butler wrote: Which file extension is correct, .xml or .ini , in this snippet from web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh? # Create configuration file /etc/uwsgi/web2py.xml echo '[uwsgi] socket = /tmp/web2py.socket pythonpath = /home/www-data/web2py/ mount = /=wsgihandler:application processes = 4 master = true harakiri = 60 reload-mercy = 8 cpu-affinity = 1 stats = /tmp/stats.socket max-requests = 2000 limit-as = 512 reload-on-as = 256 reload-on-rss = 192 uid = www-data gid = www-data cron = 0 0 -1 -1 -1 python /home/www-data/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o no-orphans = true ' /etc/uwsgi/web2py.ini ... ## to reload web2py only (without restarting uwsgi) # touch /etc/uwsgi/web2py.xml Thank you! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] How to start web2py server as linux daemon along with nginx?
I followed the instructions in the book Chapter 13 Start as Linux daemon. But when I type this on command line: sudo /etc/init.d/web2py start I get this error: * Starting Web Framework web2py chown: invalid user: 'web2py' start-stop-daemon: user 'web2py' not found I think it's caused by the group:user is actually www-data' as setup by the ngenix-uwsgi-ubuntu.sh script, instead of web2py. I can get the web2py server to run by typing this at the command line: cd /home/www-data/web2py sudo -u www-data python web2py But it is not a daemon process (running in the background). What is the proper way to resolve the different owners so I can run web2py server as a daemon and also in a secure way (not by sudo -- or does that matter)? Thank you-- I'm a noob! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] API Rest authenticatio
i have an oauth implementation that i used on app engine. i can try and clean it up a touch and share it if you would like. cfh On Saturday, April 26, 2014 7:05:55 AM UTC-7, samuel bonill wrote: thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs consume the API Rest. x509 its grate but, work x509 on app engine ?, or what do you think about use Oauth 2.0 http://oauth.net/2/ ? 2014-04-25 21:41 GMT-05:00 Samuel Marks samuelma...@gmail.com: Sure, take a look at x509 at http://web2py.com/books/default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill pythonn...@gmail.comwrote: is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lXfe0tpGi8U/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: how to add web2py app into a hosted web2py in command line
the command line way to deploy to the running server is to zip the contents of your application directory, transfer to the host, and unzip to the host's applications directory. assuming the your code has no additional dependencies it should work. depending on how you do URL routing you may need to update the server's routing file and restart the service on the server. cfh On Friday, April 25, 2014 3:51:51 AM UTC-7, Aby Thachet Jose wrote: hello i have developed a web2py web app in my local system how can i host that into the server web2py ,it has web2y and is running a app i am not getting the user interface to just upload 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) --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Auto increment id back to zero
auto increment IDs are implemented differently on different databases. the instructions for mysql vs postgres are different for example. It's best to check the documentation for the database that you are using. i'm assuming that you have already removed all rows from the table. :) cfh On Thursday, April 24, 2014 2:42:05 PM UTC-7, Flavio Santos wrote: How to set an auto increment id back to zero (automatically) table auth_user? -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Using stock Bootstrap
Try it and let us know please :) On Saturday, April 26, 2014 10:10:36 AM UTC-5, MJo wrote: What I loose from web2py if I create site where all .html files are first cleaned up and written from scratch according Bootstrap manuals? BR, -- MJo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] API Rest authenticatio
Yes Christian, I'd like take a look... 2014-04-26 17:24 GMT-05:00 Christian Foster Howes cfho...@gmail.com: i have an oauth implementation that i used on app engine. i can try and clean it up a touch and share it if you would like. cfh On Saturday, April 26, 2014 7:05:55 AM UTC-7, samuel bonill wrote: thanks Marks, i'm using phonegap(android, iOS) as my client and angularjs consume the API Rest. x509 its grate but, work x509 on app engine ?, or what do you think about use Oauth 2.0 http://oauth.net/2/ ? 2014-04-25 21:41 GMT-05:00 Samuel Marks samuelma...@gmail.com: Sure, take a look at x509 at http://web2py.com/books/ default/chapter/29/09/access-control Samuel Marks http://linkedin.com/in/samuelmarks On Sat, Apr 26, 2014 at 12:33 PM, samuel bonill pythonn...@gmail.comwrote: is there an example of API Rest authentication based in private/public key with web2py?? i don't want use username and password tokens for each request -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/ topic/web2py/lXfe0tpGi8U/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 a topic in the Google Groups web2py-users group. To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/lXfe0tpGi8U/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: How to start web2py server as linux daemon along with nginx?
You can try On Saturday, 26 April 2014 13:29:08 UTC-5, Cynthia Butler wrote: I followed the instructions in the book Chapter 13 Start as Linux daemon. But when I type this on command line: sudo /etc/init.d/web2py start I get this error: * Starting Web Framework web2py chown: invalid user: 'web2py' start-stop-daemon: user 'web2py' not found I think it's caused by the group:user is actually www-data' as setup by the ngenix-uwsgi-ubuntu.sh script, instead of web2py. I can get the web2py server to run by typing this at the command line: cd /home/www-data/web2py sudo -u www-data python web2py But it is not a daemon process (running in the background). What is the proper way to resolve the different owners so I can run web2py server as a daemon and also in a secure way (not by sudo -- or does that matter)? Thank you-- I'm a noob! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: How to start web2py server as linux daemon along with nginx?
Can you try edit the file /etc/init.d/web2py and replace DAEMON_USER=web2py with DAEMON_USER=www-data On Saturday, 26 April 2014 22:38:00 UTC-5, Massimo Di Pierro wrote: You can try On Saturday, 26 April 2014 13:29:08 UTC-5, Cynthia Butler wrote: I followed the instructions in the book Chapter 13 Start as Linux daemon. But when I type this on command line: sudo /etc/init.d/web2py start I get this error: * Starting Web Framework web2py chown: invalid user: 'web2py' start-stop-daemon: user 'web2py' not found I think it's caused by the group:user is actually www-data' as setup by the ngenix-uwsgi-ubuntu.sh script, instead of web2py. I can get the web2py server to run by typing this at the command line: cd /home/www-data/web2py sudo -u www-data python web2py But it is not a daemon process (running in the background). What is the proper way to resolve the different owners so I can run web2py server as a daemon and also in a secure way (not by sudo -- or does that matter)? Thank you-- I'm a noob! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Tk library is not installed which package do I need and where do I install it?
That is not a critical error. Web2py works well without it. Massimo On Saturday, 26 April 2014 15:51:18 UTC-5, Cynthia Butler wrote: My machine: ubuntu 14.04 LTS, 64 bit My web2py: 2.9.5-stable+timestamp.2014.03.16.02.35.39 I get this when running web2py.py: WARNING:web2py:GUI not available because Tk library is not installed I tried downloading/installing Tk 8.6.1 from Active State but it didn't fix it. I also tried: sudo apt-get install python-tk which removed the warning, but I still do not see the GUI/console. Sorry, I'm a noob. Which package do I need and where do I install it to get web2py's GUI/console to display? Thanks! -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Re: web2py conference, next week!
there are no past web2py conferences. All videos from other conferences are posted in the corresponding venue. On Saturday, 26 April 2014 10:34:51 UTC-5, ureal frank wrote: On 26 Apr 2014 at 10:47:30, Greg Vaughan (greg.s.vaug...@gmail.com) wrote: Make the next one in Sydney (Australia) Massimo :) Just joking... all the best for it and looking forward to seeing the videos... +1. are any videos out there from past conferences ? On Saturday, 26 April 2014 13:08:01 UTC+10, Massimo Di Pierro wrote: Please register only if you plan to attend in person. We will record the talks and post them. On Friday, 25 April 2014 16:29:28 UTC-5, David Rager wrote: Is there an online option (if you don't tick the will attend in person)? On Thursday, April 24, 2014 9:20:56 AM UTC-6, Massimo Di Pierro wrote: There is one more to the first web2py conference http://www.experts4solutions.com/web2py_conference We got a bigger room and we can take 10-15 more people. register now! Massimo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Auto increment id back to zero
How about db.table.truncate() On Saturday, 26 April 2014 17:30:05 UTC-5, Christian Foster Howes wrote: auto increment IDs are implemented differently on different databases. the instructions for mysql vs postgres are different for example. It's best to check the documentation for the database that you are using. i'm assuming that you have already removed all rows from the table. :) cfh On Thursday, April 24, 2014 2:42:05 PM UTC-7, Flavio Santos wrote: How to set an auto increment id back to zero (automatically) table auth_user? -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: Using stock Bootstrap
Presentation wise nothing but you may want: 0) include jQuery and modernizer. 1) enable the web2py components by adding: {{include web2py_ajax.html}} 2) allow flash to work div class=flash{{=response.flash or ''}}/div 3) allow web2py menus {{=MENU(response.menu)}} 4) style forms, grids and menu, based on web2py stiles {{response.files.append(URL('static','css/web2py.css')}} 5) allow web2py.css to play nicely with bootstrap.css {{response.files.append(URL('static','css/web2py_bootstrap.css')}} On Saturday, 26 April 2014 10:10:36 UTC-5, MJo wrote: What I loose from web2py if I create site where all .html files are first cleaned up and written from scratch according Bootstrap manuals? BR, -- MJo -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Default wiki breaks on MS SQL 2008
I tried to enable wiki by doing the following: def index(): return auth.wiki() This breaks the app with the following error: [42000] [Microsoft][ODBC SQL Server Driver][SQL Server]Introducing FOREIGN KEY constraint 'wiki_page_modified_by__constraint' on table 'wiki_page' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints. (1785) ( SQLExecDirectW); [42000] [Microsoft][ODBC SQL Server Driver][SQL Server] Could not create constraint. See previous errors. (1750) The error is happening because the foreign key contraints on auth_wiki pages should be specified as 'no action' on delete and update. Has anyone else seen the problem? Am I missing something obvious or is this a bug that I should submit a patch for? -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [web2py] Tk library is not installed which package do I need and where do I install it?
El Sat, 26 Apr 2014 13:51:18 -0700 (PDT) Cynthia Butler cindybutl...@gmail.com escribió: My machine: ubuntu 14.04 LTS, 64 bit My web2py: 2.9.5-stable+timestamp.2014.03.16.02.35.39 I get this when running web2py.py: WARNING:web2py:GUI not available because Tk library is not installed I tried downloading/installing Tk 8.6.1 from Active State but it didn't fix it. I also tried: sudo apt-get install python-tk which removed the warning, but I still do not see the GUI/console. Sorry, I'm a noob. Which package do I need and where do I install it to get web2py's GUI/console to display? Thanks! All you need is python-tk package from repos... but as Massimo says, you don't really need it for web2py to work, from command line you set the password for admin with: $ python web2py.py -a 'password' and you are good to go. Marco. -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[web2py] Re: how to render a widget using a class?
Thank you very much, it works wonders. Here is the code i was trying, when the widget is created it also adds static file requirements (css, js) dynamically at the html head by using response.include_files() there. db = DAL('mysql://root:1234@localhost/mydb') class Widget(): def add(self, file): if not file in response.files: response.files.append(file) class ColorWidget(Widget): #add required files def __init__(self, parameters=None): self.add(js/jquery.js) self.add(js/colorselector.js) self.add(css/colorpicker.css) #return some kind of html markup for the widget def __call__(self, field, value): self.field = field self.value = value return DIV(field.name) db.define_table('agencies', Field('agency','string', unique=True), Field('color','string', widget=ColorWidget()) ) -- 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 Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.