Sobrepõe :meth:`~satcfe.base.FuncoesSAT.associar_assinatura`.

        :return: Uma resposta SAT padrão.
        :rtype: satcfe.resposta.padrao.RespostaSAT
776766
def associar_assinatura(self, sequencia_cnpj, assinatura_ac):
        
        retorno = super(ClienteSATLocal, self).\
                associar_assinatura(sequencia_cnpj, assinatura_ac)
        # (!) resposta baseada na redação com efeitos até 31-12-2016
        return RespostaSAT.associar_assinatura(retorno)
339781
def assoc(self, index, value):
        ''''''
        newnode = LookupTreeNode(index, value)
        newtree = LookupTree()
        newtree.root = _assoc_down(self.root, newnode, 0)
        return newtree
269109
function buildRouteTableAssociation(name, position) {
  const cfName = `${name}RouteTableAssociation${position}`;
  return {
    [cfName]: {
      Type: 'AWS::EC2::SubnetRouteTableAssociation',
      Properties: {
        RouteTableId: {
          Ref: `${name}RouteTable${position}`,
        },
        SubnetId: {
          Ref: `${name}Subnet${position}`,
        },
      },
    },
  };
}
1005491
def AnalizarAutorizarCertificadoResp(self, ret):
        ""
        aut = ret.get('autorizacion')
        if aut:
            self.PtoEmision = aut['ptoEmision']
            self.NroOrden = aut['nroOrden']
            self.FechaCertificacion = str(aut.get('fechaCertificacion', ""))
            self.COE = str(aut['coe'])
            self.Estado = aut['estado']
            # actualizo parámetros de salida:
            self.params_out['coe'] = self.COE
            self.params_out['estado'] = self.Estado
            self.params_out['nro_orden'] = self.NroOrden
            self.params_out['fecha_certificacion'] = self.FechaCertificacion.replace("-", "")
            if "planta" in aut:
                p = aut.get("planta")
                self.params_out['nro_planta'] = p.get("nroPlanta")
                self.params_out['cuit_titular_planta'] = p.get("cuitTitularPlanta")
                self.params_out['razon_social_titular_planta'] = p.get("razonSocialTitularPlanta")
            # otros campos devueltos (opcionales)
            p = aut.get('pesosResumen', {})
            self.params_out['peso_bruto_certificado'] = p.get("pesoBrutoCertificado")
            self.params_out['peso_merma_secado'] = p.get("pesoMermaSecado")
            self.params_out['peso_merma_volatil'] = p.get("pesoMermaVolatil")
            self.params_out['peso_merma_zarandeo'] = p.get("pesoMermaZarandeo")
            self.params_out['peso_neto_certificado'] = p.get("pesoNetoCertificado")
            p = aut.get('serviciosResumen', {})
            self.params_out['importe_iva'] = p.get("importeIVA")
            self.params_out['servicio_gastos_generales'] = p.get("servicioGastosGenerales")
            self.params_out['servicio_otros'] = p.get("servicioOtros")
            self.params_out['servicio_total'] = p.get("servicioTotal")
            self.params_out['servicio_zarandeo'] = p.get("servicioZarandeo")
        # datos devueltos según el tipo de certificacion (consultas):
        cab = ret.get('cabecera')
        if cab:
            self.params_out['pto_emision'] = cab.get('ptoEmision')
            self.params_out['nro_orden'] = cab.get('nroOrden')
            self.params_out['tipo_certificado'] = cab.get('tipoCertificado')
            self.params_out['nro_planta'] = cab.get('nroPlanta')
            self.params_out['nro_ing_bruto_depositario'] = cab.get('nroIngBrutoDepositario')
            self.params_out['titular_grano'] = cab.get('titularGrano')
            self.params_out['cuit_depositante'] = cab.get('cuitDepositante')
            self.params_out['nro_ing_bruto_depositante'] = cab.get('nroIngBrutoDepositante')
            self.params_out['cuit_corredor'] = cab.get('cuitCorredor')
            self.params_out['cod_grano'] = cab.get('codGrano')
            self.params_out['campania'] = cab.get('campania')
            self.params_out['datos_adicionales'] = cab.get('datosAdicionales')
        pri = ret.get('primaria')
        if pri:
            self.params_out['nro_act_depositario'] = pri.get('nroActDepositario')
            self.params_out['descripcion_tipo_grano'] = pri.get('descripcionTipoGrano')
            self.params_out['monto_almacenaje'] = pri.get('montoAlmacenaje')
            self.params_out['monto_acarreo'] = pri.get('montoAcarreo')
            self.params_out['monto_gastos_generales'] = pri.get('montoGastosGenerales')
            self.params_out['monto_zarandeo'] = pri.get('montoZarandeo')
            self.params_out['porcentaje_secado_de'] = pri.get('porcentajeSecadoDe')
            self.params_out['porcentaje_secado_a'] = pri.get('porcentajeSecadoA')
            self.params_out['monto_secado'] = pri.get('montoSecado')
            self.params_out['monto_por_cada_punto_exceso'] = pri.get('montoPorCadaPuntoExceso')
            self.params_out['monto_otros'] = pri.get('montoOtros')
            self.params_out['porcentaje_merma_volatil'] = pri.get('porcentajeMermaVolatil')
            self.params_out['porcentaje_merma_secado'] = pri.get('porcentajeMermaSecado')
            self.params_out['peso_neto_merma_secado'] = pri.get('pesoNetoMermaSecado')
            self.params_out['porcentaje_merma_zarandeo'] = pri.get('pesoNetoMermaZarandeo')
            self.params_out['peso_neto_certificado'] = pri.get('pesoNetoCertificado')
            self.params_out['servicios_secado'] = pri.get('serviciosSecado')
            self.params_out['servicios_zarandeo'] = pri.get('serviciosZarandeo')
            self.params_out['servicios_otros'] = pri.get('serviciosOtros')
            self.params_out['servicios_forma_de_pago'] = pri.get('serviciosFormaDePago')
            # otros campos no documentados:
            self.params_out['servicios_conceptos_no_gravados'] = pri.get("serviciosConceptosNoGravados")
            self.params_out['servicios_percepciones_iva'] = pri.get("serviciosPercepcionesIVA")
            self.params_out['servicios_otras_percepciones'] = pri.get("serviciosOtrasPercepciones")            
            # sub estructuras:
            self.params_out['ctgs'] = []
            self.params_out['det_muestra_analisis'] = []
            for ctg in pri.get("ctg", []):
                self.params_out['ctgs'].append({
                    'nro_ctg': ctg.get('nroCTG'),
                    'nro_carta_porte': ctg.get('nroCartaDePorte'),
                    'peso_neto_confirmado_definitivo': ctg.get('pesoNetoConfirmadoDefinitivo'),
                    'porcentaje_secado_humedad': ctg.get('porcentajeSecadoHumedad'),
                    'importe_secado': ctg.get('importeSecado'),
                    'peso_neto_merma_secado': ctg.get('pesoNetoMermaSecado'),
                    'importe_zarandeo': ctg.get('importeZarandeo'),
                    'peso_neto_merma_zarandeo': ctg.get('pesoNetoMermaZarandeo'),
                    'tarifa_zarandeo': ctg.get('tarifaZarandeo'),
                    })
            self.params_out['calidad'] = []
            for cal in [pri.get("calidad", {})]:
                self.params_out['calidad'].append({
                    'analisis_muestra': cal.get('analisisMuestra'),
                    'nro_boletin': cal.get('nroBoletin'),
                    'nro_act_depositario': cal.get('nroActDepositario'),
                    'cod_grado': cal.get('codGrado'),
                    'valor_grado': cal.get('valorGrado'),
                    'valor_contenido_proteico': cal.get('valorContProteico'),
                    'valor_factor': cal.get('valorFactor')
                    })
                for det in cal.get("detalleMuestraAnalisis", []):
                    self.params_out['det_muestra_analisis'].append({
                        'descripcion_rubro': det.get('descripcionRubro'),
                        'tipo_rubro': det.get('tipoRubro'),
                        'porcentaje': det.get('porcentaje'),
                        'valor': det.get('valor'),
                        })
        rt = ret.get('retiroTransferencia')
        if rt:
            self.params_out['nro_act_depositario'] = rt.get('nroActDepositario')
            self.params_out['cuit_receptor'] = rt.get('cuitReceptor')
            self.params_out['nro_carta_porte_a_utilizar'] = rt.get('nroCartaPorteAUtilizar')
            # sub estructuras:
            self.params_out['certificados'] = []
            cert = rt.get("certificadoDeposito")
            if cert:
                self.params_out['certificados'].append({
                    'coe_certificado_deposito': cert.get('coeCertificadoDeposito'),
                    'peso_neto': cert.get('pesoNeto'),
                    })
        pre = ret.get('preexistente')
        if pre:
            self.params_out['nro_planta'] = pre.get('nroPlanta')
            self.params_out['tipo_certificado_deposito_preexistente'] = pre.get('tipoCertificadoDepositoPreexistente')
            self.params_out['nro_certificado_deposito_preexistente'] = pre.get('nroCertificadoDepositoPreexistente')
            self.params_out['cac_certificado_deposito_preexistente'] = pre.get('cacCertificadoDepositoPreexistente')
            self.params_out['fecha_emision_certificado_deposito_preexistente'] = pre.get('fechaEmisionCertificadoDepositoPreexistente')
            self.params_out['peso_neto'] = pre.get('pesoNeto')
        
        self.params_out['errores'] = self.errores
275480
@Override
    public Association addAssociation(String hostAddress, int hostPort, String peerAddress, int peerPort, String assocName)
            throws Exception {
        return addAssociation(hostAddress, hostPort, peerAddress, peerPort, assocName, IpChannelType.SCTP, null);
    }
62799
static function FEParamGetTiposTributos () {		
		$res = self::$client->FEParamGetTiposTributos( array('Auth'=> self::$authVars));
		
	   	self::__throwErrorIfExists($res, 'FEParamGetTiposTributosResult');
		
		return $res;
	}
129393
def MI_associators(self,
                       env,
                       objectName,
                       assocClassName,
                       resultClassName,
                       role,
                       resultRole,
                       propertyList):
        # pylint: disable=invalid-name
        

        # NOTE: This should honor the parameters resultClassName, role,
        #       resultRole, and propertyList
        logger = env.get_logger()
        logger.log_debug('CIMProvider2 MI_associators called. ' \
                         'assocClass: %s' % (assocClassName))
        if not assocClassName:
            raise pywbem.CIMError(pywbem.CIM_ERR_FAILED,
                                  "Empty assocClassName passed to Associators")
        ch = env.get_cimom_handle()
        model = pywbem.CIMInstance(classname=assocClassName)
        model.path = pywbem.CIMInstanceName(classname=assocClassName,
                                            namespace=objectName.namespace)
        gen = self.references(env=env,
                              object_name=objectName,
                              model=model,
                              result_class_name=resultClassName,
                              role=role,
                              result_role=None,
                              keys_only=False)
        if gen is None:
            logger.log_debug('references() returned None instead of ' \
                             'generator object')
            return
        for inst in gen:
            for prop in inst.properties.values():
                lpname = prop.name.lower()
                if prop.type != 'reference':
                    continue
                if role and role.lower() == lpname:
                    continue
                if resultRole and resultRole.lower() != lpname:
                    continue
                if self.paths_equal(prop.value, objectName):
                    continue
                if resultClassName and \
                        resultClassName.lower() != prop.value.classname.lower():
                    continue
                try:
                    if prop.value.namespace is None:
                        prop.value.namespace = objectName.namespace
                    inst = ch.GetInstance(prop.value, propertyList)
                except pywbem.CIMError as exc:
                    num, msg = exc.args
                    if num == pywbem.CIM_ERR_NOT_FOUND:
                        continue
                    else:
                        raise
                if inst.path is None:
                    inst.path = prop.value
                yield inst
        logger.log_debug('CIMProvider2 MI_associators returning')
874006
private Document findAssociation(AssociationKey key, AssociationContext associationContext, AssociationStorageStrategy storageStrategy) {
		final Document associationKeyObject = associationKeyToObject( key, storageStrategy );
		MongoCollection<Document> associationCollection = getAssociationCollection( key, storageStrategy, associationContext );

		FindIterable<Document> fi = associationCollection.find( associationKeyObject );
		return fi != null ? ( fi.projection( getProjection( key, false ) ).first() ) : null ;
	}
435530
public function ajouter()
    {
        $authentifie = new archiAuthentification();
        $formulaire = new formGenerator();
        if ($authentifie->estConnecte()) {
            $tabForm=$this->getAdresseFields();
            $this->connexionBdd->getLock(array('historiqueAdresse'));
            $errors = $formulaire->getArrayFromPost($tabForm); // recupere les donnees POST suivant les champs de tabForm , tabForm est passé en référence, il contient donc les valeurs des champs a la sortie de la fonction
            $this->nettoieCoordonneesAdresse($tabForm); // permet de garder l'id de la rue, quartier, sousQuartier le plus bas dans la hierarchie , a partir duquel on peut retrouver le reste

            if (count($errors)==0) {
            // on regarde si l'adresse existe deja parmis les adresses valides (non "archivees")
                $sql = "SELECT ha1.idAdresse as idAdresse
						FROM historiqueAdresse ha1, historiqueAdresse ha2
						WHERE ha2.idAdresse = ha1.idAdresse
						AND ha1.idRue='".$tabForm['rue']['value']."'
								AND ha1.idSousQuartier='".$tabForm['sousQuartier']['value']."'
										AND ha1.idQuartier='".$tabForm['quartier']['value']."'
												AND ha1.idVille='".$tabForm['ville']['value']."'
														AND ha1.idPays='".$tabForm['pays']['value']."'
																AND ha1.numero = '".$tabForm['numero']['value']."'
																		AND ha1.date='".$tabForm['date']['value']."'
																				AND ha1.idIndicatif='".$tabForm['indicatif']['value']."'
																						GROUP BY ha1.idAdresse, ha1.idHistoriqueAdresse
																						HAVING ha1.idHistoriqueAdresse = max(ha2.idHistoriqueAdresse)";

                //debug($sql);

                $resCheckExist=$this->connexionBdd->requete($sql);

                if (mysql_num_rows($resCheckExist)>1) {
                    echo "plusieurs adresse existe concernant cette adresse, pas d'ajout, veuillez prevenir l'administrateur.<br>";
                } elseif (mysql_num_rows($resCheckExist)==1) {
                    echo "l'adresse existe deja dans la base";
                    // recuperation de l'id existant
                    $fetchAdresseExistante=mysql_fetch_array($resCheckExist);
                } else {
                    // ajout
                    // recherche du nouvel idAdresse
                    $resIdAdresse = $this->connexionBdd->requete("select max(idAdresse) as maxIdAdresse from historiqueAdresse");
                    $nouvelIdAdresse=0;
                    if (mysql_num_rows($resIdAdresse)>0) {
                        $fetchNouvelIdAdresse = mysql_fetch_array($resIdAdresse);
                        $nouvelIdAdresse = $fetchNouvelIdAdresse["maxIdAdresse"] + 1;
                    }

                    $sql = "INSERT INTO historiqueAdresse (idUtilisateur,idAdresse,date,description,nom,idRue,numero,idQuartier,idSousQuartier,idPays,idVille) VALUES (
							'".$authentifie->getIdUtilisateur()."',
							'".$nouvelIdAdresse."',
							\"".$this->date->toBdd($tabForm['date']['value'])."\",
							\"".$tabForm['description']['value']."\",
							\"".$tabForm['nom']['value']."\",
							'".$tabForm['rue']['value']."',
							'".$tabForm['numero']['value']."',
							'".$tabForm['quartier']['value']."',
							'".$tabForm['sousQuartier']['value']."',
							'".$tabForm['pays']['value']."',
							'".$tabForm['ville']['value']."'
							)";

                    $this->connexionBdd->requete($sql);

                    $cache = new cacheObject();
                    $cache->refreshCache();
                }
            } else {
                echo $this->afficheFormulaire($tabForm);
            }




            $this->connexionBdd->freeLock(array('historiqueAdresse'));
        } else {
            echo "erreur : Vous devez etre authentifié pour faire un ajout<br>";
        }
    }
1340680
def removeAssociation(self, server_url, handle):
        
        assoc = self.getAssociation(server_url, handle)
        if assoc is None:
            return 0
        else:
            filename = self.getAssociationFilename(server_url, handle)
            return _removeIfPresent(filename)
347246
def correspondence(self):
        
        fields = 'surname initials organization country city_group'
        auth = namedtuple('Correspondence', fields)
        corr = self._head.get('correspondence')
        if corr is None:
            return None
        aff = corr.get('affiliation', {})
        try:
            org = aff['organization']
            if isinstance(org, dict):
                try:
                    org = org['$']
                except TypeError:  # Multiple names given
                    org = [d['$'] for d in org]
        except KeyError:
            org = None
        return auth(surname=corr.get('person', {}).get('ce:surname'),
                    initials=corr.get('person', {}).get('ce:initials'),
                    organization=org, country=aff.get('country'),
                    city_group=aff.get('city-group'))
248628
def desbloquear_sat(self):
        
        resp = self._http_post('desbloquearsat')
        conteudo = resp.json()
        return RespostaSAT.desbloquear_sat(conteudo.get('retorno'))
965018
function getAssociation($server_url, $handle = null)
    {
        if (!$this->active) {
            trigger_error("FileStore no longer active", E_USER_ERROR);
            return null;
        }

        if ($handle === null) {
            $handle = '';
        }

        // The filename with the empty handle is a prefix of all other
        // associations for the given server URL.
        $filename = $this->getAssociationFilename($server_url, $handle);

        if ($handle) {
            return $this->_getAssociation($filename);
        } else {
            $association_files =
                Auth_OpenID_FileStore::_listdir($this->association_dir);
            $matching_files = array();

            // strip off the path to do the comparison
            $name = basename($filename);
            foreach ($association_files as $association_file) {
                $base = basename($association_file);
                if (strpos($base, $name) === 0) {
                    $matching_files[] = $association_file;
                }
            }

            $matching_associations = array();
            // read the matching files and sort by time issued
            foreach ($matching_files as $full_name) {
                $association = $this->_getAssociation($full_name);
                if ($association !== null) {
                    $matching_associations[] = array($association->issued,
                                                     $association);
                }
            }

            $issued = array();
            $assocs = array();
            foreach ($matching_associations as $key => $assoc) {
                $issued[$key] = $assoc[0];
                $assocs[$key] = $assoc[1];
            }

            array_multisort($issued, SORT_DESC, $assocs, SORT_DESC,
                            $matching_associations);

            // return the most recently issued one.
            if ($matching_associations) {
                list(, $assoc) = $matching_associations[0];
                return $assoc;
            } else {
                return null;
            }
        }
    }
1306024
def MI_associators(self,
                       env,
                       objectName,
                       assocClassName,
                       resultClassName,
                       role,
                       resultRole,
                       propertyList):
        # pylint: disable=invalid-name
        

        # NOTE: This should honor the parameters resultClassName, role,
        #       resultRole, and propertyList
        logger = env.get_logger()
        logger.log_debug('CIMProvider MI_associators called. ' \
                         'assocClass: %s' % (assocClassName))
        ch = env.get_cimom_handle()
        if not assocClassName:
            raise pywbem.CIMError(
                pywbem.CIM_ERR_FAILED,
                "Empty assocClassName passed to Associators")
        assocClass = ch.GetClass(assocClassName, objectName.namespace,
                                 LocalOnly=False,
                                 IncludeQualifiers=True)
        plist = pywbem.NocaseDict()
        [plist.__setitem__(p.name, p) for p in assocClass.properties.values()
         if 'key' in p.qualifiers or p.type == 'reference']
        _strip_quals(plist)
        model = pywbem.CIMInstance(classname=assocClass.classname,
                                   properties=plist)
        model.path = pywbem.CIMInstanceName(classname=assocClass.classname,
                                            namespace=objectName.namespace)
        for inst in self.references(env=env,
                                    object_name=objectName,
                                    model=model,
                                    assoc_class=assocClass,
                                    result_class_name=resultClassName,
                                    role=role,
                                    result_role=None,
                                    keys_only=False):
            for prop in inst.properties.values():
                lpname = prop.name.lower()
                if prop.type != 'reference':
                    continue
                if role and role.lower() == lpname:
                    continue
                if resultRole and resultRole.lower() != lpname:
                    continue
                if _path_equals_ignore_host(prop.value, objectName):
                    continue
                if resultClassName and self.filter_results and \
                    not pywbem.is_subclass(ch, objectName.namespace,
                                           sub=prop.value.classname,
                                           super=resultClassName):
                    continue
                try:
                    if prop.value.namespace is None:
                        prop.value.namespace = objectName.namespace
                    inst = ch.GetInstance(prop.value,
                                          IncludeQualifiers=True,
                                          IncludeClassOrigin=True,
                                          PropertyList=propertyList)
                except pywbem.CIMError as exc:
                    num, msg = exc.args
                    if num == pywbem.CIM_ERR_NOT_FOUND:
                        continue
                    else:
                        raise
                if inst.path is None:
                    inst.path = prop.value
                yield inst
        logger.log_debug('CIMProvider MI_associators returning')
803859
def postadressen(self):
        '''
         
        '''
        return [h.postadres for h in self.huisnummers if h.status.id == '3']
30342
def consultar_numero_sessao(self, numero_sessao):
        
        retorno = super(ClienteSATLocal, self).\
                consultar_numero_sessao(numero_sessao)
        return RespostaConsultarNumeroSessao.analisar(retorno)
328906
def analisar(retorno):
        
        resposta = analisar_retorno(forcar_unicode(retorno),
                funcao='ExtrairLogs',
                classe_resposta=RespostaExtrairLogs,
                campos=RespostaSAT.CAMPOS + (
                        ('arquivoLog', unicode),
                    ),
                campos_alternativos=[
                        # se a extração dos logs falhar espera-se o padrão de
                        # campos no retorno...
                        RespostaSAT.CAMPOS,
                    ]
            )
        if resposta.EEEEE not in ('15000',):
            raise ExcecaoRespostaSAT(resposta)
        return resposta