*        session.order[id]=session.clear()*
*
*
I would think the above would generate an error -- session.clear() empties 
the session object (and returns None), and then you attempt to assign to 
session.order[id], even though session.order no longer exists. Assuming 
session.order is a list, session.order.clear() would also generate an 
error, as .clear() is not a method of lists. As Derek suggested, you can 
use del to remove an item from a list.

Anthony

-- 

--- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to