| |
- builtins.object
-
- Adresse
- Contact
- Intervenant
- ProfilAdminLocal
class Adresse(builtins.object) |
|
Adresse(ville=None, adresse1=None, adresse1_cplt=None, adresse2=None, lieudit=None, boitepostale=None, codepostal=None, dep=None, pays=None)
Classe Adresse.
Proprietes:
ville (str) = ville
adresse1 (str) = adresse principale
adresse2 (str) = adresse secondaire
boitepostale (str) = boîte postale
codepostal (str) = code postal
pays (str(2) selon nomenclature 678) = code du pays sur deux caractères |
|
Methods defined here:
- __init__(self, ville=None, adresse1=None, adresse1_cplt=None, adresse2=None, lieudit=None, boitepostale=None, codepostal=None, dep=None, pays=None)
- Constructeur
Arguments:
ville (str) = ville
adresse1 (str) = adresse principale
adresse2 (str) = adresse secondaire
boitepostale (str) = boîte postale
codepostal (str) = code postal
pays (str(2) selon nomenclature 678)
= code du pays sur deux caractères
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- pays
- Class Nomenclatureitem.
A descriptor to deal with 'in nomenclature.NOMENCLATURES' properties.
Should raise only a ValueError when value is not allowed (even with
the None case).
Properties:
nomenclature (int) = the nomenclature ref
valuetype (type) = a function to cast values to the nomenclature's
items type
strict (bool, default True) = wether or not the instance value has
to be in the nomenclature items
required (bool, defaut True) = wether or not instance's value can
be None
default = a defautl value returned if the instance's value is not
in the dictionnary. Should be unused if the property has been
initialized.
data (weakref.WeakKeyDictionary)
|
class Contact(builtins.object) |
|
Contact(code=None, nom=None, prenom=None, civilite=None, intervenant=None, profil=0, adresse=None, fonction=None, telephone=None, portable=None, fax=None, mel=None, dtmaj=None, profilsadmin=None, alias=None, motdepasse=None, dtactivation=None, dtdesactivation=None)
Classe Contact.
Classe pour manipuler des contacts.
Proprietes:
code (string(5))
nom (string)
prenom (string)
civilite (entier parmi NOMENCLATURE[538])
intervenant (Intervenant)
profil (0 < int < 7) = masque de bits sur 1 octet
administrateur national / modelisateur / institutionnel
profiladminnat (bool)
profilmodel (bool)
profilinst (bool)
profilpublic (bool) = un contact a un profil public lorsque tous les
elements du profil sont False (identique a profil = 0)
adresse (intervenant.Adresse)
fonction (str)
telephone (str)
portable (str)
fax (str)
mel (str)= adresse email,
dtmaj (datetime.datetime) = date de mise à jour
profilsadmin (intervenant.ProfilAdminLocal
or an iterable of intervenant.ProfilAdminLocal)
= profils d'administrateur local
alias (str)
motdepasse (str) = mot de passe
dtactivation (datetime.datetime) = date d'activation
dtdesactivation (datetime.datetime) = date de désactivation
Proprietes en lecture seule:
profilasstr (string) |
|
Methods defined here:
- __eq__(self, other, attrs=None, ignore=None, lazzy=False)
- Equal elaborate function.
Arguments:
self, other
attrs (iterable of strings, default to self.__class__.__all__attrs__ or
__self.__dict__.keys() = the attrs to compare
ignore (iterable of strings, default None) = attrs to ignore in the
comparison
lazzy (bool, default False) = if True does not test an attribute
whose counterpart is None
NB: functool.partial could be smarter than a private class variable to
fix the default attrs list, but it doesn't work with 'self'.
- __hash__(self)
- __init__(self, code=None, nom=None, prenom=None, civilite=None, intervenant=None, profil=0, adresse=None, fonction=None, telephone=None, portable=None, fax=None, mel=None, dtmaj=None, profilsadmin=None, alias=None, motdepasse=None, dtactivation=None, dtdesactivation=None)
- Initialisation.
Arguments:
code (string(5))
nom (string)
prenom (string)
civilite (entier parmi NOMENCLATURE[538])
intervenant (Intervenant)
profil (0 < int < 7) = masque de bits sur 1 octet
administrateur national / modelisateur / institutionnel
profiladminnat (bool)
profilmodel (bool)
profilinst (bool)
profilpublic (bool) = un contact a un profil public
lorsque tous les elements du profil sont False
(identique a profil = 0)
adresse (intervenant.Adresse)
fonction (str)
telephone (str)
portable (str)
fax (str)
mel (str)= adresse email,
dtmaj (datetime.datetime) = date de mise à jour
profilsadmin (intervenant.ProfilAdminLocal
or an iterable of intervenant.ProfilAdminLocal)
= profils d'administrateur local
alias (str)
motdepasse (str) = mot de passe
dtactivation (datetime.datetime) = date d'activation
dtdesactivation (datetime.datetime) = date de désactivation
- __ne__(self, other, attrs=[], ignore=[], lazzy=False)
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- adresse
- Return adresse contact.
- civilite
- Class Nomenclatureitem.
A descriptor to deal with 'in nomenclature.NOMENCLATURES' properties.
Should raise only a ValueError when value is not allowed (even with
the None case).
Properties:
nomenclature (int) = the nomenclature ref
valuetype (type) = a function to cast values to the nomenclature's
items type
strict (bool, default True) = wether or not the instance value has
to be in the nomenclature items
required (bool, defaut True) = wether or not instance's value can
be None
default = a defautl value returned if the instance's value is not
in the dictionnary. Should be unused if the property has been
initialized.
data (weakref.WeakKeyDictionary)
- code
- Return Code contact.
- dtactivation
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- dtdesactivation
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- dtmaj
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- intervenant
- Return intervenant de rattachement du contact.
- profil
- Return profil.
- profiladminnat
- Return profiladminnat.
- profilasstr
- Return profil as a 3 chars string.
- profilinst
- Return profilinst.
- profilmodel
- Return profilmodel.
- profilpublic
- Return profilpublic.
- profilsadmin
- Return profilsadmin contact.
Data and other attributes defined here:
- __all__attrs__ = ('code', 'nom', 'prenom', 'civilite', 'intervenant', 'profil', 'motdepasse')
|
class Intervenant(builtins.object) |
|
Intervenant(code=0, origine=None, nom=None, statut=None, dtcreation=None, dtmaj=None, auteur=None, mnemo=None, adresse=None, commentaire=None, activite=None, nominternational=None, commune=None, siret=None, contacts=None, telephone=None, fax=None, siteweb=None, pere=None)
Classe Intervenant.
Classe pour manipuler les intervenants Sandre.
Proprietes:
code (int) = code SIRET (14 chiffres) ou Sandre
origine (string in (SIRET, SANDRE)) = origine du code
nom (string) = nom de l'intervenant
mnemo (string) = mnemonique
contacts (une liste de Contact) |
|
Methods defined here:
- __eq__(self, other, attrs=None, ignore=None, lazzy=False)
- Equal elaborate function.
Arguments:
self, other
attrs (iterable of strings, default to self.__class__.__all__attrs__ or
__self.__dict__.keys() = the attrs to compare
ignore (iterable of strings, default None) = attrs to ignore in the
comparison
lazzy (bool, default False) = if True does not test an attribute
whose counterpart is None
NB: functool.partial could be smarter than a private class variable to
fix the default attrs list, but it doesn't work with 'self'.
- __hash__(self)
- __init__(self, code=0, origine=None, nom=None, statut=None, dtcreation=None, dtmaj=None, auteur=None, mnemo=None, adresse=None, commentaire=None, activite=None, nominternational=None, commune=None, siret=None, contacts=None, telephone=None, fax=None, siteweb=None, pere=None)
- Initialisation.
Arguments:
code (int, defaut 0) = code SIRET (14 chiffres) ou Sandre
origine (string in ((S)I(RET), (S)A(NDRE)), defaut SIRET pour un
code a 14 chiffres, sinon SANDRE) = origine du code
nom (string) = nom de l'intervenant
mnemo (string) = mnemonique
contacts (un Contact ou un iterable de Contact)
- __ne__(self, other, attrs=[], ignore=[], lazzy=False)
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- adresse
- Return adresse intervenant.
- code
- Return code intervenant.
- commune
- Return commune intervenant.
- contacts
- Return contacts.
- dtcreation
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- dtmaj
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- origine
- Return origine.
- pere
- Return pere intervenant.
- siret
- Return siret intervenant.
Data and other attributes defined here:
- __all__attrs__ = ('code', 'origine', 'nom', 'mnemo', 'contacts')
|
class ProfilAdminLocal(builtins.object) |
|
ProfilAdminLocal(profil=None, zoneshydro=None, dtactivation=None, dtdesactivation=None)
Classe ProfilAdminLocale
Classe pour manipuler des profils administrateurs locaux.
Proprietes:
profil (str selon nomenclature 539) = GEST ou JAU
zoneshydro ( str(4) ou iterbale of str(4)) = liste de zones hydro
dtactivation (datetime.datetime)
dtdesactivation (datetime.datetime) |
|
Methods defined here:
- __init__(self, profil=None, zoneshydro=None, dtactivation=None, dtdesactivation=None)
- Constructeur
Arguments:
profil (str selon nomenclature 539) = GEST ou JAU
zoneshydro ( str(4) ou iterbale of str(4)) = liste de zones hydro
dtactivation (datetime.datetime)
dtdesactivation (datetime.datetime)
- __str__(self)
- Return string representation from __unicode__ method.
- __unicode__(self)
- Return unicode representation.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
- dtactivation
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- dtdesactivation
- Class Datefromeverything.
A descriptor to store a datetime.datetime property that can be initiated
in different manners using numpy.datetime64 facilities.
- profil
- Class Nomenclatureitem.
A descriptor to deal with 'in nomenclature.NOMENCLATURES' properties.
Should raise only a ValueError when value is not allowed (even with
the None case).
Properties:
nomenclature (int) = the nomenclature ref
valuetype (type) = a function to cast values to the nomenclature's
items type
strict (bool, default True) = wether or not the instance value has
to be in the nomenclature items
required (bool, defaut True) = wether or not instance's value can
be None
default = a defautl value returned if the instance's value is not
in the dictionnary. Should be unused if the property has been
initialized.
data (weakref.WeakKeyDictionary)
- zoneshydro
- Return zoneshydro.
| |