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
d19b16cb
Commit
d19b16cb
authored
Sep 06, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Follow format changes: json in json.
parent
3ed9c776
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
+6
-3
bt5/networkcache_erp5/bt/revision
bt5/networkcache_erp5/bt/revision
+1
-1
No files found.
bt5/networkcache_erp5/TestTemplateItem/testShaDirExternal.py
View file @
d19b16cb
...
@@ -161,12 +161,15 @@ class TestShaDirExternal(ShaDirMixin, ShaSecurityMixin, ERP5TypeTestCase):
...
@@ -161,12 +161,15 @@ class TestShaDirExternal(ShaDirMixin, ShaSecurityMixin, ERP5TypeTestCase):
If the data does not follow the schema it must return the error.
If the data does not follow the schema it must return the error.
"""
"""
# Removing a required property
# Removing a required property
self
.
data_list
[
0
].
pop
(
'file'
)
data
=
json
.
loads
(
self
.
data
)
self
.
data
=
json
.
dumps
(
self
.
data_list
)
data
[
0
]
=
json
.
loads
(
data
[
0
])
data
[
0
].
pop
(
'file'
)
data
[
0
]
=
json
.
dumps
(
data
[
0
])
data
=
json
.
dumps
(
data
)
connection
=
httplib
.
HTTPConnection
(
'%s:%s'
%
(
self
.
host
,
self
.
port
))
connection
=
httplib
.
HTTPConnection
(
'%s:%s'
%
(
self
.
host
,
self
.
port
))
try
:
try
:
connection
.
request
(
'PUT'
,
self
.
path
,
self
.
data
,
self
.
header_dict
)
connection
.
request
(
'PUT'
,
self
.
path
,
data
,
self
.
header_dict
)
result
=
connection
.
getresponse
()
result
=
connection
.
getresponse
()
transaction
.
commit
()
transaction
.
commit
()
self
.
tic
()
self
.
tic
()
...
...
bt5/networkcache_erp5/bt/revision
View file @
d19b16cb
25
26
\ No newline at end of file
\ 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