[web2py] Re: Is anyone working on a two-step login for auth? (Sometimes called two factor authentication)

2014-04-26 Thread pallav
Submitted the pull requests. Source: https://github.com/web2py/web2py/pull/431 Documentation: https://github.com/mdipierro/web2py-book/pull/202 The two-step verification in this pull can be activated on a per-user basis by adding the user to a group named 'web2py Two-Step Authentication'. This

[web2py] Re: how to render a widget using a class?

2014-04-26 Thread aleonserra
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 a

Re: [web2py] "Tk library is not installed" which package do I need and where do I install it?

2014-04-26 Thread Marco Mansilla
El Sat, 26 Apr 2014 13:51:18 -0700 (PDT) Cynthia Butler 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 do

[web2py] Default wiki breaks on MS SQL 2008

2014-04-26 Thread pallav
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

[web2py] Re: Using stock Bootstrap

2014-04-26 Thread Massimo Di Pierro
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 {{=response.flash or ''}} 3) allow web2py menus {{=MENU(response.menu)}} 4) style forms, grids and menu, based on we

[web2py] Re: Auto increment id back to zero

2014-04-26 Thread Massimo Di Pierro
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

Re: [web2py] Re: web2py conference, next week!

2014-04-26 Thread Massimo Di Pierro
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) M

[web2py] Re: "Tk library is not installed" which package do I need and where do I install it?

2014-04-26 Thread Massimo Di Pierro
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 no

[web2py] Re: How to start web2py server as linux daemon along with nginx?

2014-04-26 Thread Massimo Di Pierro
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 th

[web2py] Re: How to start web2py server as linux daemon along with nginx?

2014-04-26 Thread Massimo Di Pierro
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 > chow

Re: [web2py] API Rest authenticatio

2014-04-26 Thread samuel bonill
Yes Christian, I'd like take a look... 2014-04-26 17:24 GMT-05:00 Christian Foster Howes : > 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 wr

[web2py] Re: Using stock Bootstrap

2014-04-26 Thread Carlos Zenteno
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 -

[web2py] Re: Auto increment id back to zero

2014-04-26 Thread Christian Foster Howes
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 Thu

[web2py] Re: how to add web2py app into a hosted web2py in command line

2014-04-26 Thread Christian Foster Howes
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 n

Re: [web2py] API Rest authenticatio

2014-04-26 Thread Christian Foster Howes
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 Res

Re: [web2py] Re: web2py conference, next week!

2014-04-26 Thread Frank
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

[web2py] Re: Error on the nginix-uwsgi-ubunto setup script?

2014-04-26 Thread Cynthia Butler
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

[web2py] "Tk library is not installed" which package do I need and where do I install it?

2014-04-26 Thread Cynthia Butler
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:

[web2py] How to start web2py server as linux daemon along with nginx?

2014-04-26 Thread Cynthia Butler
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

[web2py] Re: A couple question on the scheduler

2014-04-26 Thread Niphlod
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 TI

[web2py] Re: Error on the nginix-uwsgi-ubunto setup script?

2014-04-26 Thread Niphlod
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 config

[web2py] Using stock Bootstrap

2014-04-26 Thread MJo
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.

Re: [web2py] API Rest authenticatio

2014-04-26 Thread Samuel Marks
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" wrote: > thanks Marks, i'm using phonegap(android, iOS) as my client and ang

[web2py] Error on the nginix-uwsgi-ubunto setup script?

2014-04-26 Thread Cynthia Butler
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

[web2py] Re: how to render a widget using a class?

2014-04-26 Thread Massimo Di Pierro
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

Re: [web2py] API Rest authenticatio

2014-04-26 Thread samuel bonill
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 ? 2014-04-25 21:41 GMT-05:00 Samuel Marks : > Sure, take a look at x509 at > http://web2p

[web2py] User login with user id

2014-04-26 Thread Josyula Krishna
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 aut

[web2py] i am trying send email using web2py with gmail and using smtp setting i have attached all code

2014-04-26 Thread Michael Beller
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)

[web2py] Re: web2py conference, next week!

2014-04-26 Thread Greg Vaughan
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 th