summaryrefslogtreecommitdiff
path: root/model.py
diff options
context:
space:
mode:
authorRaúl Benencia <rbenencia@linti.unlp.edu.ar>2012-08-02 18:06:23 -0300
committerRaúl Benencia <rbenencia@linti.unlp.edu.ar>2012-08-02 18:06:23 -0300
commit4d30bf280dbdb68ad72e01e911bf039b48ccb869 (patch)
treee885129fdfecb1327fb50e13ac24d3cca208cbb5 /model.py
parent10e9272d170f5c634e8ca8f7415fb4ad1454bfe6 (diff)
Completed XML parsing
Diffstat (limited to 'model.py')
-rw-r--r--model.py22
1 files changed, 12 insertions, 10 deletions
diff --git a/model.py b/model.py
index f63cbd6..fbba248 100644
--- a/model.py
+++ b/model.py
@@ -1,19 +1,20 @@
class Network():
"""A simple network definition"""
- def __init__(self, name):
- self.name = name
- self.domain = []
+ def __init__(self):
+ self.name = ""
+ self.domains = []
+ self.admins = []
self.ip_blocks = []
self.data = {}
class Domain():
"""A simple domain definition"""
- def __init__(self, name, domain):
- self.name = name
- self.domain = domain
+ def __init__(self):
+ self.name = ""
self.admins = []
+ self.data = {}
def add_admin(self, admin):
"""Add an administrator for this network"""
@@ -23,10 +24,11 @@ class Domain():
class Person():
"""A simple person definition"""
- def __init__(self, name, surname, email):
- self.name = name
- self.surname = surname
- self.email = email
+ def __init__(self):
+ self.name = ""
+ self.surname = ""
+ self.email = ""
+ self.data = {}
class Data():
"""Abstract class for storing and getting information"""
nihil fit ex nihilo