#!/usr/bin/env python

import pyfwk
from pyfi.entity.sector.model import SectorModel


# ----------------------------SECTOR-OBJECT-----------------------------#
class Sector(pyfwk.Object):
    id = None
    symbol = None
    name = None

    def __init__(self, id):
        self.id = id
        model = SectorModel.instance()
        rec = model.get_rec_from_id(id)
        self.symbol = rec['symbol']
        self.name = rec['name']


# ----------------------------------MAIN----------------------------------#
def main():
    pass

if __name__ == '__main__':
    main()

#!/usr/bin/env python

import pyfwk
from pyfi.entity.sector.model import SectorModel


# ----------------------------SECTOR-OBJECT-----------------------------#
class Sector(pyfwk.Object):
    id = None
    symbol = None
    name = None

    def __init__(self, id):
        self.id = id
        model = SectorModel.instance()
        rec = model.get_rec_from_id(id)
        self.symbol = rec['symbol']
        self.name = rec['name']


# ----------------------------------MAIN----------------------------------#
def main():
    pass

if __name__ == '__main__':
    main()

#!/usr/bin/env python # ----------------------------SECTOR-OBJECT-----------------------------# # ----------------------------------MAIN----------------------------------#