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
alecs_myu
erp5
Commits
769dab8d
Commit
769dab8d
authored
Sep 02, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support json in json.
parent
10660755
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
+4
-0
bt5/erp5_web_shadir/bt/revision
bt5/erp5_web_shadir/bt/revision
+1
-1
No files found.
bt5/erp5_web_shadir/ExtensionTemplateItem/ShaDir.py
View file @
769dab8d
...
...
@@ -85,6 +85,10 @@ def WebSection_setObject(self, id, ob, **kw):
data
=
self
.
REQUEST
.
get
(
'BODY'
)
schema
=
self
.
WebSite_getJSONSchema
()
structure
=
json
.
loads
(
data
)
# 0 elementh in structure is json in json
# 1 elementh is just signature
structure
=
[
json
.
loads
(
structure
[
0
]),
structure
[
1
]]
validictory
.
validate
(
structure
,
schema
)
file_name
=
structure
[
0
].
get
(
'file'
,
None
)
...
...
bt5/erp5_web_shadir/bt/revision
View file @
769dab8d
68
\ No newline at end of file
69
\ 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