data.py (1112B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\billtypes\data.py 2 from fsdBuiltData.common.base import BuiltDataLoader 3 try: 4 import localization 5 except ImportError: 6 localization = None 7 8 try: 9 import billTypesLoader 10 except ImportError: 11 billTypesLoader = None 12 13 class BillTypes(BuiltDataLoader): 14 __resBuiltFile__ = 'res:/staticdata/billTypes.fsdbinary' 15 __serverAutobuildBuiltFile__ = 'eve/autobuild/staticData/server/billTypes.fsdbinary' 16 __clientAutobuildBuiltFile__ = 'eve/autobuild/staticdata/client/billTypes.fsdbinary' 17 __loader__ = billTypesLoader 18 19 20 def get_bill_types(): 21 return BillTypes.GetData() 22 23 24 def get_bill_type_ids(): 25 return [ x for x in get_bill_types().iterkeys() ] 26 27 28 def get_bill_type_name(bill_type_id): 29 bill_type = get_bill_types().get(bill_type_id, None) 30 if bill_type is not None: 31 return bill_type.billTypeName 32 33 34 def get_bill_type_name_id(bill_type_id): 35 bill_type = get_bill_types().get(bill_type_id, None) 36 if bill_type is not None and hasattr(bill_type, 'nameID'): 37 return bill_type.nameID