Beispiel #1
0
    def get_profile(self):
        profile = Person()

        content = self.get_content()

        profile.name = content['prenom'] + ' ' + content['nom']
        profile.address = content['adresse'] + ' ' + content['codePostal'] + ' ' + content['ville']
        profile.country = content['pays']
        profile.birth_date = parse_french_date(content['dateNaissance']).date()

        return profile
Beispiel #2
0
    def get_profile(self):
        profile = Person()

        content = self.get_content()

        profile.name = content['prenom'] + ' ' + content['nom']
        profile.address = content['adresse'] + ' ' + content[
            'codePostal'] + ' ' + content['ville']
        profile.country = content['pays']
        profile.birth_date = parse_french_date(content['dateNaissance']).date()

        return profile
Beispiel #3
0
 def get_profile(self):
     d = {el[0]: el[1] for el in self.doc}
     profile = Person()
     profile.name = '%s %s' % (d['Nom'], d['Prénom'])
     profile.birth_date = parse_french_date(d['Date de naissance']).date()
     profile.address = '%s %s %s' % (d['Adresse de correspondance'], d['Code postal résidence fiscale'], d['Ville adresse de correspondance'])
     profile.country = d['Pays adresse de correspondance']
     profile.email = d['Adresse e-mail']
     profile.phone = d.get('Téléphone portable')
     profile.job_activity_area = d.get('Secteur d\'activité')
     profile.job = d.get('Situation professionnelle')
     profile.company_name = d.get('Employeur')
     profile.family_situation = d.get('Situation familiale')
     return profile
Beispiel #4
0
 def get_profile(self):
     d = {el[0]: el[1] for el in self.doc}
     profile = Person()
     profile.name = '%s %s' % (d['Nom'], d['Prénom'])
     profile.birth_date = parse_french_date(d['Date de naissance']).date()
     profile.address = '%s %s %s' % (d['Adresse de correspondance'], d['Code postal résidence fiscale'], d['Ville adresse de correspondance'])
     profile.country = d['Pays adresse de correspondance']
     profile.email = d['Adresse e-mail']
     profile.phone = d.get('Téléphone portable')
     profile.job_activity_area = d.get('Secteur d\'activité')
     profile.job = d.get('Situation professionnelle')
     profile.company_name = d.get('Employeur')
     profile.family_situation = d.get('Situation familiale')
     return profile
Beispiel #5
0
    def get_profile(self):
        self.get_universes()
        profile = Person()

        content = self.location('/transactionnel/services/rest/User/user').json()['content']

        profile.name = content['prenom'] + ' ' + content['nom']
        profile.address = content['adresse'] + ' ' + content['codePostal'] + ' ' + content['ville']
        profile.country = content['pays']
        profile.birth_date = parse_french_date(content['dateNaissance']).date()

        content = self.location('/transactionnel/services/applications/gestionEmail/getAdressesMails').json()['content']
        profile.email = content['emailPart']

        return profile