Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
erp5
Commits
21964c3b
Commit
21964c3b
authored
Jun 06, 2011
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Without content type no way to determine target format list.
parent
d3ef9f3f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getTargetFormatItemList.xml
...em/portal_skins/erp5_dms/Base_getTargetFormatItemList.xml
+3
-1
bt5/erp5_dms/bt/revision
bt5/erp5_dms/bt/revision
+1
-1
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_getTargetFormatItemList.xml
View file @
21964c3b
...
@@ -68,6 +68,9 @@ portal = context.getPortalObject()\n
...
@@ -68,6 +68,9 @@ portal = context.getPortalObject()\n
content_type = context.getContentType()\n
content_type = context.getContentType()\n
\n
\n
def getTargetFormatItemList(content_type):\n
def getTargetFormatItemList(content_type):\n
# without content type no wayto determine target format\n
if content_type is None:\n
return []\n
format_list = []\n
format_list = []\n
output_content_type_list = []\n
output_content_type_list = []\n
for obj in portal.portal_transforms.objectValues():\n
for obj in portal.portal_transforms.objectValues():\n
...
@@ -92,7 +95,6 @@ def getTargetFormatItemList(content_type):\n
...
@@ -92,7 +95,6 @@ def getTargetFormatItemList(content_type):\n
getTargetFormatItemList = CachingMethod(getTargetFormatItemList,\n
getTargetFormatItemList = CachingMethod(getTargetFormatItemList,\n
id=\'Base_getTargetFormatItemList\',\n
id=\'Base_getTargetFormatItemList\',\n
cache_factory=\'erp5_ui_long\')\n
cache_factory=\'erp5_ui_long\')\n
\n
return getTargetFormatItemList(content_type)\n
return getTargetFormatItemList(content_type)\n
</string>
</value>
</string>
</value>
</item>
</item>
...
...
bt5/erp5_dms/bt/revision
View file @
21964c3b
1249
1250
\ 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