Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
8e4ca55a
Commit
8e4ca55a
authored
12 years ago
by
cramakri
Browse files
Options
Downloads
Patches
Plain Diff
Renamed GROUP column to CATEGORY in the service
SVN: 27204
parent
f3e9d7c8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service-v1/ipad_read.py
+5
-5
5 additions, 5 deletions
...1/dss/reporting-plugins/ipad-read-service-v1/ipad_read.py
openbis-ipad/ipad-example-data/readme.md
+1
-1
1 addition, 1 deletion
openbis-ipad/ipad-example-data/readme.md
with
6 additions
and
6 deletions
openbis-ipad/ipad-example-data/ipad-ui/1/dss/reporting-plugins/ipad-read-service-v1/ipad_read.py
+
5
−
5
View file @
8e4ca55a
...
...
@@ -13,7 +13,7 @@ def add_headers(builder):
REFCON : Data that is passed unchanged back to the server when a row is modified.
This can be used by the server to encode whatever it needs in order to
modify the row.
GROUP : A group
identifier for showing the entity. If empty or None, then the
CATEGORY : A category
identifier for showing the entity. If empty or None, then the
the entity in this row is not shown in top level navigation views. Such entities
may appear as children of other entities.
IMAGE_URL : A url for an image associated with this entity. If None or empty, no
...
...
@@ -26,7 +26,7 @@ def add_headers(builder):
builder
.
addHeader
(
"
IDENTIFIER
"
)
builder
.
addHeader
(
"
PERM_ID
"
)
builder
.
addHeader
(
"
REFCON
"
)
builder
.
addHeader
(
"
GROUP
"
)
builder
.
addHeader
(
"
CATEGORY
"
)
builder
.
addHeader
(
"
IMAGE_URL
"
)
builder
.
addHeader
(
"
CHILDREN
"
)
builder
.
addHeader
(
"
PROPERTIES
"
)
...
...
@@ -45,7 +45,7 @@ def add_row(builder, entry):
row
.
setCell
(
"
IDENTIFIER
"
,
entry
.
get
(
"
IDENTIFIER
"
))
row
.
setCell
(
"
PERM_ID
"
,
entry
.
get
(
"
PERM_ID
"
))
row
.
setCell
(
"
REFCON
"
,
entry
.
get
(
"
REFCON
"
))
row
.
setCell
(
"
GROUP
"
,
entry
.
get
(
"
GROUP
"
))
row
.
setCell
(
"
CATEGORY
"
,
entry
.
get
(
"
CATEGORY
"
))
row
.
setCell
(
"
IMAGE_URL
"
,
entry
.
get
(
"
IMAGE_URL
"
))
row
.
setCell
(
"
CHILDREN
"
,
entry
.
get
(
"
CHILDREN
"
))
row
.
setCell
(
"
PROPERTIES
"
,
str
(
entry
.
get
(
"
PROPERTIES
"
)))
...
...
@@ -59,7 +59,7 @@ def material_to_dict(material):
refcon
[
'
entityKind
'
]
=
'
MATERIAL
'
refcon
[
'
entityType
'
]
=
material
.
getMaterialType
()
material_dict
[
'
REFCON
'
]
=
ObjectMapper
().
writeValueAsString
(
refcon
)
material_dict
[
'
GROUP
'
]
=
material
.
getMaterialType
()
material_dict
[
'
CATEGORY
'
]
=
material
.
getMaterialType
()
if
material
.
getMaterialType
()
==
'
5HT_COMPOUND
'
:
material_dict
[
'
SUMMARY
'
]
=
material
.
getPropertyValue
(
"
FORMULA
"
)
material_dict
[
'
IMAGE_URL
'
]
=
image_url_for_compound
(
material
)
...
...
@@ -84,7 +84,7 @@ def sample_to_dict(five_ht_sample, material_by_perm_id):
refcon
[
'
entityKind
'
]
=
'
SAMPLE
'
refcon
[
'
entityType
'
]
=
five_ht_sample
.
getSampleType
()
sample_dict
[
'
REFCON
'
]
=
ObjectMapper
().
writeValueAsString
(
refcon
)
sample_dict
[
'
GROUP
'
]
=
five_ht_sample
.
getSampleType
()
sample_dict
[
'
CATEGORY
'
]
=
five_ht_sample
.
getSampleType
()
compound
=
material_by_perm_id
[
five_ht_sample
.
getPropertyValue
(
"
COMPOUND
"
)]
sample_dict
[
'
IMAGE_URL
'
]
=
image_url_for_compound
(
compound
)
...
...
This diff is collapsed.
Click to expand it.
openbis-ipad/ipad-example-data/readme.md
+
1
−
1
View file @
8e4ca55a
Introduction
============
This describes what needs to be done to initialize and use the iPad module.
This describes what needs to be done to initialize and use the
example
iPad module.
Initialization
--------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment