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
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
66e85ced
Commit
66e85ced
authored
Feb 07, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dms: py3
parent
ac4f4b42
Changes
28
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
31 additions
and
34 deletions
+31
-34
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
No files found.
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToDocx.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class DocToDocx:
raise
AttributeError
(
attr
)
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
])
docx
=
doc
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocToHtml.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class DocToHtml:
raise
AttributeError
(
attr
)
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
])
html
=
doc
.
convertTo
(
'html'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToDocy.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class DocxToDocy:
raise
AttributeError
(
attr
)
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
])
docy
=
docx
.
convertTo
(
'docy'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocxToOdt.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class DocxToOdt:
raise
AttributeError
(
attr
)
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
])
odt
=
docx
.
convertTo
(
'odt'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformDocyToDocx.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class DocyToDocx:
raise
AttributeError
(
attr
)
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
])
docx
=
docy
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToHtml.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdpToHtml:
raise
AttributeError
(
attr
)
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
])
html
=
odp
.
convertTo
(
'html'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPdf.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdpToPdf:
raise
AttributeError
(
attr
)
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
])
pdf
=
odp
.
convertTo
(
'pdf'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToPptx.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdpToPptx:
raise
AttributeError
(
attr
)
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
])
pptx
=
odp
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdpToSxi.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdpToSxi:
raise
AttributeError
(
attr
)
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
])
sxi
=
odp
.
convertTo
(
'sxi'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToHtml.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdsToHtml:
raise
AttributeError
(
attr
)
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
])
html
=
ods
.
convertTo
(
'html'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToPdf.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdsToPdf:
raise
AttributeError
(
attr
)
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
])
pdf
=
ods
.
convertTo
(
'pdf'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdsToXlsx.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class OdsToXlsx:
raise
AttributeError
(
attr
)
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
])
xlsx
=
ods
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToDocx.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdtToDocx:
raise
AttributeError
(
attr
)
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
])
docx
=
odt
.
convertTo
(
'docx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformOdtToHtml.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class OdtToHtml:
raise
AttributeError
(
attr
)
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
])
html
=
odt
.
convertTo
(
'html'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPdfToBmp.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class PdfToBmp:
raise
AttributeError
(
attr
)
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
])
bmp
=
pdf
.
convertTo
(
'bmp'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptToPptx.py
View file @
66e85ced
...
...
@@ -27,7 +27,7 @@ class PptToPptx:
raise
AttributeError
(
attr
)
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
])
pptx
=
ppt
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToOdp.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class PptxToOdp:
raise
AttributeError
(
attr
)
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
])
odp
=
pptx
.
convertTo
(
'odp'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptxToPpty.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class PptxToPpty:
raise
AttributeError
(
attr
)
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
])
ppty
=
pptx
.
convertTo
(
'ppty'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformPptyToPptx.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class PptyToPptx:
raise
AttributeError
(
attr
)
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
])
pptx
=
ppty
.
convertTo
(
'pptx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToHtml.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class SxiToHtml:
raise
AttributeError
(
attr
)
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
])
html
=
sxi
.
convertTo
(
'html'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformSxiToOdp.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class SxiToOdp:
raise
AttributeError
(
attr
)
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
])
odp
=
sxi
.
convertTo
(
'odp'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToOds.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class XlsToOds:
raise
AttributeError
(
attr
)
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
])
ods
=
xls
.
convertTo
(
'ods'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsToXlsx.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class XlsToXlsx:
raise
AttributeError
(
attr
)
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
])
xlsx
=
xls
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToOds.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class XlsxToOds:
raise
AttributeError
(
attr
)
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
])
ods
=
xlsx
.
convertTo
(
'ods'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsxToXlsy.py
View file @
66e85ced
...
...
@@ -24,7 +24,7 @@ class XlsxToXlsy:
raise
AttributeError
(
attr
)
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
])
xlsy
=
xlsx
.
convertTo
(
'xlsy'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/ModuleComponentTemplateItem/portal_components/module.erp5.TransformXlsyToXlsx.py
View file @
66e85ced
...
...
@@ -23,7 +23,7 @@ class XlsyToXlsx:
raise
AttributeError
(
attr
)
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
])
xlsx
=
xlsy
.
convertTo
(
'xlsx'
)
if
cache
is
not
None
:
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Document_getRelatedDocumentList.py
View file @
66e85ced
...
...
@@ -41,6 +41,6 @@ if relation_id == 'all':
for
obj
in
(
predecessor_value_list
+
successor_value_list
+
similar_value_list
):
dic
[
obj
]
=
None
return
dic
.
keys
(
)
return
list
(
dic
.
keys
()
)
return
[]
# failover - undefined relation
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/FCKeditor_getSetReferenceUrl.py
View file @
66e85ced
...
...
@@ -5,10 +5,7 @@ if brain.getValidationState() == 'embedded':
else
:
reference
=
brain
.
getReference
()
return
unicode
(
"javascript:SelectFile('%s?format=%s')"
%
(
reference
.
replace
(
"'"
,
"
\
\
'"
),
context
.
getPortalObject
().
portal_preferences
.
getPreferredImageFormat
()
),
'utf-8'
,
)
return
"javascript:SelectFile('%s?format=%s')"
%
(
reference
.
replace
(
"'"
,
"
\
\
'"
),
context
.
getPortalObject
().
portal_preferences
.
getPreferredImageFormat
()
)
\ 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