]> asedeno.scripts.mit.edu Git - bluechips.git/blobdiff - bluechips/model/tag.py
Expenditures can now be given a list of "tags"
[bluechips.git] / bluechips / model / tag.py
diff --git a/bluechips/model/tag.py b/bluechips/model/tag.py
new file mode 100644 (file)
index 0000000..c6a3661
--- /dev/null
@@ -0,0 +1,10 @@
+class Tag(object):
+    def __init__(self, expenditure=None, tag=u""):
+        self.expenditure = expenditure
+        self.tag = tag
+
+    def __repr__(self):
+        return '<Tag: expense: %s value: %s>' % (self.expenditure,
+                                                            self.tag)
+
+__all__ = ['Tag']