I have installed the latest version of web2py 1.99.4 which has the  error
Traceback 

1.
2.
3.
4.
5.
6.
7.

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/gluon/restricted.py", line 192, in 
restricted
    exec ccode in environment
  File "/home/praveen/web2py/applications/welcome/models/db.py" 
<http://127.0.0.1:8000/admin/default/edit/welcome/models/db.py>, line 43, in 
<module>
    auth = Auth(db, hmac_key=Auth.get_or_create_key())
AttributeError: type object 'Auth' has no attribute 'get_or_create_key'

and it is giving the error as earlier version 1.99.7


On Wednesday, March 14, 2012 1:52:52 AM UTC+1, Massimo Di Pierro wrote:
>
> You seem to be running an old web2py. Perhaps you have a conflicting 
> version of the gluon libraries?
>
> On Tuesday, 13 March 2012 17:18:35 UTC-5, praveen krishna wrote:
>>
>> Hii,
>>        I am getting an error  at line 9: in creating an image blog in 
>> ubuntu(linux) 11.10 ,I have installed the web2py through terminal 
>>
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>>
>> 10.
>> 11.
>> 12.
>> 13.
>>
>>
>> def show():
>>     image = db(db.image.id==request.args(0)).select().first()
>>     db.comment.image_id.default = image.id
>>     form = SQLFORM(db.comment)
>>     if form.process().accepted:
>>
>>         response.flash = 'your comment is posted'
>>     comments = db(db.comment.image_id==image.id).select()
>>     return dict(image=image, comments=comments, form=form)
>>
>>
>>     return dict(image=image, comments=comments, form=form)
>>
>> I am not getting how to sort it out .
>> and the script  which I used in default.py is
>> def index():
>>     images = db().select(db.image.ALL, orderby=db.image.title)
>>     return dict(images=images)
>>
>> def show():
>>     image = db(db.image.id==request 
>> <http://127.0.0.1:8000/examples/global/vars/request>.args(0)).select().first()
>>     db.comment.image_id.default = image.id
>>     form = SQLFORM 
>> <http://127.0.0.1:8000/examples/global/vars/SQLFORM>(db.comment)
>>     if form.process().accepted:
>>         response <http://127.0.0.1:8000/examples/global/vars/response>.flash 
>> = 'your comment is posted'
>>     comments = db(db.comment.image_id==image.id).select()
>>     return dict(image=image, comments=comments, form=form)
>>
>> def download():
>>     return response 
>> <http://127.0.0.1:8000/examples/global/vars/response>.download(request 
>> <http://127.0.0.1:8000/examples/global/vars/request>, db)
>>
>> response 
>> <http://127.0.0.1:8000/examples/global/vars/response>._vars=response 
>> <http://127.0.0.1:8000/examples/global/vars/response>._caller(show)
>>
>>
>>   
>>
>>
On Wednesday, March 14, 2012 1:52:52 AM UTC+1, Massimo Di Pierro wrote:
>
> You seem to be running an old web2py. Perhaps you have a conflicting 
> version of the gluon libraries?
>
> On Tuesday, 13 March 2012 17:18:35 UTC-5, praveen krishna wrote:
>>
>> Hii,
>>        I am getting an error  at line 9: in creating an image blog in 
>> ubuntu(linux) 11.10 ,I have installed the web2py through terminal 
>>
>> 4.
>> 5.
>> 6.
>> 7.
>> 8.
>> 9.
>>
>> 10.
>> 11.
>> 12.
>> 13.
>>
>>
>> def show():
>>     image = db(db.image.id==request.args(0)).select().first()
>>     db.comment.image_id.default = image.id
>>     form = SQLFORM(db.comment)
>>     if form.process().accepted:
>>
>>         response.flash = 'your comment is posted'
>>     comments = db(db.comment.image_id==image.id).select()
>>     return dict(image=image, comments=comments, form=form)
>>
>>
>>     return dict(image=image, comments=comments, form=form)
>>
>> I am not getting how to sort it out .
>> and the script  which I used in default.py is
>> def index():
>>     images = db().select(db.image.ALL, orderby=db.image.title)
>>     return dict(images=images)
>>
>> def show():
>>     image = db(db.image.id==request 
>> <http://127.0.0.1:8000/examples/global/vars/request>.args(0)).select().first()
>>     db.comment.image_id.default = image.id
>>     form = SQLFORM 
>> <http://127.0.0.1:8000/examples/global/vars/SQLFORM>(db.comment)
>>     if form.process().accepted:
>>         response <http://127.0.0.1:8000/examples/global/vars/response>.flash 
>> = 'your comment is posted'
>>     comments = db(db.comment.image_id==image.id).select()
>>     return dict(image=image, comments=comments, form=form)
>>
>> def download():
>>     return response 
>> <http://127.0.0.1:8000/examples/global/vars/response>.download(request 
>> <http://127.0.0.1:8000/examples/global/vars/request>, db)
>>
>> response 
>> <http://127.0.0.1:8000/examples/global/vars/response>._vars=response 
>> <http://127.0.0.1:8000/examples/global/vars/response>._caller(show)
>>
>>
>>   
>>
>>

Reply via email to