Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tristan Cavelier
erp5
Commits
6670a490
Commit
6670a490
authored
Feb 17, 2012
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve Image handling on SlideShow Editor and compatibitlity with Web Page.
parent
e6a7601b
Changes
27
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
1183 additions
and
97 deletions
+1183
-97
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_createChapter.xml
...al_skins/erp5_run_my_doc/TestPageModule_createChapter.xml
+7
-8
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_createTestPage.xml
...l_skins/erp5_run_my_doc/TestPageModule_createTestPage.xml
+11
-6
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_finishCreation.xml
...l_skins/erp5_run_my_doc/TestPageModule_finishCreation.xml
+3
-3
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard.xml
...5_run_my_doc/TestPageModule_viewChapterCreationWizard.xml
+2
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_file.xml
...oc/TestPageModule_viewChapterCreationWizard/your_file.xml
+1
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_image_caption.xml
...geModule_viewChapterCreationWizard/your_image_caption.xml
+110
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_image_explanation.xml
...dule_viewChapterCreationWizard/your_image_explanation.xml
+120
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_tested.xml
.../TestPageModule_viewChapterCreationWizard/your_tested.xml
+28
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_getNextImageID.xml
.../portal_skins/erp5_run_my_doc/TestPage_getNextImageID.xml
+1
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_uploadImage.xml
...tem/portal_skins/erp5_run_my_doc/TestPage_uploadImage.xml
+22
-25
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator.xml
...ortal_skins/erp5_run_my_doc/TestPage_viewSlideCreator.xml
+4
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_chapter_title.xml
...n_my_doc/TestPage_viewSlideCreator/your_chapter_title.xml
+6
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_caption.xml
...n_my_doc/TestPage_viewSlideCreator/your_image_caption.xml
+105
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_id.xml
...p5_run_my_doc/TestPage_viewSlideCreator/your_image_id.xml
+3
-3
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_url.xml
...5_run_my_doc/TestPage_viewSlideCreator/your_image_url.xml
+105
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_tested.xml
...erp5_run_my_doc/TestPage_viewSlideCreator/your_tested.xml
+28
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_upload_image.xml
...un_my_doc/TestPage_viewSlideCreator/your_upload_image.xml
+109
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor.xml
...portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor.xml
+4
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_chapter_title.xml
...un_my_doc/TestPage_viewSlideEditor/your_chapter_title.xml
+1
-1
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_caption.xml
...un_my_doc/TestPage_viewSlideEditor/your_image_caption.xml
+105
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_id.xml
...rp5_run_my_doc/TestPage_viewSlideEditor/your_image_id.xml
+8
-3
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_url.xml
...p5_run_my_doc/TestPage_viewSlideEditor/your_image_url.xml
+105
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_not_tested.xml
...5_run_my_doc/TestPage_viewSlideEditor/your_not_tested.xml
+28
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_tested.xml
.../erp5_run_my_doc/TestPage_viewSlideEditor/your_tested.xml
+28
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_upload_image.xml
...run_my_doc/TestPage_viewSlideEditor/your_upload_image.xml
+109
-0
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
...Item/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
+129
-42
bt5/erp5_run_my_doc/bt/revision
bt5/erp5_run_my_doc/bt/revision
+1
-1
No files found.
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_createChapter.xml
View file @
6670a490
...
@@ -61,6 +61,9 @@ from Products.ERP5Type.Document import newTempBase\n
...
@@ -61,6 +61,9 @@ from Products.ERP5Type.Document import newTempBase\n
translateString = context.Base_translateString\n
translateString = context.Base_translateString\n
portal_status_message = ""\n
portal_status_message = ""\n
\n
\n
if image_caption in [None, ""]:\n
image_caption = chapter_title\n
\n
session = context.ERP5RunMyDocs_acquireSession()\n
session = context.ERP5RunMyDocs_acquireSession()\n
if session.has_key(\'listbox\') and len(session[\'listbox\']) >
0:\n
if session.has_key(\'listbox\') and len(session[\'listbox\']) >
0:\n
listbox = session[\'listbox\']\n
listbox = session[\'listbox\']\n
...
@@ -75,17 +78,12 @@ if slide_type in [\'Illustration\',\'Screenshot\']:\n
...
@@ -75,17 +78,12 @@ if slide_type in [\'Illustration\',\'Screenshot\']:\n
test_page_path = session[\'test_page_path\']\n
test_page_path = session[\'test_page_path\']\n
test_page = context.restrictedTraverse(test_page_path)\n
test_page = context.restrictedTraverse(test_page_path)\n
\n
\n
if slide_type
== \'Illustration\'
:\n
if slide_type
in [\'Illustration\', \'Screenshot\']
:\n
if image_url != "":\n
if image_url != "":\n
image_id = image_url\n
image_id = image_url\n
else:\n
else:\n
image_id = test_page.TestPage_getNextImageID(chapter_title, slide_type)\n
image_id = test_page.TestPage_getNextImageID(chapter_title, slide_type)\n
image = test_page.TestPage_uploadImage(image_id, file, batch_mode = True)\n
image = test_page.TestPage_uploadImage(image_id, file, batch_mode=True, image_caption=image_caption)\n
\n
if slide_type == \'Screenshot\':\n
tested = True\n
image_id = test_page.TestPage_getNextImageID(chapter_title, slide_type)\n
image = test_page.TestPage_uploadImage(image_id, file, batch_mode = True)\n
\n
\n
listbox.append(newTempBase(context.getPortalObject(),\n
listbox.append(newTempBase(context.getPortalObject(),\n
\'\',\n
\'\',\n
...
@@ -93,6 +91,7 @@ listbox.append(newTempBase(context.getPortalObject(),\n
...
@@ -93,6 +91,7 @@ listbox.append(newTempBase(context.getPortalObject(),\n
uid = str(int_index),\n
uid = str(int_index),\n
int_index = int_index,\n
int_index = int_index,\n
image_id = image_id,\n
image_id = image_id,\n
image_title = image_caption,\n
slide_type = slide_type,\n
slide_type = slide_type,\n
text_content = text_content,\n
text_content = text_content,\n
slide_content = slide_content,\n
slide_content = slide_content,\n
...
@@ -109,7 +108,7 @@ return context.Base_redirect(\'TestPageModule_viewChapterCreationWizard\', \n
...
@@ -109,7 +108,7 @@ return context.Base_redirect(\'TestPageModule_viewChapterCreationWizard\', \n
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
chapter_title, slide_type, image_url,
file, text_content, slide_content, tested
, **kw
</string>
</value>
<value>
<string>
chapter_title, slide_type, image_url,
image_caption, file, text_content, slide_content, tested=False
, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_createTestPage.xml
View file @
6670a490
...
@@ -51,22 +51,27 @@
...
@@ -51,22 +51,27 @@
<item>
<item>
<key>
<string>
_body
</string>
</key>
<key>
<string>
_body
</string>
</key>
<value>
<string>
"""\n
<value>
<string>
"""\n
Creates a Test Page (with no text) and generates the first chapter/slide\n
Creates a Test
|Web
Page (with no text) and generates the first chapter/slide\n
"""\n
"""\n
\n
\n
portal_type = \'Test Page\'\n
\n
if context.getPortalType() == "Web Page Module":\n
# This should be much more clever\n
portal_type = \'Web Page\'\n
\n
from Products.ERP5Type.Document import newTempBase\n
from Products.ERP5Type.Document import newTempBase\n
translateString = context.Base_translateString\n
translateString = context.Base_translateString\n
portal_status_message = translateString("
Test Page created. You can now add your first chapter."
)\n
portal_status_message = translateString("
%s created. You can now add your first chapter." % portal_type
)\n
\n
\n
test_page = context.newContent(portal_type = \'Test Page\',\n
page = context.newContent(portal_type=portal_type,\n
title = title,\n
title = title)\n
reference = \'\'.join(c for c in (\'.\'.join(title.split(\' \'))) if c.isalnum() or c == \'.\'))\n
\n
\n
session = context.ERP5RunMyDocs_acquireSession()\n
session = context.ERP5RunMyDocs_acquireSession()\n
session[\'title\'] = title\n
session[\'title\'] = title\n
session[\'author\'] = author\n
session[\'author\'] = author\n
session[\'author_mail\'] = author_mail\n
session[\'author_mail\'] = author_mail\n
session[\'test_page_path\'] =
test_
page.getPath()\n
session[\'test_page_path\'] = page.getPath()\n
session[\'listbox\'] = [newTempBase(context.getPortalObject(), \'\',\n
session[\'listbox\'] = [newTempBase(context.getPortalObject(), \'\',\n
title = title,\n
title = title,\n
uid = \'0\',\n
uid = \'0\',\n
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_finishCreation.xml
View file @
6670a490
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
\n
\n
from Products.ERP5Type.Document import newTempBase\n
from Products.ERP5Type.Document import newTempBase\n
# Add the last chapter to the listbox\n
# Add the last chapter to the listbox\n
context.TestPageModule_createChapter(chapter_title, slide_type, image_url, \n
context.TestPageModule_createChapter(chapter_title, slide_type, image_url,
image_caption,
\n
file, text_content, slide_content, tested, **kw)\n
file, text_content, slide_content, tested, **kw)\n
\n
\n
translateString = context.Base_translateString\n
translateString = context.Base_translateString\n
...
@@ -105,7 +105,7 @@ for chapter in listbox[1:]:\n
...
@@ -105,7 +105,7 @@ for chapter in listbox[1:]:\n
<h1>
"""+ title +"""
</h1>
"""\n
<h1>
"""+ title +"""
</h1>
"""\n
if not(image_id is None or not image_id):\n
if not(image_id is None or not image_id):\n
text_content +=\'\'\'\n
text_content +=\'\'\'\n
<img
type=
"image/svg+xml"
alt=
"
"
src=
"\'\'\'+ image_id + \'\'\'?format="
width=
"90%"
/>
\'\'\'\n
<img
type=
"image/svg+xml"
title=
"\'\'\' + chapter.image_title + \'\'\'"
alt=
"\'\'\' + chapter.image_title + \'\'\'
"
src=
"\'\'\'+ image_id + \'\'\'?format="
width=
"90%"
/>
\'\'\'\n
if not(slide_content is None or not slide_content):\n
if not(slide_content is None or not slide_content):\n
text_content += """\n
text_content += """\n
"""+ slide_content\n
"""+ slide_content\n
...
@@ -166,7 +166,7 @@ return test_page.Base_redirect(\'view\', \n
...
@@ -166,7 +166,7 @@ return test_page.Base_redirect(\'view\', \n
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
chapter_title, slide_type, image_url,
file, text_content, slide_content, tested
, **kw
</string>
</value>
<value>
<string>
chapter_title, slide_type, image_url,
image_caption, file, text_content, slide_content, tested=False
, **kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard.xml
View file @
6670a490
...
@@ -87,6 +87,8 @@
...
@@ -87,6 +87,8 @@
<string>
your_title
</string>
<string>
your_title
</string>
<string>
your_chapter_title
</string>
<string>
your_chapter_title
</string>
<string>
your_slide_type
</string>
<string>
your_slide_type
</string>
<string>
your_image_explanation
</string>
<string>
your_image_caption
</string>
<string>
your_image_url
</string>
<string>
your_image_url
</string>
<string>
your_file
</string>
<string>
your_file
</string>
<string>
your_slide_content
</string>
<string>
your_slide_content
</string>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_file.xml
View file @
6670a490
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Upload an Image
</string>
</value>
<value>
<string>
Upload an
Embedded
Image
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</value>
</value>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_image_caption.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
display_width
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_caption
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Caption of the image that will be used when generate Books.
</string>
</value>
</item>
<item>
<key>
<string>
display_width
</string>
</key>
<value>
<int>
90
</int>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image Caption (Default is Chapter Title)
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_image_explanation.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
default
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_explanation
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
<br />
\n
Images information will be only considered if you use Screenshot or Illustration.\n
<br
/>
\n
If you define Image URL, the file uploaded will be ignored.
]]>
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_label_field
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
required
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
]]>
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPageModule_viewChapterCreationWizard/your_tested.xml
View file @
6670a490
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<value>
<value>
<list>
<list>
<string>
description
</string>
<string>
description
</string>
<string>
enabled
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
</value>
</value>
...
@@ -53,6 +54,16 @@
...
@@ -53,6 +54,16 @@
<key>
<string>
tales
</string>
</key>
<key>
<string>
tales
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -80,6 +91,10 @@
...
@@ -80,6 +91,10 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
</item>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
<value>
<string>
my_checkbox
</string>
</value>
...
@@ -102,4 +117,17 @@
...
@@ -102,4 +117,17 @@
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getPortalType() == \'Test Page\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_getNextImageID.xml
View file @
6670a490
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
"""\n
"""\n
\n
\n
path = context.getPath()\n
path = context.getPath()\n
image_id = title
+ "_" + slide_type
\n
image_id = title
.lower() + "_" + slide_type.lower()
\n
\n
\n
# We replace all the whitespaces by dots\n
# We replace all the whitespaces by dots\n
image_id = \'\'.join(c for c in (\'_\'.join(image_id.split(\' \'))) if c.isalnum() or c == \'_\')\n
image_id = \'\'.join(c for c in (\'_\'.join(image_id.split(\' \'))) if c.isalnum() or c == \'_\')\n
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_uploadImage.xml
View file @
6670a490
...
@@ -56,41 +56,38 @@
...
@@ -56,41 +56,38 @@
\n
\n
translateString = context.Base_translateString\n
translateString = context.Base_translateString\n
\n
\n
msg = \'Slide created.\'\n
if image_caption in ["", None]:\n
image_caption = chapter_title\n
\n
\n
if edit_mode == 1:\n
if edit_mode:\n
msg = \'Slide updated.\'\n
msg = translateString(\'Slide updated.\')\n
else:\n
msg = translateString(\'Slide created.\')\n
\n
\n
def createImage(image_id):\n
def createImage(image_id):\n
return context.newContent(portal_type = \'Embedded File\',\n
return context.newContent(portal_type = \'Embedded File\',\n
title = image_id,\n
title=image_caption,\n
id = image_id,\n
id=image_id)\n
reference = image_id,\n
short_title = image_id)\n
\n
\n
if slide_type in [\'Screenshot\', \'Illustration\']:\n
if slide_type in [\'Screenshot\', \'Illustration\'] and upload_image:\n
if not(file is None or not file):\n
if edit_mode:\n
if edit_mode:\n
if image_id is None or not image_id:\n
image = createImage(context.TestPage_getNextImageID(chapter_title, slide_type))\n
else:\n
try:\n
try:\n
image = context.restrictedTraverse(context.getPath() + \'/\' + image_id)\n
image = context.restrictedTraverse(context.getPath() + \'/\' + image_id)\n
except:\n
except:\n
if not batch_mode:\n
image_id = context.TestPage_getNextImageID(chapter_title, slide_type)\n
image = createImage(image_id)\n
image = createImage(image_id)\n
msg += \' Image %s created.\' % image_id\n
else:\n
else:\n
if not batch_mode:\n
image_id = context.TestPage_getNextImageID(chapter_title, slide_type)\n
image = createImage(image_id)\n
image = createImage(image_id)\n
msg += \' Image \' + image_id + \' created.\'
\n
msg += \' Image %s created.\' % image_id
\n
\n
\n
if not(file is None or not file):\n
image.edit(file=file, \n
data=file.read(), \n
filename=file.filename)\n
\n
\n
msg += \' Image uploaded.\'\n
image.edit(file=file)\n
\n
msg += \' Image content uploaded to %s.\' % image.getRelativeUrl()\n
\n
if image_caption not in ["", None]:\n
image.setTitle(image_caption)\n
\n
\n
if batch_mode:\n
if batch_mode:\n
return image\n
return image\n
...
@@ -102,7 +99,7 @@ context.Base_redirect(form_id,\n
...
@@ -102,7 +99,7 @@ context.Base_redirect(form_id,\n
</item>
</item>
<item>
<item>
<key>
<string>
_params
</string>
</key>
<key>
<string>
_params
</string>
</key>
<value>
<string>
image_id, file, edit_mode = 0, slide_type = \'Illustration\', chapter_title = \'\', batch_mode = False, **kw
</string>
</value>
<value>
<string>
image_id, file, edit_mode = 0, slide_type = \'Illustration\', chapter_title = \'\', batch_mode = False,
image_caption = None, upload_image = 1,
**kw
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
id
</string>
</key>
<key>
<string>
id
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator.xml
View file @
6670a490
...
@@ -95,11 +95,14 @@
...
@@ -95,11 +95,14 @@
<list>
<list>
<string>
your_chapter_title
</string>
<string>
your_chapter_title
</string>
<string>
your_slide_type
</string>
<string>
your_slide_type
</string>
<string>
your_image_caption
</string>
<string>
your_image_id
</string>
<string>
your_file
</string>
<string>
your_file
</string>
<string>
your_image_url
</string>
<string>
your_slide_content
</string>
<string>
your_slide_content
</string>
<string>
your_text_content
</string>
<string>
your_text_content
</string>
<string>
your_tested
</string>
<string>
your_tested
</string>
<string>
your_
image_id
</string>
<string>
your_
upload_image
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_chapter_title.xml
View file @
6670a490
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<value>
<value>
<list>
<list>
<string>
display_width
</string>
<string>
display_width
</string>
<string>
extra
</string>
<string>
required
</string>
<string>
required
</string>
</list>
</list>
</value>
</value>
...
@@ -84,6 +85,10 @@
...
@@ -84,6 +85,10 @@
<key>
<string>
display_width
</string>
</key>
<key>
<string>
display_width
</string>
</key>
<value>
<int>
40
</int>
</value>
<value>
<int>
40
</int>
</value>
</item>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string>
required="required"
</string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_title
</string>
</value>
<value>
<string>
my_title
</string>
</value>
...
@@ -94,7 +99,7 @@
...
@@ -94,7 +99,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
required
</string>
</key>
<key>
<string>
required
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
target
</string>
</key>
<key>
<string>
target
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_caption.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_caption
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Caption of the image that will be used when generate Books.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image Caption
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_id.xml
View file @
6670a490
...
@@ -84,11 +84,11 @@
...
@@ -84,11 +84,11 @@
</item>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_title
</string>
</value>
<value>
<string>
my_
view_mode_
title
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
form_id
</string>
</key>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_view
TestPage
FieldLibrary
</string>
</value>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
required
</string>
</key>
<key>
<string>
required
</string>
</key>
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image ID
</string>
</value>
<value>
<string>
Embedded
Image ID
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</value>
</value>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_image_url.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The URL to the image, you can use relative urls or image reference.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image URL
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_tested.xml
View file @
6670a490
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<value>
<value>
<list>
<list>
<string>
description
</string>
<string>
description
</string>
<string>
enabled
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
</value>
</value>
...
@@ -53,6 +54,16 @@
...
@@ -53,6 +54,16 @@
<key>
<string>
tales
</string>
</key>
<key>
<string>
tales
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -80,6 +91,10 @@
...
@@ -80,6 +91,10 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
</item>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
<value>
<string>
my_checkbox
</string>
</value>
...
@@ -102,4 +117,17 @@
...
@@ -102,4 +117,17 @@
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getPortalType() == \'Test Page\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideCreator/your_upload_image.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_upload_image
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Do you want to upload a new image on ERP5?
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Upload New Image?
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor.xml
View file @
6670a490
...
@@ -95,13 +95,16 @@
...
@@ -95,13 +95,16 @@
<list>
<list>
<string>
your_chapter_title
</string>
<string>
your_chapter_title
</string>
<string>
your_slide_type
</string>
<string>
your_slide_type
</string>
<string>
your_image_caption
</string>
<string>
your_image_id
</string>
<string>
your_file
</string>
<string>
your_file
</string>
<string>
your_image_url
</string>
<string>
your_slide_content
</string>
<string>
your_slide_content
</string>
<string>
your_text_content
</string>
<string>
your_text_content
</string>
<string>
your_tested
</string>
<string>
your_tested
</string>
<string>
your_not_tested
</string>
<string>
your_not_tested
</string>
<string>
your_image_id
</string>
<string>
your_edit_mode
</string>
<string>
your_edit_mode
</string>
<string>
your_upload_image
</string>
</list>
</list>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_chapter_title.xml
View file @
6670a490
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
required
</string>
</key>
<key>
<string>
required
</string>
</key>
<value>
<int>
0
</int>
</value>
<value>
<int>
1
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
target
</string>
</key>
<key>
<string>
target
</string>
</key>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_caption.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_caption
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Caption of the image that will be used when generate Books.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image Caption
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_id.xml
View file @
6670a490
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
<list>
<list>
<string>
css_class
</string>
<string>
css_class
</string>
<string>
description
</string>
<string>
description
</string>
<string>
extra
</string>
<string>
required
</string>
<string>
required
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
...
@@ -82,13 +83,17 @@
...
@@ -82,13 +83,17 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Don\'t modify it manually.
</string>
</value>
<value>
<string>
Don\'t modify it manually.
</string>
</value>
</item>
</item>
<item>
<key>
<string>
extra
</string>
</key>
<value>
<string>
readonly="readonly"
</string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_title
</string>
</value>
<value>
<string>
my_
view_mode_
title
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
form_id
</string>
</key>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_view
TestPage
FieldLibrary
</string>
</value>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
required
</string>
</key>
<key>
<string>
required
</string>
</key>
...
@@ -100,7 +105,7 @@
...
@@ -100,7 +105,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image ID
</string>
</value>
<value>
<string>
Embedded Image ID (Read Only)
</string>
</value>
</item>
</item>
</dictionary>
</dictionary>
</value>
</value>
...
...
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_image_url.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_image_url
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
The URL to the image, you can use relative urls or image reference.
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_title
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Image URL
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_not_tested.xml
View file @
6670a490
...
@@ -10,6 +10,7 @@
...
@@ -10,6 +10,7 @@
<key>
<string>
delegated_list
</string>
</key>
<key>
<string>
delegated_list
</string>
</key>
<value>
<value>
<list>
<list>
<string>
default
</string>
<string>
description
</string>
<string>
description
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
...
@@ -53,6 +54,16 @@
...
@@ -53,6 +54,16 @@
<key>
<string>
tales
</string>
</key>
<key>
<string>
tales
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -76,6 +87,10 @@
...
@@ -76,6 +87,10 @@
<key>
<string>
values
</string>
</key>
<key>
<string>
values
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<int>
0
</int>
</value>
</item>
<item>
<item>
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Check it if you want to remove the current test from this chapter.
</string>
</value>
<value>
<string>
Check it if you want to remove the current test from this chapter.
</string>
</value>
...
@@ -102,4 +117,17 @@
...
@@ -102,4 +117,17 @@
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getPortalType() == \'Web Page\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_tested.xml
View file @
6670a490
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
<value>
<value>
<list>
<list>
<string>
description
</string>
<string>
description
</string>
<string>
enabled
</string>
<string>
title
</string>
<string>
title
</string>
</list>
</list>
</value>
</value>
...
@@ -53,6 +54,16 @@
...
@@ -53,6 +54,16 @@
<key>
<string>
tales
</string>
</key>
<key>
<string>
tales
</string>
</key>
<value>
<value>
<dictionary>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAI=
</string>
</persistent>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
<value>
<string></string>
</value>
...
@@ -80,6 +91,10 @@
...
@@ -80,6 +91,10 @@
<key>
<string>
description
</string>
</key>
<key>
<string>
description
</string>
</key>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
<value>
<string>
Check it if you want to add a sample test to this chapter.
</string>
</value>
</item>
</item>
<item>
<key>
<string>
enabled
</string>
</key>
<value>
<int>
1
</int>
</value>
</item>
<item>
<item>
<key>
<string>
field_id
</string>
</key>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
<value>
<string>
my_checkbox
</string>
</value>
...
@@ -102,4 +117,17 @@
...
@@ -102,4 +117,17 @@
</dictionary>
</dictionary>
</pickle>
</pickle>
</record>
</record>
<record
id=
"2"
aka=
"AAAAAAAAAAI="
>
<pickle>
<global
name=
"TALESMethod"
module=
"Products.Formulator.TALESField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: here.getPortalType() == \'Test Page\'
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/TestPage_viewSlideEditor/your_upload_image.xml
0 → 100644
View file @
6670a490
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
delegated_list
</string>
</key>
<value>
<list>
<string>
description
</string>
<string>
title
</string>
</list>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
your_upload_image
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string>
Do you want to upload a new image on ERP5?
</string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_checkbox
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
<item>
<key>
<string>
target
</string>
</key>
<value>
<string>
Click to edit the target
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string>
Upload New Image?
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_run_my_doc/SkinTemplateItem/portal_skins/erp5_run_my_doc/slideshow_editor.js.xml
View file @
6670a490
This diff is collapsed.
Click to expand it.
bt5/erp5_run_my_doc/bt/revision
View file @
6670a490
42
43
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment