Commit a4d93e85 authored by Jérome Perrin's avatar Jérome Perrin Committed by Aurel

run_my_doc: rename ERP5RunMyDocs_acquireSession

parent a375353d
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>ERP5RunMyDocs_acquireSession</string> </value>
<value> <string>ERP5Site_acquireRunMyDocsSession</string> </value>
</item>
</dictionary>
</pickle>
......
......@@ -10,7 +10,7 @@ portal_status_message = ""
if image_caption in [None, ""]:
image_caption = chapter_title
session = context.ERP5RunMyDocs_acquireSession()
session = context.ERP5Site_acquireRunMyDocsSession()
if session.has_key('listbox') and len(session['listbox']) > 0:
listbox = session['listbox']
int_index = listbox[-1].int_index + 1
......
......@@ -15,7 +15,7 @@ portal_status_message = translateString("%s created. You can now add your first
page = context.newContent(portal_type=portal_type,
title = title)
session = context.ERP5RunMyDocs_acquireSession()
session = context.ERP5Site_acquireRunMyDocsSession()
session['title'] = title
session['author'] = author
session['author_mail'] = author_mail
......
......@@ -9,7 +9,7 @@ context.TestPageModule_createChapter(chapter_title, slide_type, image_url, image
portal_status_message = ""
session = context.ERP5RunMyDocs_acquireSession()
session = context.ERP5Site_acquireRunMyDocsSession()
test_page = context.restrictedTraverse(session['test_page_path'])
listbox = session['listbox']
title = session['title']
......
......@@ -2,7 +2,7 @@
Fetches the listbox from session variables
"""
session = context.ERP5RunMyDocs_acquireSession()
session = context.ERP5Site_acquireRunMyDocsSession()
if session.has_key('listbox'):
listbox = session['listbox']
else:
......
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