@@ -0,0 +1,1101 @@
+from datetime import datetime%0Afrom afs.model.BaseModel import BaseModel%0A%0A%0Aclass Location(BaseModel):%0A    %22%22%22%0A    Model object of a location of a server%0A    %22%22%22%0A       %0A    def __init__(self, name=%22%22, building=%22%22, postcode=%22%22,street=%22%22,city=%22%22,state=%22%22,country=%22%22,contact=%22%22,description=%22%22,GPS=%22%22):%0A        %22%22%22%0A        initialize an empty object%0A        %22%22%22%0A        ## DB - ID%0A        self.id = None%0A        ## canonicalized partition name e.g %22ad%22 for %22/vicepad%22%0A        self.name   = name%0A        ## building%0A        self.building = building%0A        ## postcode%0A        self.postcode = postcode%0A        ## street + number%0A        self.street = street%0A        ## city %0A        self.city = city%0A        ## state%0A        self.state = state%0A        ## country%0A        self.country = country%0A        ## GPS data%0A        self.GPS = GPS%0A        ## contact%0A        self.contact = contact%0A        ## description%0A        self.description = description%0A        self.cdate   = datetime.now()%0A        self.udate   = datetime.now()%0A        ## list of attributes not to put into the DB%0A        self.ignAttrList= %5B%5D%0A

add Location object