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

2014-05-14 Thread pallav
d look forward to > implementing it. > > All the best > > On Monday, 28 April 2014 04:10:07 UTC+2, pallav wrote: >> >> For anyone wondering on the status, my code causes the unit tests for web >> services to break. I plan on looking into it over the next couple of days.

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

2014-04-27 Thread pallav
For anyone wondering on the status, my code causes the unit tests for web services to break. I plan on looking into it over the next couple of days. On Sunday, April 27, 2014 2:31:37 AM UTC-4, pallav wrote: > > Submitted the pull requests. > > Source: https://github.com/web2py/web

[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] 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

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

2014-04-25 Thread Pallav Negi
Definitely. I'll try to do it today - it will be great to have the code reviewed. pal...@fielddiagnostics.com | 215-359-3918 | FD Engineering On Fri, Apr 25, 2014 at 6:16 AM, Michele Comitini < michele.comit...@gmail.com> wrote: > @PN can you make a fork on git

[web2py] Re: Broken migration

2014-04-13 Thread pallav
To use fake_migrate, first you have to revert your model definition to the old version (that matches the existing db), run the app. This will make web2py update the table definition file. Now, you can change your models and set fake_migrate to False, and migrate to True. On Sunday, April 13, 20

[web2py] Re: current trunk using memdb results in crash

2014-04-13 Thread pallav
deleting memcache causes a separate issue (https://code.google.com/p/web2py/issues/detail?id=1919) that you may be seeing. Basically, your browser now refers to a session that is not in memory anymore. Web2py looks for the missing key in memdb and crashes. Try clearing out your browser's sessi

[web2py] Re: form help

2014-04-13 Thread pallav
Your way will work, but you can do it easier by just using sqlform.smartgrid - the tables will be automatically generated. It works for the simple case where you want to give people the ability to add an item, add a category, and also associate any item with any category. On Friday, April 11, 2

[web2py] Re: great news: Sphinx Documentation

2014-04-13 Thread pallav
Much neater! Thank you. On Sunday, April 13, 2014 11:43:26 AM UTC-4, Massimo Di Pierro wrote: > > Great news! We are finally moving to Sphinx. > > http://web2py.readthedocs.org/en/latest/ > > Kudos to Simone (niphlod) who single handedly ported all the docstrings > and made this possible. > > Tha

[web2py] GAE Select Ignores cache and cacheable arguments?

2014-04-13 Thread pallav
It seems like the 'cache' and 'cacheable' arguments to the .select() statement do not work on GAE. This is even after setting cache.ram=cache.memcache (following the code in the book and multiple examples in this forum) I tested on a GAE app, and explicitly setting memcache works, but the sele

[web2py] Re: Admin app support in app engine

2014-02-22 Thread pallav
Great job! On Thursday, December 19, 2013 3:11:50 PM UTC-5, Alan Etkin wrote: > > A subset of the admin app features was enabled in trunk for Google App > Engine apps. New deployments using the app.yaml example file should support > the following (using GAE SDK 1.8.8 and Python 2.7/WSGI): > > -

[web2py] Re: hostmonster, pythonanywhere, or gae for my current situation

2013-04-16 Thread pallav
1. I do not have any experience with HostMonster. If they give you root access to a Linux (hopefully Ubuntu) shell it should be straightforward to install web2py (using the instructions from the book). It seems that this option has the most unknowns for you. 2. PythonAnywhere allows you to have

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-11 Thread pallav
That was a very informative response, thank you. I think I will have time in the first weeks of December to try to change the DAL. Will try to get Massimo's feedback on this too.

[web2py] Re: GAE Contains() issue?

2011-11-11 Thread pallav
e else > and have a more meaningful error but you really want something like: > > if session.company_id: >    rows = > db(db.Site_Main.companyID.contains(session.company_id)).select(db.Site_Main > .id) > else: >    rows = [] > > On Nov 11, 10:20 am, pallav wrote: > &g

[web2py] GAE Contains() issue?

2011-11-11 Thread pallav
.company_id)).select(db.Site_Main.id) The Error: === Traceback (most recent call last): File "/home/pallav/Desktop/google_appengine/web2py/gluon/ restricted.py", line 194, in restricted exec ccode in environment File "/home/pallav/Desktop/google_appengine/web2py/applicatio

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread pallav
Thank you. I also appreciate you putting your app.yaml on the code repository - it helped me get started today (before seeing what you had done, my own had not been customized for wsgi, just Python 2.7). I'm definitely interested in learning the relationship between the DAL, 2.7, and transactions.

[web2py] Re: GAE - SQL cloud connection

2011-11-10 Thread pallav
Hi Massimo, I just ran into the same issue on GAE SQL. Any update/ideas since the last post? I'm happy to help code/debug/brainstorm. Thanks, Pallav On Oct 19, 10:53 am, Massimo Di Pierro wrote: > This is another of those weird mysql issues > > CREATE TABLE IF NOT EXISTS web

[web2py] Re: GAE & Python 2.7

2011-11-10 Thread pallav
Thank you. Am testing it out now. On Nov 3, 8:48 pm, Jonathan Lundell wrote: > There's now a new version of app.example.yaml in the trunk. If you're working > with the Google App Engine, read on. > > GAEhas been evolving a bit, and now supports Python 2.7 (vs 2.5). The new > app.example.yaml is

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-10 Thread pallav
> web2py is normally multithreaded when running as a WSGI app (as with its > internal Rocket server, or Apache mod_wsgi). GAE is just catching up. > One GAE consideration, though, is that while normally requests within the > same web2py session are serialized, that is not the case on GAE. Thanks

[web2py] Re: Python 2.7 on GAE (experimental)

2011-11-09 Thread pallav
My company is considering deploying the production version of our web2py application to GAE. This allows us to use WSGI & concurrent requests/multithreading. Are there any concerns with enabling multithreading - i.e. is a web2py application thread safe if we don't do any multithreading in our own c

[web2py] Re: Important Pycon 2011

2011-01-28 Thread pallav
Hi, same goes for the developers at my company - we will not be able to attend Pycon 2011. Would definitely appreciate an article on your experiences though. On Jan 28, 4:28 pm, William wrote: > Sorry I can't go to Pycon 2011. But I would be appreciated if you can post > an article about the expe

[web2py] Re: CASE statements in DAL?

2011-01-03 Thread pallav
Hi Massimo, Using raw SQL would defeat the purpose of using the DAL. Are there any plans to enhance the DAL to include constructs for CASE statements? Thanks Pallav On Dec 30 2010, 12:11 pm, mdipierro wrote: > this works for me and this time I tried: > > >>> db.define_

[web2py] Re: running web2py on Android?

2010-11-09 Thread pallav
me/damonkohler/ase_src/python/src/android/python/lib/ python2.6/logging/__init__.py", line 272, in __init__ ImportError: No module named multiprocessing >>> On Nov 8, 11:46 pm, mdipierro wrote: > make sure this line in web2py.py > > # import gluon.import_all > >

[web2py] Re: running web2py on Android?

2010-11-08 Thread pallav
I just tried running web2py on android and an error regarding the module multiprocessing being missing. It gets called from gluon.widget.start() I will look into the source code tomorrow to see if there is a workatound. I might try porting the multiprocessing module over. Any ideas anyone? I thin

[web2py] web2py as a cross-platform mobile application platform

2010-10-30 Thread pallav
Hi My company is working on a platform for mobile application development along the lines of PhoneGap and Rhosync. The idea is to have a web2py server running on the mobile device (Android, iPhone, etc.) locally, and have a browser component that is used for UI. The UI would be developed in HTML/C