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
Joshua
erp5
Commits
520bf509
Commit
520bf509
authored
Sep 05, 2011
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Now the API is json in json.
parent
92b47386
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
bt5/erp5_web_shadir/TestTemplateItem/ShaDirMixin.py
bt5/erp5_web_shadir/TestTemplateItem/ShaDirMixin.py
+2
-2
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
+2
-2
bt5/erp5_web_shadir/bt/revision
bt5/erp5_web_shadir/bt/revision
+1
-1
No files found.
bt5/erp5_web_shadir/TestTemplateItem/ShaDirMixin.py
View file @
520bf509
...
...
@@ -77,13 +77,13 @@ class ShaDirMixin(object):
libc_version
=
'%s %s'
%
(
platform
.
libc_ver
()[
0
],
platform
.
libc_ver
()[
1
])
self
.
architecture
=
'%s %s'
%
(
platform
.
machine
(),
libc_version
)
self
.
data_list
=
[{
'file'
:
self
.
file_name
,
self
.
data_list
=
[
json
.
dumps
(
{
'file'
:
self
.
file_name
,
'urlmd5'
:
self
.
urlmd5
,
'sha512'
:
self
.
file_sha512sum
,
'creation_date'
:
str
(
self
.
creation_date
),
'expiration_date'
:
str
(
self
.
expiration_date
),
'distribution'
:
self
.
distribution
,
'architecture'
:
self
.
architecture
},
'architecture'
:
self
.
architecture
}
)
,
"User SIGNATURE goes here."
]
self
.
data
=
json
.
dumps
(
self
.
data_list
)
...
...
bt5/erp5_web_shadir/TestTemplateItem/testShaDir.py
View file @
520bf509
...
...
@@ -226,13 +226,13 @@ class TestShaDir(ShaDirMixin, ERP5TypeTestCase):
urlmd5_2
=
'anotherurlmd5'
+
str
(
random
.
random
())
sha512_2
=
'anothersha512_2'
+
str
(
random
.
random
())
key_2
=
'another_key'
+
str
(
random
.
random
())
data_list_2
=
[{
'file'
:
self
.
file_name
,
data_list_2
=
[
json
.
dumps
(
{
'file'
:
self
.
file_name
,
'urlmd5'
:
urlmd5_2
,
'sha512'
:
sha512_2
,
'creation_date'
:
str
(
self
.
creation_date
),
'expiration_date'
:
str
(
self
.
expiration_date
),
'distribution'
:
self
.
distribution
,
'architecture'
:
self
.
architecture
},
'architecture'
:
self
.
architecture
}
)
,
"User SIGNATURE goes here."
]
data_2
=
json
.
dumps
(
data_list_2
)
self
.
postInformation
(
key_2
,
data_2
)
...
...
bt5/erp5_web_shadir/bt/revision
View file @
520bf509
69
\ No newline at end of file
70
\ 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