diff options
author | Zachary Sloan | 2012-09-27 17:40:16 -0500 |
---|---|---|
committer | Zachary Sloan | 2012-09-27 17:40:16 -0500 |
commit | 45fb8b4961e1dc8251502f04cb94a4fcf1848f83 (patch) | |
tree | 2d60cdc6d8bb59172809dbe8506802e43b3dc212 /wqflask/utility | |
parent | 720a13ae3ab8fda14f41a02374480574e27df890 (diff) | |
download | genenetwork2-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')
-rwxr-xr-x | wqflask/utility/__init__.py | 14 |
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__) + |