Add service for export XML and update eos
This commit is contained in:
2
eos
2
eos
Submodule eos updated: 9466cb9799...c3429ba850
@@ -269,6 +269,10 @@ class Fit(object):
|
|||||||
fit = eos.db.getFit(fitID)
|
fit = eos.db.getFit(fitID)
|
||||||
return fit.exportEft()
|
return fit.exportEft()
|
||||||
|
|
||||||
|
def exportXml(self, *fitIDs):
|
||||||
|
fits = map(lambda id: eos.db.getFit(id), fitIDs)
|
||||||
|
return Fit.exportXml(*fits)
|
||||||
|
|
||||||
def importFit(self, path):
|
def importFit(self, path):
|
||||||
f = file(path)
|
f = file(path)
|
||||||
type, fits = eos.types.Fit.importAuto(f.read())
|
type, fits = eos.types.Fit.importAuto(f.read())
|
||||||
|
|||||||
Reference in New Issue
Block a user