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
Lukas Niegsch
erp5
Commits
6218c4c8
Commit
6218c4c8
authored
Jan 14, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_jio: remove as not used and confusing
parent
26e3c68b
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
0 additions
and
1577 deletions
+0
-1577
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio.xml
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio.xml
+0
-26
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.py
...jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.py
+0
-23
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.xml
...io/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.py
...5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.py
+0
-0
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.xml
..._jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.py
...5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.py
+0
-661
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.xml
..._jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.py
...rp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.py
+0
-28
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.xml
...p5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.py
...inTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.py
+0
-28
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.xml
...nTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.py
...p5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.py
+0
-27
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.xml
...5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.py
...rp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.py
+0
-24
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.xml
...p5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.py
...inTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.py
+0
-24
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.xml
...nTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.py
..._jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.py
+0
-24
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.xml
...jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_removeAttachment.py
...emplateItem/portal_skins/erp5_jio/JIO_removeAttachment.py
+0
-24
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_removeAttachment.xml
...mplateItem/portal_skins/erp5_jio/JIO_removeAttachment.xml
+0
-62
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.py
..._jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.py
+0
-0
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.xml
...jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.xml
+0
-62
bt5/erp5_jio/bt/license
bt5/erp5_jio/bt/license
+0
-1
bt5/erp5_jio/bt/maintainer_list
bt5/erp5_jio/bt/maintainer_list
+0
-1
bt5/erp5_jio/bt/skip_coding_style_test
bt5/erp5_jio/bt/skip_coding_style_test
+0
-1
bt5/erp5_jio/bt/template_format_version
bt5/erp5_jio/bt/template_format_version
+0
-1
bt5/erp5_jio/bt/template_skin_id_list
bt5/erp5_jio/bt/template_skin_id_list
+0
-1
bt5/erp5_jio/bt/title
bt5/erp5_jio/bt/title
+0
-1
No files found.
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"Folder"
module=
"OFS.Folder"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
_objects
</string>
</key>
<value>
<tuple/>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
erp5_jio
</string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
option
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"option"
])
except
KeyError
:
option
=
{}
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
metadata_json
=
jio
.
getAllDocuments
(
option
)
return
jio
.
sendSuccess
(
metadata_json
)
# document_list = context.portal_catalog(portal_type="Web Page")
# return jio.sendSuccess(jio.getAllDocsFromDocumentList(document_list, include_docs=option.get("include_docs")))
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_allDocs.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_allDocs
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.py
deleted
100644 → 0
View file @
26e3c68b
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_check.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_check
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.py
deleted
100644 → 0
View file @
26e3c68b
This diff is collapsed.
Click to expand it.
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_class.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string>
**kw
</string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_class
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
# dataType "json"
# when sending -> [{"name": stringA, "value": stringB}]
# context.REQUEST.form <- {stringA: stringB}
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
metadata_json
=
jio
.
getDocumentMetadata
(
doc
)
except
ValueError
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot get document"
,
str
(
e
)))
except
LookupError
as
e
:
return
jio
.
sendError
(
jio
.
createNotFoundDict
(
"Cannot get document"
,
str
(
e
)))
return
jio
.
sendSuccess
(
metadata_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_get.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_get
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
# dataType "json"
# when sending -> [{"name": stringA, "value": stringB}]
# context.REQUEST.form <- {stringA: stringB}
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
attachment_data
=
jio
.
getDocumentAttachment
(
doc
)
except
ValueError
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot get attachment"
,
str
(
e
)))
except
LookupError
as
e
:
return
jio
.
sendError
(
jio
.
createNotFoundDict
(
"Cannot get attachment"
,
str
(
e
)))
return
jio
.
sendSuccess
(
attachment_data
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_getAttachment.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_getAttachment
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
response_json
=
jio
.
putDocumentMetadata
(
doc
,
overwrite
=
False
)
except
(
ValueError
,
TypeError
,
LookupError
)
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot post document"
,
str
(
e
)))
# except KeyError as e:
# return jio.sendError(jio.createForbiddenDict("Cannot post document", str(e)))
# except LookupError as e:
# return jio.sendError(jio.createConflictDict("Cannot post document", str(e)))
return
jio
.
sendSuccess
(
response_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_post.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_post
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
response_json
=
jio
.
putDocumentMetadata
(
doc
,
need_id
=
True
)
except
(
ValueError
,
TypeError
,
KeyError
)
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot put document"
,
str
(
e
)))
# except KeyError as e:
# return jio.sendError(jio.createForbiddenDict("Cannot put document", str(e)))
return
jio
.
sendSuccess
(
response_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_put.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_put
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
response_json
=
jio
.
putDocumentAttachment
(
doc
)
except
(
ValueError
,
TypeError
,
KeyError
)
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot put attachment"
,
str
(
e
)))
# except TypeError as e:
# return jio.sendError(jio.createBadRequestDict("Cannot put attachment", str(e)))
return
jio
.
sendSuccess
(
response_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_putAttachment.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_putAttachment
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
response_json
=
jio
.
removeDocument
(
doc
)
except
(
ValueError
,
TypeError
)
as
e
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot remove document"
,
str
(
e
)))
except
LookupError
as
e
:
return
jio
.
sendError
(
jio
.
createNotFoundDict
(
"Cannot remove document"
,
str
(
e
)))
return
jio
.
sendSuccess
(
response_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_remove.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_remove
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_removeAttachment.py
deleted
100644 → 0
View file @
26e3c68b
import
json
#from Products.ERP5Type.Log import log
# use JSON.parse as json.loads and JSON.stringify as json.dumps
context
.
REQUEST
.
response
.
setHeader
(
"Access-Control-Allow-Origin"
,
"*"
)
jio
=
context
.
JIO_class
()
try
:
doc
=
jio
.
jsonUtf8Loads
(
context
.
REQUEST
.
form
[
"doc"
])
except
KeyError
:
return
jio
.
sendError
(
jio
.
createBadRequestDict
(
"Cannot get document"
,
"No document information received"
))
try
:
mode
=
str
(
context
.
REQUEST
.
form
[
"mode"
])
except
KeyError
:
mode
=
"generic"
jio
.
setMode
(
mode
)
try
:
response_json
=
jio
.
removeAttachment
(
doc
)
except
(
ValueError
,
TypeError
)
as
e
:
return
jio
.
sendError
(
jio
.
createConflictDict
(
"Cannot remove attachment"
,
str
(
e
)))
except
LookupError
as
e
:
return
jio
.
sendError
(
jio
.
createNotFoundDict
(
"Cannot remove attachment"
,
str
(
e
)))
return
jio
.
sendSuccess
(
response_json
)
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_removeAttachment.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_removeAttachment
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.py
deleted
100644 → 0
View file @
26e3c68b
bt5/erp5_jio/SkinTemplateItem/portal_skins/erp5_jio/JIO_repair.xml
deleted
100644 → 0
View file @
26e3c68b
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"PythonScript"
module=
"Products.PythonScripts.PythonScript"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
Script_magic
</string>
</key>
<value>
<int>
3
</int>
</value>
</item>
<item>
<key>
<string>
_bind_names
</string>
</key>
<value>
<object>
<klass>
<global
name=
"NameAssignments"
module=
"Shared.DC.Scripts.Bindings"
/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key>
<string>
_asgns
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
name_container
</string>
</key>
<value>
<string>
container
</string>
</value>
</item>
<item>
<key>
<string>
name_context
</string>
</key>
<value>
<string>
context
</string>
</value>
</item>
<item>
<key>
<string>
name_m_self
</string>
</key>
<value>
<string>
script
</string>
</value>
</item>
<item>
<key>
<string>
name_subpath
</string>
</key>
<value>
<string>
traverse_subpath
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key>
<string>
_params
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
JIO_repair
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jio/bt/license
deleted
100644 → 0
View file @
26e3c68b
GPL
\ No newline at end of file
bt5/erp5_jio/bt/maintainer_list
deleted
100644 → 0
View file @
26e3c68b
tristan cavelier
\ No newline at end of file
bt5/erp5_jio/bt/skip_coding_style_test
deleted
100644 → 0
View file @
26e3c68b
1
\ No newline at end of file
bt5/erp5_jio/bt/template_format_version
deleted
100644 → 0
View file @
26e3c68b
1
\ No newline at end of file
bt5/erp5_jio/bt/template_skin_id_list
deleted
100644 → 0
View file @
26e3c68b
erp5_jio
\ No newline at end of file
bt5/erp5_jio/bt/title
deleted
100644 → 0
View file @
26e3c68b
erp5_jio
\ 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