No, I hadn''t. But it worked on turning it on. Thanks
But I don't get it. Record versioning just creates an archived db for the
modifications done. So how this feature being disabled is restricting me
from deleting a record ??

*Shubham Jain*
3rd Year, Software Engg
Delhi Technological University(Formerly DCE).


On Mon, Jul 14, 2014 at 5:14 PM, lyn2py <[email protected]> wrote:

> Did you turn on versioning?
>
> Can you post a traceback?
>
>
> On Friday, July 11, 2014 3:21:14 PM UTC+8, samurai wrote:
>>
>> As both Manuele and Leonel said, I changed it to args(0). But no use. It
>> was still not working.
>>
>> I actually changed a bit and now I am getting 'd' by get.vars.
>>
>> def pro_del():
>>          d = request.get_vars.d
>>          db(db.products.product_id == d).delete()
>>          session.flash = "Product Deleted"
>>          redirect(URL('default','index'))
>>          #return locals()
>>
>> Now also everything is working fine except the delete query.
>> Note: I am redirecting and appending the vars by using a javascript
>> function on the view side. If it has to do something with this problem.
>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/7_0Vvdx6Unw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to