[web2py] error shown by running application

2012-04-21 Thread Sonu Srivastava
when i am running my application this error is shown...how to remove this 
error

type 'exceptions.NameError' name 'middle_columns' is not defined

[web2py] creating manual login form

2012-04-20 Thread Sonu Srivastava
i create reagister form using auth_user but unable to create a manual login 
form by which we login.please anyone help me.

Re: [web2py] Re: unable to login in web2py through janrain

2012-04-11 Thread Sonu Srivastava
how to register ip on janrain
*Thanks regards,*
*Sonu Kumar Srivastava*
*Trainee*
*8955199189*
*www.zero-group.com* http://www.zero-group.com



On Tue, Apr 10, 2012 at 7:06 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 Why are you unable to login? Does it ask you a password? Try replace
 localhost with 127.0.0.1. Did you register this IP with Janrain?

 On Tuesday, 10 April 2012 00:28:52 UTC-5, Sonu Srivastava wrote:

 for using multiple signin i am register with rpxnow.com and create app
 and use the key in our web2py application bt i m unable to login...plz help
 me...i use below code for it

 import os
 from gluon.contrib.login_methods.**rpx_account import RPXAccount
 # we disable actions that will be provided by Janrain, not auth
 auth.settings.actions_disabled = ['register','change_password',**
 'request_reset_password']
 # we read the key frm a file because we want to keep it private
 api_key =open(os.path.join(request.**folder,'private','janrain_api_**
 key.txt'),'r').read().strip()
 # we connect auth to janrain
 auth.settings.login_form = RPXAccount(request, api_key=api_key,domain='**
 web2py',
 url = http://localhost:8000/%s/**default/user/login; %
 request.application)




Re: [web2py] Re: unable to login in web2py through janrain

2012-04-11 Thread Sonu Srivastava
Ya...i am already register with janrain and create a application and also
got API Key and i use that API key for my application...

following code i use...

import os
from gluon.contrib.login_methods.rpx_account import RPXAccount
auth.settings.actions_disabled =
['register','change_password','request_reset_password']
api_key
=open(os.path.join(request.folder,'private','janrain_api_key.txt'),'r').read().strip()
auth.settings.login_form = RPXAccount(request,
api_key=api_key,domain='web2py',
url = http://localhost:8000/%s/default/user/login; %
request.application)

i am using
localhost in domain whitelist in janrain

when i login from my application than it redirects to rpxnow with key but
again it shows my login page
*Thanks regards,*
*Sonu Kumar Srivastava*
*Trainee*
*8955199189*
*www.zero-group.com* http://www.zero-group.com



On Wed, Apr 11, 2012 at 2:39 PM, Sanjeet Roy sanjeet.ro...@gmail.comwrote:

 Janrain Engage is a service that provides middleware authentication. You
 can register with Janrain http://Janrain.com, register a domain (the
 name of your app) and set of URLs you will be using, and they will provide
 you with an API key.

 On Tuesday, April 10, 2012 10:58:52 AM UTC+5:30, Sonu Srivastava wrote:

 for using multiple signin i am register with rpxnow.com and create app
 and use the key in our web2py application bt i m unable to login...plz help
 me...i use below code for it

 import os
 from gluon.contrib.login_methods.**rpx_account import RPXAccount
 # we disable actions that will be provided by Janrain, not auth
 auth.settings.actions_disabled = ['register','change_password',**
 'request_reset_password']
 # we read the key frm a file because we want to keep it private
 api_key =open(os.path.join(request.**folder,'private','janrain_api_**
 key.txt'),'r').read().strip()
 # we connect auth to janrain
 auth.settings.login_form = RPXAccount(request, api_key=api_key,domain='**
 web2py',
 url = http://localhost:8000/%s/**default/user/login; %
 request.application)




Re: [web2py] Re: unable to login in web2py through janrain

2012-04-10 Thread Sonu Srivastava
ya Mr. massimo...now i register 127.0.0.1 ip address on janrain and also
replace localhost with ip address but still the same problem is occur.

When i login its redirect to rpxnow.com with key...but after that it again
shows the same login screen.
*Thanks regards,*
*Sonu Kumar Srivastava*
*Trainee*
*8955199189*
*www.zero-group.com* http://www.zero-group.com



On Tue, Apr 10, 2012 at 7:06 PM, Massimo Di Pierro 
massimo.dipie...@gmail.com wrote:

 Why are you unable to login? Does it ask you a password? Try replace
 localhost with 127.0.0.1. Did you register this IP with Janrain?

 On Tuesday, 10 April 2012 00:28:52 UTC-5, Sonu Srivastava wrote:

 for using multiple signin i am register with rpxnow.com and create app
 and use the key in our web2py application bt i m unable to login...plz help
 me...i use below code for it

 import os
 from gluon.contrib.login_methods.**rpx_account import RPXAccount
 # we disable actions that will be provided by Janrain, not auth
 auth.settings.actions_disabled = ['register','change_password',**
 'request_reset_password']
 # we read the key frm a file because we want to keep it private
 api_key =open(os.path.join(request.**folder,'private','janrain_api_**
 key.txt'),'r').read().strip()
 # we connect auth to janrain
 auth.settings.login_form = RPXAccount(request, api_key=api_key,domain='**
 web2py',
 url = http://localhost:8000/%s/**default/user/login; %
 request.application)




[web2py] unable to login in web2py through janrain

2012-04-09 Thread Sonu Srivastava
for using multiple signin i am register with rpxnow.com and create app and 
use the key in our web2py application bt i m unable to login...plz help 
me...i use below code for it

import os
from gluon.contrib.login_methods.rpx_account import RPXAccount
# we disable actions that will be provided by Janrain, not auth
auth.settings.actions_disabled = 
['register','change_password','request_reset_password']
# we read the key frm a file because we want to keep it private
api_key 
=open(os.path.join(request.folder,'private','janrain_api_key.txt'),'r').read().strip()
# we connect auth to janrain
auth.settings.login_form = RPXAccount(request, 
api_key=api_key,domain='web2py',
url = http://localhost:8000/%s/default/user/login; % 
request.application)


[web2py] data fetching from database

2012-04-05 Thread Sonu Srivastava
-i have a table with 6 fields-one field for question, 4 fields for answer 
and 1 last field for storing correct answer
-i want to fetch 1 question and it's 4 options on web pageoptions are 
with radio buttons
-when user select one option and click on next button then a flash is 
visible with message that question is wrong or right
-and then next question is come
-every question provide 60 seconds to select one of the answer and click 
on next
-user not selecting any option and 60 seconds are over then next question 
will appear automatically

please help me  how can i do coding for itplease help me...i am so 
interested in web2py



[web2py] regarding record fetching from database

2012-04-04 Thread Sonu Srivastava
i have a table in database and i want to fetch record one by one randomly 
from database on form...every record is shown on form with radio button and 
when user select one of them and click on submit button then next record 
will be shown on the form...
so..please help me for this code...