diff options
author | Raúl Benencia <rbenencia@linti.unlp.edu.ar> | 2012-08-02 18:06:23 -0300 |
---|---|---|
committer | Raúl Benencia <rbenencia@linti.unlp.edu.ar> | 2012-08-02 18:06:23 -0300 |
commit | 4d30bf280dbdb68ad72e01e911bf039b48ccb869 (patch) | |
tree | e885129fdfecb1327fb50e13ac24d3cca208cbb5 /model.py | |
parent | 10e9272d170f5c634e8ca8f7415fb4ad1454bfe6 (diff) |
Completed XML parsing
Diffstat (limited to 'model.py')
-rw-r--r-- | model.py | 22 |
1 files changed, 12 insertions, 10 deletions
@@ -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""" |