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
Carlos Ramos Carreño
erp5
Commits
9a31407a
Commit
9a31407a
authored
Feb 07, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dms: py3
parent
edf6ebaf
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
106 additions
and
125 deletions
+106
-125
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToDocx.py
...eItem/portal_components/module.erp5.TransformDocToDocx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToHtml.py
...eItem/portal_components/module.erp5.TransformDocToHtml.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToDocy.py
...Item/portal_components/module.erp5.TransformDocxToDocy.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToOdt.py
...eItem/portal_components/module.erp5.TransformDocxToOdt.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocyToDocx.py
...Item/portal_components/module.erp5.TransformDocyToDocx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToHtml.py
...eItem/portal_components/module.erp5.TransformOdpToHtml.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPdf.py
...teItem/portal_components/module.erp5.TransformOdpToPdf.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPptx.py
...eItem/portal_components/module.erp5.TransformOdpToPptx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToSxi.py
...teItem/portal_components/module.erp5.TransformOdpToSxi.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToHtml.py
...eItem/portal_components/module.erp5.TransformOdsToHtml.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToPdf.py
...teItem/portal_components/module.erp5.TransformOdsToPdf.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToXlsx.py
...eItem/portal_components/module.erp5.TransformOdsToXlsx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToDocx.py
...eItem/portal_components/module.erp5.TransformOdtToDocx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToHtml.py
...eItem/portal_components/module.erp5.TransformOdtToHtml.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPdfToBmp.py
...teItem/portal_components/module.erp5.TransformPdfToBmp.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptToPptx.py
...eItem/portal_components/module.erp5.TransformPptToPptx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToOdp.py
...eItem/portal_components/module.erp5.TransformPptxToOdp.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToPpty.py
...Item/portal_components/module.erp5.TransformPptxToPpty.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptyToPptx.py
...Item/portal_components/module.erp5.TransformPptyToPptx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToHtml.py
...eItem/portal_components/module.erp5.TransformSxiToHtml.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToOdp.py
...teItem/portal_components/module.erp5.TransformSxiToOdp.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToOds.py
...teItem/portal_components/module.erp5.TransformXlsToOds.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToXlsx.py
...eItem/portal_components/module.erp5.TransformXlsToXlsx.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToOds.py
...eItem/portal_components/module.erp5.TransformXlsxToOds.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToXlsy.py
...Item/portal_components/module.erp5.TransformXlsxToXlsy.py
+1
-1
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsyToXlsx.py
...Item/portal_components/module.erp5.TransformXlsyToXlsx.py
+1
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.py
.../portal_skins/erp5_dms/Document_getRelatedDocumentList.py
+1
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/FCKeditor_getSetReferenceUrl.py
...tem/portal_skins/erp5_dms/FCKeditor_getSetReferenceUrl.py
+4
-7
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testERP5WebWithDms.py
...ateItem/portal_components/test.erp5.testERP5WebWithDms.py
+75
-91
No files found.
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToDocx.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class DocToDocx:
...
@@ -24,7 +24,7 @@ class DocToDocx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
doc
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
doc
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docx
=
doc
.
convertTo
(
'docx'
)
docx
=
doc
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToHtml.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class DocToHtml:
...
@@ -24,7 +24,7 @@ class DocToHtml:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
doc
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
doc
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
html
=
doc
.
convertTo
(
'html'
)
html
=
doc
.
convertTo
(
'html'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToDocy.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class DocxToDocy:
...
@@ -23,7 +23,7 @@ class DocxToDocy:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
docx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docy
=
docx
.
convertTo
(
'docy'
)
docy
=
docx
.
convertTo
(
'docy'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToOdt.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class DocxToOdt:
...
@@ -23,7 +23,7 @@ class DocxToOdt:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
docx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odt
=
docx
.
convertTo
(
'odt'
)
odt
=
docx
.
convertTo
(
'odt'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocyToDocx.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class DocyToDocx:
...
@@ -23,7 +23,7 @@ class DocyToDocx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
docy
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docy
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docx
=
docy
.
convertTo
(
'docx'
)
docx
=
docy
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToHtml.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdpToHtml:
...
@@ -24,7 +24,7 @@ class OdpToHtml:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
html
=
odp
.
convertTo
(
'html'
)
html
=
odp
.
convertTo
(
'html'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPdf.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdpToPdf:
...
@@ -24,7 +24,7 @@ class OdpToPdf:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pdf
=
odp
.
convertTo
(
'pdf'
)
pdf
=
odp
.
convertTo
(
'pdf'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPptx.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdpToPptx:
...
@@ -24,7 +24,7 @@ class OdpToPptx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pptx
=
odp
.
convertTo
(
'pptx'
)
pptx
=
odp
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToSxi.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdpToSxi:
...
@@ -24,7 +24,7 @@ class OdpToSxi:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
sxi
=
odp
.
convertTo
(
'sxi'
)
sxi
=
odp
.
convertTo
(
'sxi'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToHtml.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdsToHtml:
...
@@ -24,7 +24,7 @@ class OdsToHtml:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
html
=
ods
.
convertTo
(
'html'
)
html
=
ods
.
convertTo
(
'html'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToPdf.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdsToPdf:
...
@@ -24,7 +24,7 @@ class OdsToPdf:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pdf
=
ods
.
convertTo
(
'pdf'
)
pdf
=
ods
.
convertTo
(
'pdf'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToXlsx.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class OdsToXlsx:
...
@@ -23,7 +23,7 @@ class OdsToXlsx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ods
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsx
=
ods
.
convertTo
(
'xlsx'
)
xlsx
=
ods
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToDocx.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdtToDocx:
...
@@ -24,7 +24,7 @@ class OdtToDocx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
docx
=
odt
.
convertTo
(
'docx'
)
docx
=
odt
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToHtml.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class OdtToHtml:
...
@@ -24,7 +24,7 @@ class OdtToHtml:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
odt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
html
=
odt
.
convertTo
(
'html'
)
html
=
odt
.
convertTo
(
'html'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPdfToBmp.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class PdfToBmp:
...
@@ -24,7 +24,7 @@ class PdfToBmp:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
pdf
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pdf
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
bmp
=
pdf
.
convertTo
(
'bmp'
)
bmp
=
pdf
.
convertTo
(
'bmp'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptToPptx.py
View file @
9a31407a
...
@@ -27,7 +27,7 @@ class PptToPptx:
...
@@ -27,7 +27,7 @@ class PptToPptx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
ppt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ppt
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pptx
=
ppt
.
convertTo
(
'pptx'
)
pptx
=
ppt
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToOdp.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class PptxToOdp:
...
@@ -24,7 +24,7 @@ class PptxToOdp:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
pptx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pptx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
pptx
.
convertTo
(
'odp'
)
odp
=
pptx
.
convertTo
(
'odp'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToPpty.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class PptxToPpty:
...
@@ -23,7 +23,7 @@ class PptxToPpty:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
pptx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pptx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ppty
=
pptx
.
convertTo
(
'ppty'
)
ppty
=
pptx
.
convertTo
(
'ppty'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptyToPptx.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class PptyToPptx:
...
@@ -23,7 +23,7 @@ class PptyToPptx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
ppty
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ppty
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
pptx
=
ppty
.
convertTo
(
'pptx'
)
pptx
=
ppty
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToHtml.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class SxiToHtml:
...
@@ -24,7 +24,7 @@ class SxiToHtml:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
sxi
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
sxi
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
html
=
sxi
.
convertTo
(
'html'
)
html
=
sxi
.
convertTo
(
'html'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToOdp.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class SxiToOdp:
...
@@ -24,7 +24,7 @@ class SxiToOdp:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
sxi
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
sxi
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
odp
=
sxi
.
convertTo
(
'odp'
)
odp
=
sxi
.
convertTo
(
'odp'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToOds.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class XlsToOds:
...
@@ -23,7 +23,7 @@ class XlsToOds:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
xls
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xls
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ods
=
xls
.
convertTo
(
'ods'
)
ods
=
xls
.
convertTo
(
'ods'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToXlsx.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class XlsToXlsx:
...
@@ -23,7 +23,7 @@ class XlsToXlsx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
xls
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xls
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsx
=
xls
.
convertTo
(
'xlsx'
)
xlsx
=
xls
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToOds.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class XlsxToOds:
...
@@ -23,7 +23,7 @@ class XlsxToOds:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
xlsx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
ods
=
xlsx
.
convertTo
(
'ods'
)
ods
=
xlsx
.
convertTo
(
'ods'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToXlsy.py
View file @
9a31407a
...
@@ -24,7 +24,7 @@ class XlsxToXlsy:
...
@@ -24,7 +24,7 @@ class XlsxToXlsy:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
xlsx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsx
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsy
=
xlsx
.
convertTo
(
'xlsy'
)
xlsy
=
xlsx
.
convertTo
(
'xlsy'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsyToXlsx.py
View file @
9a31407a
...
@@ -23,7 +23,7 @@ class XlsyToXlsx:
...
@@ -23,7 +23,7 @@ class XlsyToXlsx:
raise
AttributeError
(
attr
)
raise
AttributeError
(
attr
)
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
def
convert
(
self
,
orig
,
data
,
cache
=
None
,
filename
=
None
,
context
=
None
,
**
kwargs
):
data
=
str
(
orig
)
data
=
bytes
(
orig
)
xlsy
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsy
=
OOOdCommandTransform
(
context
,
filename
,
data
,
self
.
inputs
[
0
])
xlsx
=
xlsy
.
convertTo
(
'xlsx'
)
xlsx
=
xlsy
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
if
cache
is
not
None
:
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.py
View file @
9a31407a
...
@@ -41,6 +41,6 @@ if relation_id == 'all':
...
@@ -41,6 +41,6 @@ if relation_id == 'all':
for
obj
in
(
predecessor_value_list
+
successor_value_list
+
for
obj
in
(
predecessor_value_list
+
successor_value_list
+
similar_value_list
):
similar_value_list
):
dic
[
obj
]
=
None
dic
[
obj
]
=
None
return
dic
.
keys
(
)
return
list
(
dic
.
keys
()
)
return
[]
# failover - undefined relation
return
[]
# failover - undefined relation
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/FCKeditor_getSetReferenceUrl.py
View file @
9a31407a
...
@@ -5,10 +5,7 @@ if brain.getValidationState() == 'embedded':
...
@@ -5,10 +5,7 @@ if brain.getValidationState() == 'embedded':
else
:
else
:
reference
=
brain
.
getReference
()
reference
=
brain
.
getReference
()
return
unicode
(
return
"javascript:SelectFile('%s?format=%s')"
%
(
"javascript:SelectFile('%s?format=%s')"
%
(
reference
.
replace
(
"'"
,
"
\
\
'"
),
reference
.
replace
(
"'"
,
"
\
\
'"
),
context
.
getPortalObject
().
portal_preferences
.
getPreferredImageFormat
()
context
.
getPortalObject
().
portal_preferences
.
getPreferredImageFormat
()
)
),
\ No newline at end of file
'utf-8'
,
)
bt5/erp5_dms/TestTemplateItem/portal_components/test.erp5.testERP5WebWithDms.py
View file @
9a31407a
This diff is collapsed.
Click to expand it.
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