lib.records.law_status

Module Contents

Classes

LawStatusRecord(self,code,text) Law status record.
class LawStatusRecord(code, text)

Law status record.

__init__(code, text)

Create a new law status record.

Args:
code (str or unicode): The code of the law status. It must be “inForce” or “runningModifications”
every other value will raise an error.

text (dict of unicode): The multilingual law status description.

from_config(code)

Create a new law status record using the translations specified in the configuration.

Args:
code (str or unicode): The code of the law status. It must be “inForce” or “runningModifications”
every other value will raise an error.
Returns:
pyramid_oereb.lib.records.law_status.LawStatusRecord: The created law status record.