예제 #1
0
    def onClickBtnAceptar(self):

        if self.view.tipo == 'M':
            param = ParamSist.get_by_id(
                self.view.controles[ParamSist.id.column_name].text())
        else:
            param = ParamSist()

        param.valor = self.view.controles[ParamSist.valor.column_name].text()
        param.parametro = self.view.controles[
            ParamSist.parametro.column_name].text()
        param.save()
        self.view.btnAceptarClicked()
예제 #2
0
class ABMParamSistView(ABM):

    model = ParamSist()
    camposAMostrar = [ParamSist.id, ParamSist.parametro, ParamSist.valor]
    ordenBusqueda = ParamSist.parametro
    campoClave = ParamSist.id

    def __init__(self, *args, **kwargs):
        ABM.__init__(self, *args, **kwargs)

    @inicializar_y_capturar_excepciones
    def ArmaCarga(self, *args, **kwargs):
        codigo = self.ArmaEntrada(ParamSist.id.column_name)
        parametro = self.ArmaEntrada(ParamSist.parametro.column_name)
        valor = self.ArmaEntrada(ParamSist.valor.column_name)