| |
- builtins.object
-
- Contact
- Intervenant
class Contact(builtins.object) |
|
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)
motdepasse (string)
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, motdepasse=None)
- Initialisation.
Arguments:
code (string(5))
nom (string)
prenom (string)
civilite (entier parmi NOMENCLATURE[538])
intervenant (Intervenant) = intervenant de rattachement
profil (binary string ou entier, defaut 0)
motdepasse (string)
- __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)
- 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.
- 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.
Data and other attributes defined here:
- __all__attrs__ = ('code', 'nom', 'prenom', 'civilite', 'intervenant', 'profil', 'motdepasse')
|
class Intervenant(builtins.object) |
|
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'.
- __init__(self, code=0, origine=None, nom=None, mnemo=None, contacts=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)
- code
- Return code intervenant.
- contacts
- Return contacts.
- origine
- Return origine.
Data and other attributes defined here:
- __all__attrs__ = ('code', 'origine', 'nom', 'mnemo', 'contacts')
- __hash__ = None
| |