ADB modely
Definice modelů.
- class adb.models.Kladysm5(*args, **kwargs)
Class pro db model kladysm5.
- class adb.models.Adb(*args, **kwargs)
Class pre db model ADB. Obsahuje vazbu na dokumentační jednotku.
- ident_cely
- refresh_from_db(using=None, fields=None)
Reload field values from the database.
By default, the reloading happens from the database this instance was loaded from, or by the read router if this instance wasn’t loaded from any database. The using parameter will override the default.
Fields can be used to specify which fields to reload. The fields should be an iterable of field attnames. If fields is None, then all non-deferred fields are reloaded.
When accessing deferred fields of an instance, the deferred loading of the field will call this method.
- save_base(raw=False, force_insert=False, force_update=False, using=None, update_fields=None)
Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too. This includes some sanity checks and signal sending.
The ‚raw‘ argument is telling save_base not to save any parent models and not to do any changes to the values before save. This is used by fixture loading.
- adb.models.get_vyskovy_bod(adb: Adb, offset=1) str
Funkce pro výpočet ident celý pro VB. Obsahuje test na pretečení hodnot.
- Args:
adb (adb): adb objekt pro získaní základu identu.
offset (int): offset k pripočtení k poslednímu VB
- Returns:
string: nový ident celý
- class adb.models.VyskovyBod(*args, **kwargs)
Class pre db model vyškový bod. Obsahuje vazbu na ADB.
- set_geom(northing, easting, niveleta)
Metóda na nastavení geomu (súradnic).
- save(*args, **kwargs)
Override save metódy na nastavení ident celý pokud je prázdny.
- refresh_from_db(using=None, fields=None)
Reload field values from the database.
By default, the reloading happens from the database this instance was loaded from, or by the read router if this instance wasn’t loaded from any database. The using parameter will override the default.
Fields can be used to specify which fields to reload. The fields should be an iterable of field attnames. If fields is None, then all non-deferred fields are reloaded.
When accessing deferred fields of an instance, the deferred loading of the field will call this method.
- save_base(raw=False, force_insert=False, force_update=False, using=None, update_fields=None)
Handle the parts of saving which should be done only once per save, yet need to be done in raw saves, too. This includes some sanity checks and signal sending.
The ‚raw‘ argument is telling save_base not to save any parent models and not to do any changes to the values before save. This is used by fixture loading.
- class adb.models.AdbSekvence(*args, **kwargs)
Class pro sekvenci ADB pole db modelu kladysm5.