Mercurial > hg > WSGraph
annotate wsgraph/client.py @ 26:60d7e38a20cd
mostly notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 12 Dec 2012 18:42:13 -0800 |
parents | d1a8c1436ded |
children | 9e173648d848 |
rev | line source |
---|---|
24
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
1 #!/usr/bin/env python |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
2 |
26 | 3 from model import Graph |
24
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
4 |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
5 class WSGraphClient(): |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
6 """REST client for WSGraph""" |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
7 |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
8 def __init__(self, server): |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
9 self.server = server |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
10 |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
11 if __name__ == '__main__': |
e46b4466abac
start a RESTful client; putting this here for now; it could go in model.py as it will inherit from the ABC, but keeping it here avoids a ccertain class of import hell
Jeff Hammel <jhammel@mozilla.com>
parents:
diff
changeset
|
12 pass # TODO |