Example #1
0
    def __init__(self, name, defaultLevel=None, initSkills=True):
        self.savedName = name
        self.__owner = None
        self.defaultLevel = defaultLevel
        self.__skills = []
        self.__skillIdMap = {}
        self.dirtySkills = set()

        if initSkills:
            for item in self.getSkillList():
                self.addSkill(Skill(item.ID, self.defaultLevel))

        self.__implants = HandledImplantBoosterList()
        self.apiKey = None

        mapper(Character, characters_table,
               properties={
                   "savedName": characters_table.c.name,
                   "_Character__owner": relation(
                       User,
                       backref="characters"),
                   "_Character__skills": relation(
                       Character.Skill,
                       backref="character",
                       cascade="all,delete-orphan"),
                   "_Character__implants": relation(
                       Implant,
                       collection_class=HandledImplantBoosterList,
                       cascade='all,delete-orphan',
                       backref='character',
                       single_parent=True,
                       primaryjoin=charImplants_table.charID == characters_table.c.ID,
                       secondaryjoin=charImplants_table.implantID == implant_table.ID,
                       secondary=charImplants_table),
               })
Example #2
0
 def __init__(self):
     self.__modules = HandledModuleList()
     self.__drones = HandledDroneList()
     self.__implants = HandledImplantBoosterList()
     self.__boosters = HandledImplantBoosterList()
     self.__projectedFits = HandledProjectedFitList()
     self.__projectedModules = HandledProjectedModList()
     self.__projectedDrones = HandledProjectedDroneList()
     self.__character = None
     self.__owner = None
     self.shipID = None
     self.projected = False
     self.name = ""
     self.fleet = None
     self.boostsFits = set()
     self.gangBoosts = None
     self.timestamp = time.time()
     self.build()
Example #3
0
    def __init__(self, name, defaultLevel=None, initSkills=True):
        self.savedName = name
        self.__owner = None
        self.defaultLevel = defaultLevel
        self.__skills = []
        self.__skillIdMap = {}
        self.dirtySkills = set()

        if initSkills:
            for item in self.getSkillList():
                self.addSkill(Skill(item.ID, self.defaultLevel))

        self.__implants = HandledImplantBoosterList()
        self.apiKey = None
Example #4
0
    def __init__(self, name=None):
        self.name = name
        self.__implants = HandledImplantBoosterList()

        mapper(ImplantSet,
               implant_set_table,
               properties={
                   "_ImplantSet__implants":
                   relation(eos.saveddata.implant.Implant,
                            collection_class=HandledImplantBoosterList,
                            cascade='all, delete, delete-orphan',
                            backref='set',
                            single_parent=True,
                            primaryjoin=implantsSetMap_table.setID ==
                            implant_set_table.ID,
                            secondaryjoin=implantsSetMap_table.implantID ==
                            eos.saveddata.implant.Implant.ID,
                            secondary=implantsSetMap_table),
               })
Example #5
0
 def __init__(self, name=None):
     self.name = name
     self.__implants = HandledImplantBoosterList()