Merge pull request #26 from mistercrunch/dash

Bugfix
This commit is contained in:
Maxime Beauchemin 2015-09-18 14:31:54 -07:00
commit 116b1c01f5
2 changed files with 8 additions and 0 deletions

View File

@ -32,5 +32,10 @@ def runserver(debug, port):
print("Starting server with command: " + cmd)
Popen(cmd, shell=True).wait()
@manager.command
def load_examples(self):
"""Loads a set of Slices and Dashboards and a supporting dataset """
print("Loading examples")
if __name__ == "__main__":
manager.run()

View File

@ -49,6 +49,9 @@ class BaseViz(object):
d = self.args.copy()
d.update(kwargs)
href = Href('/panoramix/table/2/')
href = Href(
'/panoramix/{self.datasource.type}/'
'{self.datasource.id}/'.format(**locals()))
return href(d)
def get_df(self):