Commit d81abd3d authored by Arnaud Fontaine's avatar Arnaud Fontaine

newTemp*() deprecation (1bce8563, 04b49859): Cosmetic: Fix docstring.

parent 7bea7bb2
...@@ -164,8 +164,9 @@ class SessionTool(BaseTool): ...@@ -164,8 +164,9 @@ class SessionTool(BaseTool):
session_id = '1234567' session_id = '1234567'
session = context.portal_sessions[session_id] session = context.portal_sessions[session_id]
session['shopping_cart'] = newTempOrder(context, '987654321') # will work only for local RAM sessions # will work only for local RAM sessions
(you can also use 'session.edit(shopping_cart= newTempOrder(context, '987654321'))' ) session['shopping_cart'] = context.newContent(portal_type='Order', temp_object=True, id='987654321')
(you can also use 'session.edit(shopping_cart=context.newContent(context.newContent(portal_type='Order', temp_object=True, id='987654321'))' )
(later in another script you can acquire shopping_cart): (later in another script you can acquire shopping_cart):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment