[web2py] The Web2py editor is not loading in full screen

2019-07-10 Thread Abhishek Gupta
Hey there, I am new to web2py and ran into the below error: The Web2py editor is not loading in full scree and there is no option to expand the screen as well. (Attached screen shot) I am using Internet Explorer Browser and Web2py version of 2.17.2 Please help me to restore this to a normal screen

[web2py] Re: Turning off SQL Logging

2013-05-23 Thread Abhishek Gupta
No, .table files aren't deleted or corrupted. Most of the output are of the type timestamp: XXX ALTER TABLE YYY DROP COLUMN ZZZ; faked! Regards Abhishek Gupta Co-founder, Zumbl Zumbl <http://zumbl.com> | Facebook<http://facebook.com/abhishekgupta.iitd> | Twitter &l

[web2py] Re: Turning off SQL Logging

2013-05-23 Thread Abhishek Gupta
=True for that table which make changes to the shared database, and then, manually migrate the table using SQL syntax to the live server. But I think migrate=False should work equally well too, and I shouldn't thus be required to worry about the logging. Regards Abhishek Gupta Co-founder, Zu

[web2py] Re: Turning off SQL Logging

2013-05-23 Thread Abhishek Gupta
Anthony, that souns good, thanks. Massimo, our sql.log grows to almost 1GB each day. I used fake_migrate=True for all the tables. Regards Abhishek Gupta Co-founder, Zumbl Zumbl <http://zumbl.com> | Facebook<http://facebook.com/abhishekgupta.iitd> | Twitter <http://twitter.com/

[web2py] Turning off SQL Logging

2013-05-22 Thread Abhishek Gupta
Hi, Is there an easy way to disable the logs generated in databases/sql.log other than editing gluon/dal.py? Regards Abhishek Gupta Co-founder, Zumbl -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this

[web2py] Use of web2py sessions by Ejabberd

2013-04-02 Thread Abhishek Gupta
Hi, I have a web2py installation and an ejabberd for chat connections. Due to the speed of ejabberd, I want to transfer some of the ajax requests to ejabberd. This will require me to perform user authentication at EjabberD instead of web2py. Is there way I can authenticate an user at Ejabberd

[web2py] Referral Program using sessions

2013-03-07 Thread Abhishek Gupta
Hi, I am working on a referral system in which I would be able to track signups given a referral url. Let us say someone open www.zumbl.com/?u=2102 and then the user signups or login, using this unique URL, I need to create an entry into the database. Is there some way I can do this use using

[web2py] Re: Login page Optimizations - barest form of web2py

2013-02-10 Thread Abhishek Gupta
th.user_id . > > On Friday, February 8, 2013 6:52:13 PM UTC+1, Abhishek Gupta wrote: >> >> Hi, >> >> I have a website running on web2py. I want to optimize the login page, >> and strip all the web2py functional but to see if the user is logged in

[web2py] Login page Optimizations - barest form of web2py

2013-02-08 Thread Abhishek Gupta
Hi, I have a website running on web2py. I want to optimize the login page, and strip all the web2py functional but to see if the user is logged in or not. To explain more, I want to do following: if user.is_logged_in_custom(): return my_html else: redirect to_some_other_page The idea is t

Re: [web2py] Re: Cookie Based Logon

2012-09-20 Thread Abhishek Gupta
hat is wrong with the existing > 'remember me' mechanism in Auth? > > > > On Thursday, September 20, 2012 7:17:05 PM UTC+1, Abhishek Gupta wrote: > >> Are there any function in web2py which can help me in creating the user, >> and doing the automatic b

Re: [web2py] Re: Cookie Based Logon

2012-09-20 Thread Abhishek Gupta
using data on the session. > > Quinta-feira, 20 de Setembro de 2012 3:22:23 UTC+1, Abhishek Gupta > escreveu: > >> Hi >> >> First of all, a lot of thanks for such an awesome piece of software. I am >> working on a website where I need to implement cookie based logo

[web2py] Cookie Based Logon

2012-09-19 Thread Abhishek Gupta
Hi First of all, a lot of thanks for such an awesome piece of software. I am working on a website where I need to implement cookie based logon quite similar to the system described here http://www.phpnerds.com/article/using-cookies-in-php/2 in php. The idea is simple. When a user clicks on "Ex

[web2py] PostgreSQL DAL connection issue

2012-07-19 Thread Abhishek Gupta
Hi, I am encountering the exact same problem as mentioned by Lucas in one the earlier threads : msql db_name -U user_name -h localhost *works* * * import psycopg2 psycopg2.connect *works* * * python web2py.py -S app_name DAL(...) works too But, still I get error > RuntimeError: Failure to co

[web2py] Re: Implementing tornado chat server with web2py

2012-01-17 Thread Abhishek Gupta
I implemented a similar solution, but the user keeps on getting disconnected from the tornado server. This happens frequently with chrome. Any guesses, so as why the user is being disconnected so often (in every 4-5 secs).

[web2py] URL Rewriting for an application

2011-12-20 Thread Abhishek Gupta
I am using script/autoroutes.py for the application with following changes : config = ''' server.com /app/default ''' def auto_in ... routes += [('^.*:/(?P[^\\/\.]+)(?P.*)$', '/profile/\g\g')] return routes def auto_out... ... routes += [('^.*:/profile/(?P[^\\/\.]+)(

[web2py] Remove app name from the urls

2011-12-19 Thread Abhishek Gupta
Hello I am in process of deploying my web2py app. I need to do remove app name from the urls. So that server.com/controller/function should mean server.com/appname/controller/function . Any clues so how I can edit my routes.py file to achieve the above? Regards Abhishek

Re: [web2py] Re: Add placeholder to password field in web2py login form

2011-12-17 Thread Abhishek Gupta
Sorry, I got the error. Correct thing to be done was : {{register_form.element('input#auth_user_username')['_placeholder'] = 'Username'}} On 17 December 2011 12:48, Abhishek Gupta wrote: > Thanks, it worked. > > But surprisingly > form.element(&#x

Re: [web2py] Re: Add placeholder to password field in web2py login form

2011-12-16 Thread Abhishek Gupta
) function: > > form = auth() > if request.args(0) == 'login': > form.element('input.password')['_placeholder'] = 'Password' > > Not sure placeholders will show in plain text in all browsers -- may need > a JS workaround for that (change the f

[web2py] Re: Logout if browser is closed

2011-12-16 Thread Abhishek Gupta
I think you can detect his closing the browser using javascript and accordingly log him out of the browser. Regards Abhishek

[web2py] Add placeholder to password field in web2py login form

2011-12-16 Thread Abhishek Gupta
Hello I am customizing web2py login form, but appear to stuck with this one. In a normal HTML5 form, for password I can do following: But how can i add a similar placeholder field to the web2py login form for the password field. I was able to do the same for the username fie

[web2py] Redirecting back to the caller controller

2011-11-07 Thread Abhishek Gupta
There are two controllers say A and B. A calls B from within. Now, I want to redirect back to the controller A on return from B. In my case both A and B are variable. What is the best way to do this? One way is to maintain a session variable such as session.prev_url. Abhishek http://abhishekgupta9

Re: [web2py] Re: 303 See Other - Error while using xmlrpc

2011-07-11 Thread Abhishek Gupta
ata. > > In the configuration file for the module, somewhere like /etc/apache2/ > mods-enabled/wsgi.conf you need to add a line: > > WSGIPassAuthorization On > > and reload apache. > > Cheers, > Robin > > On Jun 14, 6:30 am, Abhishek Gupta > wrote: > >

[web2py] 303 See Other - Error while using xmlrpc

2011-06-13 Thread Abhishek Gupta
I have the following functions defined in test.py file @auth.requires_login() def call(): return service() @service.xmlrpc def time(): import time return time.ctime() and following in my db.py file auth.settings.allow_basic_ login = True #for CLI access When I execute the following

[web2py] Authentication using xmlrpc

2011-06-07 Thread Abhishek Gupta
Hello, I have an application in web2py. To create the command line interface of the gui (web-interface), I want to use xmlrpc service. For example if I have following function : @auth.requires_login def example(): temp = request.args[0] //do something on temp return dict(temp=temp)