def inicializar(self): BaseWS.inicializar(self) self.CodigoTransaccion = self.Errores = self.Resultado = None self.Resultado = '' self.Errores = [] # lista de strings para la interfaz self.errores = [] # lista de diccionarios (uso interno) self.CantPaginas = self.HayError = None
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Resultado = self.Motivo = self.Reproceso = '' self.LastID = self.LastCMP = self.CAE = self.Vencimiento = '' self.CbteNro = self.FechaCbte = self.PuntoVenta = self.ImpTotal = None self.InstallDir = INSTALL_DIR self.FchVencCAE = "" # retrocompatibilidad
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Resultado = self.Motivo = self.Reproceso = '' self.LastID = self.LastCMP = self.CAE = self.CAEA = self.Vencimiento = '' self.CbteNro = self.CbtDesde = self.CbtHasta = self.PuntoVenta = None self.ImpTotal = self.ImpIVA = self.ImpOpEx = self.ImpNeto = self.ImptoLiq = self.ImpTrib = None self.EmisionTipo = self.Periodo = self.Orden = "" self.FechaCbte = self.FchVigDesde = self.FchVigHasta = self.FchTopeInf = self.FchProceso = ""
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.errores = [] self.CAE = "" self.NroComprobante = self.FechaComprobante = self.FechaProcesoAFIP = '' self.NroCodigoBarras = self.FechaVencimientoCae = None self.ImporteBruto = self.ImporteIVASobreBruto = None self.ImporteTotalGastos = self.ImporteIVASobreGastos = None self.ImporteTotalTributos = self.ImporteTotalNeto = None self.datos = {}
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Resultado = self.Motivo = self.Reproceso = '' self.LastID = self.LastCMP = self.CAE = self.Vencimiento = '' self.CAEA = None self.Periodo = self.Orden = "" self.FchVigDesde = self.FchVigHasta = "" self.FchTopeInf = self.FchProceso = "" self.CbteNro = self.FechaCbte = ImpTotal = None self.EmisionTipo = self.Evento = '' self.Reproceso = '' # no implementado
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.errores = [] self.CAE = "" self.NroComprobante = self.FechaLiquidacion = '' self.ImporteNeto = "" self.ImporteIVA = "" self.AlicuotaIVA = "" self.TotalRetenciones = "" self.TotalTributos = "" self.Subtotal = self.Total = "" self.datos = {}
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.errores = [] self.CAE = "" self.NroComprobante = self.FechaComprobante = '' self.AlicuotaIVA = self.TotalNeto = self.ImporteIVA = None self.TotalBonificacionesCalidad = None self.TotalPenalizacionesCalidad = None self.TotalBonificacionesComerciales = None self.TotalDebitosComerciales = None self.TotalOtrosImpuestos = None self.Total = None self.datos = {}
def Conectar(self, cache=None, wsdl=None, proxy="", wrapper=None, cacert=None, timeout=30): # Conecto usando el método estandard: print "timeout", timeout ok = BaseWS.Conectar(self, cache, wsdl, proxy, wrapper, cacert, timeout, soap_server="jetty") if ok: # Establecer credenciales de seguridad: self.client['wsse:Security'] = { 'wsse:UsernameToken': { 'wsse:Username': self.Username, 'wsse:Password': self.Password, } } return ok
def Conectar(self, cache=None, wsdl=None, proxy="", wrapper=None, cacert=None, timeout=None): # Conecto usando el método estandard: ok = BaseWS.Conectar(self, cache, wsdl, proxy, wrapper, cacert, timeout, soap_server="jetty") if ok: # si el archivo es local, asumo que ya esta corregido: if not self.wsdl.startswith("file"): # corrijo ubicación del servidor (localhost:9050 en el WSDL) location = self.wsdl[:-5] if 'IWebServiceSDRNService' in self.client.services: ws = self.client.services['IWebServiceSDRNService'] else: ws = self.client.services['IWebServiceSDRN'] ws['ports']['IWebServiceSDRNPort']['location'] = location # Establecer credenciales de seguridad: self.client['wsse:Security'] = { 'wsse:UsernameToken': { 'wsse:Username': self.Username, 'wsse:Password': self.Password, } } return ok
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Persona = '' self.Reproceso = '' # no implementado self.cuit = self.dni = 0 self.tipo_persona = "" # FISICA o JURIDICA self.tipo_doc = 0 self.estado = "" # ACTIVO self.denominacion = "" self.direccion = self.localidad = self.provincia = self.cod_postal = "" self.domicilios = [] self.impuestos = [] self.actividades = [] self.imp_iva = self.empleador = self.integrante_soc = self.cat_iva = "" self.monotributo = self.actividad_monotributo = "" self.data = {}
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Persona = '' self.Reproceso = '' # no implementado self.cuit = self.dni = 0 self.tipo_persona = "" # FISICA o JURIDICA self.tipo_doc = self.nro_doc = 0 self.estado = "" # ACTIVO self.denominacion = "" self.direccion = self.localidad = self.provincia = self.cod_postal = "" self.domicilios = [] self.impuestos = [] self.actividades = [] self.imp_iva = self.empleador = self.integrante_soc = self.cat_iva = "" self.monotributo = self.actividad_monotributo = "" self.data = {} self.errores = []
def Conectar(self, cache=None, wsdl=None, proxy="", wrapper=None, cacert=None, timeout=30, soap_server="oracle"): return BaseWS.Conectar(self, cache, wsdl, proxy, wrapper, cacert, timeout, soap_server)
def Conectar(self, cache=None, url="", proxy="", wrapper="", cacert=None, timeout=30): "Establecer la conexión a los servidores de la AFIP" # llamo al constructor heredado: ok = BaseWS.Conectar(self, cache, url, proxy, wrapper, cacert, timeout) if ok: # corrijo ubicación del servidor (puerto htttp 80 en el WSDL) location = self.client.services['LtvService']['ports']['LtvEndPoint']['location'] if location.startswith("http://"): print "Corrigiendo WSDL ...", location, location = location.replace("http://", "https://").replace(":80", ":443") self.client.services['LtvService']['ports']['LtvEndPoint']['location'] = location print location return ok
def inicializar(self): BaseWS.inicializar(self) self.CodigoTransaccion = self.Errores = self.Resultado = None
def __init__(self, reintentos=1): self.Username = self.Password = None BaseWS.__init__(self, reintentos)
def Conectar(self, *args, **kwargs): ret = BaseWS.Conectar(self, *args, **kwargs) return ret
def __init__(self, reintentos=1): self.Username = self.Password = None self.Transacciones = [] BaseWS.__init__(self, reintentos)
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.Resultado = self.EmisionTipo = "" self.CAI = self.CAE = self.CAEA = self.Vencimiento = '' self.CbteNro = self.PuntoVenta = self.ImpTotal = None
def __init__(self, reintentos=1): self.Username = self.Password = None self.TransaccionSenasa = [] BaseWS.__init__(self, reintentos)
def inicializar(self): BaseWS.inicializar(self) self.AppServerStatus = self.DbServerStatus = self.AuthServerStatus = None self.data = {} self.errores = []