|
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, entite, descriptif, contact, dt=datetime.datetime(2018, 2, 26, 14, 12, 44, 119409), publication=100, dtmaj=datetime.datetime(2018, 2, 26, 14, 12, 44, 119411), strict=True)
- Initialisation.
Arguments:
entite (sitehydro.Sitehydro ou sitehydro.Station ou
sitemeteo.Sitemeteo) = entite concernee par l'evenement
descriptif (string)
contact (intervenant.Contact) = contact proprietaire de l'evenement
dt (numpy.datetime64 string, datetime.datetime...) =
date de l'evenement
publication (entier parmi NOMENCLATURE[534]) = type de publication
dtmaj (numpy.datetime64 string, datetime.datetime...) =
date de mise a jour
strict (bool, defaut True) = en mode permissif le type de
publication n'est pas controle et les proprietes obligatoires
sont facultatives
- __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)
- contact
- Return contact.
- descriptif
- Return descriptif.
- dt
- 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.
- entite
- Return entite.
- publication
- 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)
Data and other attributes defined here:
- __all__attrs__ = ('entite', 'descriptif', 'contact', 'dt', 'publication', 'dtmaj')
|