Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- session.ibscustomer = plugins.ibs.getCustomerBySmartcard(params.card_nr)
- if not session.ibscustomer:
- h.redirect('/ibsinput', 'Needs Customer')
- boxmap = {
- 101: {'label': 'Motorola VIP1510/1710', 'type': '1510'},
- 826: {'label': 'Motorola VIP1910', 'type': '1910'},
- 791: {'label': 'Amino', 'type': 'amino'},
- 150: {'label': 'Sagem HD-Combo', 'type': 'hdc'},
- 828: {'label': 'Sagem HD-Zapper', 'type': 'hdz'},
- 897: {'label': 'Sagem HD-Zapper', 'type': 'hdz'},
- 160: {'label': 'Kjaerulff', 'type': 'kjaerulff'},
- 827: {'label': 'HD-PVR', 'type': 'pvr'},
- 794: {'label': 'Force Combo', 'type': 'forcecombo'},
- 85: {'label': 'Handan Combo', 'type': 'handancombo'},
- 140: {'label': 'Sagem HD-PVR', 'type': 'dthpvr'},
- 130: {'label': 'Sagem HD-Combo', 'type': 'dthhdcombo'},
- 111: {'label': 'Grundig PVR', 'type': 'grundigpvr'},
- 120: {'label': 'Handan Zapper', 'type': 'handanzapper'},
- 70: {'label': 'Media Highway', 'type': 'mhw'},
- 74: {'label': 'Media Highway', 'type': 'mhw'},
- 895: {'label': 'IDTV-CA', 'type': 'idtv'},
- 666: {'label': 'Motorola VIP1903', 'type': '1903'}
- }
- for box in session.ibscustomer.getBoxes():
- mapent = boxmap.get(box.modelid, {'label':box.model, 'type': box.model})
- box.label = mapent['label']
- box.type = mapent['type']
- box.recognized = box.modelid in boxmap
- cardmap = { 345: {'label': 'Smardcard Edge-QAM/IP', 'type': 'ip'},
- 824: {'label': 'Smartcard IP/Edge-QAM', 'type': 'catv'},
- 358: {'label': 'Smardcard QAM', 'type': 'net'},
- 340: {'label': 'Smartcard Media Highway', 'type': 'mhw'},}
- for card in session.ibscustomer.getSmartcards():
- mapent = cardmap.get(card.modelid, {'label':card.model, 'type': card.model})
- card.label = mapent['label']
- card.type = mapent['type']
- except Exception, e:
- print "Got Exception %s" % e
- h.redirect('/ibsinput', 'Error while loading customer')
- %>
- ~
- 33,1 Bott
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement