def __init__(self, app, parent, fields, record, name): EditRecordDialog.__init__(self, parent, fields, record, name) self.app = app self.connect(self.refbuttons['address'], SIGNAL('clicked()'), self.selAddress) #self.enableButtonOK(False) addressid = record.addressid text = AddressLink(self.app.db, addressid).firstChild.data self.refbuttons['address'].setText(text) self.addressid = addressid
def __init__(self, parent, record): fields = LOCFIELDS EditRecordDialog.__init__(self, parent, fields, record=record, name='EditLocation')
def __init__(self, app, parent, record): EditRecordDialog.__init__(self, parent, ['client'], record, 'ClientEditDialog') self.clientid = record['clientid']