Commit 9d9bb500 authored by Jérome Perrin's avatar Jérome Perrin

run_my_doc: rename ERP5RunMyDocs_acquireSession

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