[web2py] Re: SQLFORM generating duplicate ids in HTML

2010-05-12 Thread Rohan
Any update on this? I am using auth.login and auth.register forms on a single page and it is resulting in duplicate ids for email and password rows. Original thread - http://groups.google.com/group/web2py/browse_thread/thread/e43c1203d8749630?tvc=2

[web2py] duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
I am using auth.login and auth.register forms on a single page and it is resulting in duplicate ids for email and password rows. similar discussions were going on this thread http://groups.google.com/group/web2py/browse_frm/thread/e43c1203d8749630 Is there any update on this?

[web2py] Re: duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
i am using latest version 1.77.3 (2010-04-20 02:48:54) On May 12, 8:29 pm, mdipierro wrote: > This was fixed. What version of web2py are you using? > > On May 12, 5:51 am, Rohan wrote: > > > > >  I am using auth.login and auth.register forms on a single page an

[web2py] Re: duplicate ids on using auth.login and auth.register forms on same page

2010-05-12 Thread Rohan
i am using latest version 1.77.3 (2010-04-20 02:48:54) On May 12, 8:29 pm, mdipierro wrote: > This was fixed. What version of web2py are you using? > > On May 12, 5:51 am, Rohan wrote: > > > > >  I am using auth.login and auth.register forms on a single page and it >

[web2py] ajax call not working for url with request args

2010-05-18 Thread Rohan
I am trying to call a function using ajax from a page which has a request arg. the api is not getting called. Same api gets called if I don't use request.args here is my code {{if request.args:}} {{=request.args[0]}} {{else:}} 10 {{pass}} and default.py def pageAjax(): """

[web2py] sender's name in mail

2010-06-01 Thread Rohan
I want to add sender's name in emails. Currently I am able to send mails from ad...@example.com but sender's name is displayed as admin which is not conveying the proper information. Can I add senders' name to mail settings so that sender's name is displayed as Example Admin or XYZ instead of admin

[web2py] invite-friend slice

2010-06-23 Thread Rohan
Anybody aware of any plugin/slice available for inviting friends from gmail, yahoo, hotmail, aol, facebook etc from a web application? Thanks in advance.

[web2py] Customizing auth.login form to specify class or id other than default value

2010-07-19 Thread Rohan
I want to customize auth.login form and create an input field for username/email like using widget customizations {{=form.custom.widget.email}}, I get input field like is there any way to customizing auth.login form to generate the desired form as specified above? I tried us

[web2py] reset password mail as html mail

2010-07-29 Thread Rohan
I need to send reset password mail as html, so i created in db.py auth.messages.reset_password = [None, "Some html + Click on below link to reset your password\n\n http://'+request.env.http_host+URL(r=request,c='account',f='user',args=['reset_password'])+'/%(key)s "] in tools.py request_reset_pa

[web2py] Re: reset password mail as html mail

2010-07-30 Thread Rohan
Thanks Massimo, I copied the send() api to my tools.py and it worked. On Jul 30, 3:03 am, mdipierro wrote: > Please try the code in trunk. If the message is '' it > should be sent automatically in html. > > On Jul 29, 3:00 am, Rohan wrote: > > > > >

[web2py] How to by-pass user/login page for authentication

2010-04-09 Thread Rohan
Hi All, I am a newbie with web2py. Basically I want to by-pass the user's visit to user/login page. My home page will have the login fields like twitter and I am planning to collect username/email and password from login screen and pass it to web2py's default authentication service for verificat

[web2py] Re: How to by-pass user/login page for authentication

2010-04-09 Thread Rohan
Can you please elaborate on this one? How can I point auth() to get info from my custom login form on my home page? Thanks On Apr 9, 5:11 pm, Yarko Tymciurak wrote: > On Apr 9, 5:46 am, Rohan wrote: > > > Hi All, > > >   I am a newbie with web2py. Basically I want to by-pass

[web2py] Re: How to by-pass user/login page for authentication

2010-04-13 Thread Rohan
form=auth()) > > Then you can just > > {{=auth_form}} in your controllers view. > > -Thadeus > > > > On Fri, Apr 9, 2010 at 7:19 AM, Rohan wrote: > > Thanks Yarko, > > > I don't want to use auth.requires_login() to index function as it will > > lead

[web2py] Customizing default form

2010-04-13 Thread Rohan
Hi All, I want to change the look and feel of default login form. I want it to display email and password fields in single row rather than 2 different rows. Any way to customize the default form? Any pointers? Thanks -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: Customizing default form

2010-04-14 Thread Rohan
(0)=='login'}} > {{=form.custom.begin}} > > {{=form.custom.widget.email}} > {{=form.custom.widget.password}} > {{=form.custom.submit}} > > {{=form.custom.end}} > {{else:}}{{=form}}{{pass}} > > On Apr 14, 12:19 am, Rohan wrote: > > > > > Hi All, > > >

[web2py] getting started with fbconnect

2010-04-19 Thread Rohan
Hi All, I want to use fbconnect with web2py. I found couple of threads in this group 1. http://groups.google.com/group/web2py/browse_frm/thread/84f27e0a06312da2/df12a6fac159242e?lnk=gst&q=fbconnect#df12a6fac159242e 2. http://groups.google.com/group/web2py/browse_frm/thread/31e9149ad731067d/938e0

[web2py] Re: Creating a new auth session

2010-04-19 Thread Rohan
hi Jon, Can you please share updates on integration between fbconnect and auth.user()? Thanks On Feb 2, 4:34 pm, Jon Romero wrote: > But then how auth.user is updated? > > > > > > >All auth does on successful login is: > >from gluon.storage import Storage > >session.auth=Storage() > >session.au

[web2py] Customizing Retrieve password process

2010-04-19 Thread Rohan
provided in that page something like verification of email while registering. Any pointers? Thanks Rohan -- Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en

[web2py] Re: getting started with fbconnect

2010-04-19 Thread Rohan
session.auth = Storage(user=user_obj, last_visit=request.now, expiration=2600) auth.user = user_obj On Apr 20, 10:10 am, howesc wrote: > Rohan, > > Someone pointed out gaema (http://code.google.com/p/gaema/) on the > group a couple of weeks ago as a tool that integrates

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
link http://...reset_password/1271747658-828516dd-150c-43a9-bfe3-fb8f8986b6fb generated above. Also, is there any way to customize the content of the mail? I want to add something above and below the default generated content. Thanks a lot Rohan On Apr 19, 7:24 pm, mdipierro wr

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
Followup question on this, After email is sent, user is navigated to the login page, but I want user to head back to homepage. Can you please share the settings for this? Thanks Rohan On Apr 20, 12:19 pm, Rohan wrote: > Hi mdipierro, > > Afte

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
link http://...reset_password/1271747658-828516dd-150c-43a9-bfe3-fb8f8986b6fb generated above. Thanks a lot Rohan On Apr 19, 7:24 pm, mdipierro wrote: > Yes. > > auth.settings.reset_password_requires_verification = True > > On Apr 19, 5:10 am, Rohan wrote: > > > > > Hi A

[web2py] Re: Customizing Retrieve password process

2010-04-20 Thread Rohan
ks. Is this correct way of doing it? Also my "To" field in the email received by user, is showing ="?utf-8? q?com?=" any ideas? Thanks Rohan On Apr 20, 12:48 pm, Rohan wrote: > Hi mdipierro, > > After setting auth.settings.reset_password_requires_verification

[web2py] Re: getting started with fbconnect

2010-04-22 Thread Rohan
Hi Christian, you can check http://www.web2pyslices.com/main/slices/take_slice/77 I have not tried it yet but thought let you know about it. Thanks On Apr 20, 10:10 am, howesc wrote: > Rohan, > > Someone pointed out gaema (http://code.google.com/p/gaema/) on the > group a couple

[web2py] cookie.strip('""') - AttributeError: 'Morsel' object has no attribute 'strip'

2010-04-26 Thread Rohan
I am trying to fetch some information from cookie cookie = cookies.get("xyz", "") if not cookie: return None args = dict((k, v[-1]) for k, v in cgi.parse_qs(cookie.strip('"')).items()) but on running, i am getting AttributeError: 'Morsel' object has no attribute 'strip' error Can som

[web2py] defaulting a value of a column in table with other columns of table

2010-04-28 Thread Rohan
Hi, I have added a new column access_key in auth_user table, I want to default it to with a value obtained by using email calculateValue(email): #some logic return calculatedValue I tried calling the above method using Field('access_key', 'string', readable=False, writable=False, defau

[web2py] Disabling few functions for certain users

2010-04-29 Thread Rohan
Hi All, I am creating a session for a user logged in from facebook and wants to disable certain functions like retrieve_password, change_password etc. here is the code for this if not auth.is_logged_in(): user_obj = Storage(user_table._filter_fields(user, id=True))

[web2py] Re: defaulting a value of a column in table with other columns of table

2010-05-03 Thread Rohan
Thanks On Apr 28, 7:01 pm, mdipierro wrote: > Much simpler. > > Field('access_key',calulate=lambda r: calculateValue(r['email'])) > > and it will be automatic > > On Apr 28, 2:26 am, Rohan wrote: > > > > > Hi, > > > I have added a n

[web2py] Invalid function for logged in users

2010-12-02 Thread Rohan
nted. What could be possible causes for this issue? Regards Rohan

[web2py] Re: help desk app

2010-12-28 Thread Rohan
Hi, I was working on tickets2email.py file to deploy it for my app and I observed (a bug) that we are appending request.folder twice e.g. applications/init/../init/errors/applications/init/errors/122.1 first in getting filename for ticket in tickets2email.py filename = os.path.join(path, fil

[web2py] Rocket errors on importing python library

2012-03-26 Thread Rohan
Web2py Version 1.99.7 (2012-03-04 22:12:08) stable Python 2.7.2+ I am trying to load external library from python ( http://pypi.python.org/pypi/readability-lxml/0.2.3) import urllib2 import readability page = urllib2.urlopen(url) html = page.read() page is fetched

[web2py] Re: Rocket errors on importing python library

2012-03-27 Thread Rohan
any updates? On Monday, 26 March 2012 20:03:07 UTC+5:30, Rohan wrote: > > Web2py Version 1.99.7 (2012-03-04 22:12:08) stable > Python 2.7.2+ > > I am trying to load external library from python ( > http://pypi.python.org/pypi/readability-lxml/0.2.3) > > import

[web2py] Current transaction aborted error when trying to save session in database

2011-11-29 Thread Rohan
web2py version: 1.98.2 I have two servers with shared database and I am trying to store session in database using session.connect(request, response, db=db, migrate=False) but session._try_store_in_db is throwing Internal Error from one of the servers but it works fine from second server.

[web2py] extra element in form toggles automatically

2011-04-03 Thread Rohan
I am creating an extra element in form as per guide http://web2py.com/book/default/chapter/07#Adding-extra-form-elements-to-SQLFORM here is the code controller settings_form = SQLFORM(db.auth_user, record, fields = ['first_name', 'email'], labels = {'first_name' : 'Full Name', 'email': 'Email Add

[web2py] Re: extra element in form toggles automatically

2011-04-04 Thread Rohan
If not always setting it to true, it's toggling it. Once on then off then on and so on, I modified code and set value based on boolean variable but had same issue. custom_checkbox = TR(LABEL(), TD(INPUT(_name='agree',value=session.dummy, _type='checkbox'), LABEL('Some setting'))) settings

[web2py] Re: extra element in form toggles automatically

2011-04-04 Thread Rohan
instead of session.dummy =(not session.dummy) on above post, i tried this on form.accepts session.dummy = form.vars. agree still the checkbox toggles.

[web2py] Re: extra element in form toggles automatically

2011-04-24 Thread Rohan
Any updates? as a workaround I am using response.js and setting the correct value of checkbox from js.

[web2py] LOAD with ajax=False fails to pass vars

2011-05-12 Thread Rohan
web2py version: Version 1.92.1 (2011-02-16 15:04:40) LOAD is failing to pass request.vars when ajax is set to False but passed vars when ajax is set to True. I want certain component to load before page finish loading so need to set ajax= False. I tried this call in default/index.html {{=LOAD(

[web2py] with_alias with where clause

2011-05-18 Thread Rohan
web2py: Version 1.92.1 (2011-02-16 15:04:40) with_alias fails to work when where clause is specified. It works fine when documented example is run >>> db()._select(db.person.name, Father.name, Mother.name, left=(Father.on(Father.id==db.person.father_id), Mother.on(Mother.id==db.person.mother_

[web2py] unable to submit auth forms

2012-10-17 Thread Rohan Malhotra
Version 2.1.1 (2012-10-15 12:44:40) stable Hi, I am not able to submit an auth form. I am using default auth code. On submitting the form, password is shown as invalid and 'enter from 0 to 512 characters' error is thrown. Input enter from 0 to 512 characters Please advice. Thanks --

[web2py] Re: unable to submit auth forms

2012-10-18 Thread Rohan Malhotra
On Thursday, 18 October 2012 02:51:52 UTC+5:30, Massimo Di Pierro wrote: > > What is the code? Is this something that worked before? using a custom > form? > > On Wednesday, 17 October 2012 09:17:57 UTC-5, Rohan Malhotra wrote: >> >> Version 2.1.1 (2012-10-15 12:44:4

[web2py] Re: Making minor changes to auth.navbar()

2013-12-05 Thread Rohan Prinja
How did you solve it? I'm facing the same problem - deciding where to place the navbar code I wrote. On Saturday, 15 December 2012 09:09:05 UTC+5:30, Lewis wrote: > > I solved this. > > On Friday, December 14, 2012 3:37:45 PM UTC-8, Lewis wrote: >> >> I understand that code and put it in my contr