15 lines
377 B
Python
15 lines
377 B
Python
# SPDX-License-Identifier: WTFPL
|
|
|
|
from .dbrecord import DbRecord
|
|
|
|
class Fuse(DbRecord):
|
|
|
|
table = "fuse"
|
|
pk_field = "fuseid"
|
|
fields = ('fuseid', 'vid', 'fnumber', 'ftype', 'current', 'cableid',
|
|
'eid', 'location', 'description', 'remarks')
|
|
|
|
def __init__(self, db, cableid=None):
|
|
super().__init__(db, fuseid)
|
|
self.title = _("Fuse({})")
|