Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
olapy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
olapy
Commits
b1dbb5d0
Commit
b1dbb5d0
authored
May 10, 2017
by
mouadh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
7a5c977e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
olapy/rest_services.py
olapy/rest_services.py
+11
-9
No files found.
olapy/rest_services.py
View file @
b1dbb5d0
...
...
@@ -22,20 +22,22 @@ class OlapyService(ServiceBase):
@
rpc
(
_returns
=
Unicode
)
def
get_tables
(
ctx
):
return
{
table_name
:
table_dataframe
.
to_json
()
for
table_name
,
table_dataframe
in
OlapyService
.
executer
.
tables_loaded
.
items
()}
return
{
table_name
:
table_dataframe
.
to_json
()
for
table_name
,
table_dataframe
in
OlapyService
.
executer
.
tables_loaded
.
items
()
}
@
rpc
(
_returns
=
Iterable
(
Unicode
))
def
get_measures
(
ctx
):
return
OlapyService
.
executer
.
measures
application
=
Application
([
OlapyService
],
application
=
Application
(
[
OlapyService
],
tns
=
'spyne.olapy.services'
,
in_protocol
=
HttpRpc
(
validator
=
'soft'
),
out_protocol
=
JsonDocument
()
)
out_protocol
=
JsonDocument
())
if
__name__
==
'__main__'
:
# You can use any Wsgi server. Here, we chose
...
...
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