Migrate implant set editor to new entity editor

This commit is contained in:
blitzmann
2016-03-29 21:51:39 -04:00
parent a3d9d5cca8
commit 1161037092
3 changed files with 70 additions and 222 deletions

View File

@@ -55,10 +55,11 @@ class ImplantSets():
set.implants.remove(implant)
eos.db.commit()
def newSet(self):
p = eos.types.ImplantSet()
p.name = ""
return p
def newSet(self, name):
s = eos.types.ImplantSet()
s.name = name
eos.db.save(s)
return s
def renameSet(self, s, newName):
s.name = newName