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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
6394078f
Commit
6394078f
authored
Jul 20, 2015
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX erp5_dms:
parent
fb48d9cb
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
5 deletions
+10
-5
bt5/erp5_dms/ModuleTemplateItem/document_ingestion_module.xml
...erp5_dms/ModuleTemplateItem/document_ingestion_module.xml
+4
-0
bt5/erp5_dms/PathTemplateItem/portal_caches/dms_cache_factory/persistent_cache_plugin.xml
...rtal_caches/dms_cache_factory/persistent_cache_plugin.xml
+1
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_tryToUpdateBaseMetadata.xml
...ortal_skins/erp5_dms/Document_tryToUpdateBaseMetadata.xml
+3
-2
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_checkConversionFormatPermission.xml
...al_skins/erp5_dms/PDF_checkConversionFormatPermission.xml
+2
-2
No files found.
bt5/erp5_dms/ModuleTemplateItem/document_ingestion_module.xml
View file @
6394078f
<module>
<module>
<category_list>
<category>
business_application/9
</category>
</category_list>
<id>
document_ingestion_module
</id>
<id>
document_ingestion_module
</id>
<permission_list>
<permission_list>
<permission
type=
'tuple'
>
<permission
type=
'tuple'
>
...
@@ -79,6 +82,7 @@
...
@@ -79,6 +82,7 @@
<role>
Assignor
</role>
<role>
Assignor
</role>
<role>
Associate
</role>
<role>
Associate
</role>
<role>
Auditor
</role>
<role>
Auditor
</role>
<role>
Author
</role>
<role>
Manager
</role>
<role>
Manager
</role>
</permission>
</permission>
<permission
type=
'tuple'
>
<permission
type=
'tuple'
>
...
...
bt5/erp5_dms/PathTemplateItem/portal_caches/dms_cache_factory/persistent_cache_plugin.xml
View file @
6394078f
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<key>
<string>
categories
</string>
</key>
<key>
<string>
categories
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
specialise/portal_memcached/
persistent_memcached_plugin
</string>
<string>
specialise/portal_memcached/
1
</string>
</tuple>
</tuple>
</value>
</value>
</item>
</item>
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_tryToUpdateBaseMetadata.xml
View file @
6394078f
...
@@ -53,7 +53,8 @@
...
@@ -53,7 +53,8 @@
<value>
<string>
from ZODB.POSException import ConflictError\n
<value>
<string>
from ZODB.POSException import ConflictError\n
from Products.ERP5.Document.Document import ConversionError\n
from Products.ERP5.Document.Document import ConversionError\n
from Products.ERP5Type.Log import log\n
from Products.ERP5Type.Log import log\n
\n
if context.getExternalProcessingState() == \'converted\':\n
return \n
message = None\n
message = None\n
try:\n
try:\n
return context.updateBaseMetadata(**kw)\n
return context.updateBaseMetadata(**kw)\n
...
@@ -74,7 +75,7 @@ isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPos
...
@@ -74,7 +75,7 @@ isTransitionPossible = context.getPortalObject().portal_workflow.isTransitionPos
if isTransitionPossible(context, \'conversion_failed\'):\n
if isTransitionPossible(context, \'conversion_failed\'):\n
# mark document as conversion failed if not already done by convertToBaseFormat\n
# mark document as conversion failed if not already done by convertToBaseFormat\n
context.conversionFailed(comment=message)\n
context.conversionFailed(comment=message)\n
el
se
:\n
el
if context.getExternalProcessingState() not in (\'converted\', \'empty\')
:\n
# just save problem message in workflow history\n
# just save problem message in workflow history\n
context.processConversionFailed(comment=message)\n
context.processConversionFailed(comment=message)\n
log(\'%s %s\' %(context.getRelativeUrl(), message))\n
log(\'%s %s\' %(context.getRelativeUrl(), message))\n
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/PDF_checkConversionFormatPermission.xml
View file @
6394078f
...
@@ -75,8 +75,8 @@ if format in VALID_IMAGE_FORMAT_LIST:\n
...
@@ -75,8 +75,8 @@ if format in VALID_IMAGE_FORMAT_LIST:\n
\n
\n
# Max surface allowed to convert an image,\n
# Max surface allowed to convert an image,\n
# value is surface of A3 (11.7 inchs * 72 dpi * 16.5 inchs * 72 dpi)\n
# value is surface of A3 (11.7 inchs * 72 dpi * 16.5 inchs * 72 dpi)\n
maximum_surface = 1000772\n
maximum_surface = 1000772
*2 # Ivan
\n
\n
#context.log(str(width * height) + \' \' + str(maximum_surface) + context.getRelativeUrl())
\n
if (width * height) >
maximum_surface:\n
if (width * height) >
maximum_surface:\n
return False\n
return False\n
\n
\n
...
...
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