aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility/__init__.py
diff options
context:
space:
mode:
authorZachary Sloan2012-09-27 17:40:16 -0500
committerZachary Sloan2012-09-27 17:40:16 -0500
commit45fb8b4961e1dc8251502f04cb94a4fcf1848f83 (patch)
tree2d60cdc6d8bb59172809dbe8506802e43b3dc212 /wqflask/utility/__init__.py
parent720a13ae3ab8fda14f41a02374480574e27df890 (diff)
downloadgenenetwork2-45fb8b4961e1dc8251502f04cb94a4fcf1848f83.tar.gz
Worked on getting attributes in the SampleList object to display data properly, changed SampleList from an object list to object
Diffstat (limited to 'wqflask/utility/__init__.py')
-rwxr-xr-xwqflask/utility/__init__.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/wqflask/utility/__init__.py b/wqflask/utility/__init__.py
index 206d0d1c..d0e4a3fa 100755
--- a/wqflask/utility/__init__.py
+++ b/wqflask/utility/__init__.py
@@ -1,12 +1,12 @@
+from pprint import pformat as pf
+
+
class Bunch(object):
- """Make the configuration a little cleaner"""
- def __init__(self, config_string = "", **kw):
- if config_string:
- td = yaml.load(config_string)
- self.__dict__.update(td)
- else:
+ """Like a dictionary but using object notation"""
+ def __init__(self, **kw):
self.__dict__ = kw
def __repr__(self):
- return yaml.dump(self.__dict__, default_flow_style=False)
+ return pf(self.__dict__)
+