Interfaces
pyramid_oereb
OeREBKRMtrsfr_V2_0 generators
This interface offers methods to access python classes matching the OeREBKRMtrsfr_V2_0
INTERLIS model. It
is used mainly for translation and handling between pyramid_oereb
and OeREBKRMtrsfr_V2_0
.
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators.document_record_to_oerebkrmtrsfr(document_record)[source]
Translates a
pyramid_oereb
document record object to an OeREBKRM_V2_0_Dokumente_Dokument object.- Parameters:
document_record (
pyramid_oereb.core.records.documents.DocumentRecord
) – The record to translate.- Returns:
tuple containing:
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Amt_Amt:
The office which belongs to the document (responsible office).
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Dokumente_Dokument:
The document.
- Return type:
(tuple)
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators.fix_url(url)[source]
Helper method to hotfix an often occurring problem with urls not being valid in the ili sense. The URLs out of ÖREBlex are missing the http/https part often. So we try to fix this on the fly.
- Parameters:
url (
str
) – The URL string which might be fixed.- Returns:
The maybe fixed URL.
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators.multilingual_text_from_dict(multilingual_dict)[source]
Produces a MultilingualText object out of a dict in the form:
{ "de": "Test", "it": "Testo" }
- Parameters:
multilingual_dict (
dict or None
) – The definition of the multilingual element or None.- Returns:
geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TitelType
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators.multilingual_uri_from_dict(multilingual_dict)[source]
Produces a MultilingualText object out of a dict in the form:
{ "de": "Test", "it": "Testo" }
- Parameters:
multilingual_dict (
dict or None
) – The definition of the multilingual element or None.- Returns:
geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TextImWebType
- geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.generators.office_record_to_oerebkrmtrsfr(office_record)[source]
Translates a
pyramid_oereb
office record object to an OeREBKRM_V2_0_Amt_Amt object.- Parameters:
office_record (
pyramid_oereb.core.records.office.OfficeRecord
) – The office record to translate.- Returns:
geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Amt_Amt
OeREBKRMtrsfr_V2_0 classes
This is a selection of classes available to adapt to OeREBKRMtrsfr_V2_0
. The selection shows the classes
used in the current implementation. Please have a look in the source file to see the complete implementation.
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Dokumente_Dokument(TID=None, Typ=None, Titel=None, Abkuerzung=None, OffizielleNr=None, NurInGemeinde=None, TextImWeb=None, Dokument=None, AuszugIndex=None, Rechtsstatus=None, publiziertAb=None, publiziertBis=None, ZustaendigeStelle=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='OeREBKRM_V2_0.Dokumente.Dokument', pretty_print=True)[source]
- member_data_items_ = {'Abkuerzung': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'AuszugIndex': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Dokument': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'NurInGemeinde': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'OffizielleNr': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Rechtsstatus': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'TID': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'TextImWeb': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Titel': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Typ': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'ZustaendigeStelle': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'publiziertAb': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'publiziertBis': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- validate_IliID_patterns_ = [['^(([a-zA-Z_][0-9a-zA-Z_\\-\\.]*:)?[0-9a-zA-Z_][0-9a-zA-Z_\\-\\.]*)$']]
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_Amt_Amt(TID=None, Name=None, AmtImWeb=None, UID=None, Zeile1=None, Zeile2=None, Strasse=None, Hausnr=None, PLZ=None, Ort=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='OeREBKRM_V2_0.Amt.Amt', pretty_print=True)[source]
- member_data_items_ = {'AmtImWeb': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Hausnr': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Name': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Ort': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'PLZ': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Strasse': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'TID': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'UID': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Zeile1': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Zeile2': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- validate_IliID_patterns_ = [['^(([a-zA-Z_][0-9a-zA-Z_\\-\\.]*:)?[0-9a-zA-Z_][0-9a-zA-Z_\\-\\.]*)$']]
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.ZustaendigeStelleType(REF=None, BID=None, ORDER_POS=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_='', name_='ZustaendigeStelleType', pretty_print=True)[source]
- member_data_items_ = {'BID': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'ORDER_POS': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'REF': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- validate_IliID_patterns_ = [['^(([a-zA-Z_][0-9a-zA-Z_\\-\\.]*:)?[0-9a-zA-Z_][0-9a-zA-Z_\\-\\.]*)$']]
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TitelType(LocalisationCH_V1_MultilingualText=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='TitelType', pretty_print=True)[source]
- member_data_items_ = {'LocalisationCH_V1_MultilingualText': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.TextImWebType(OeREBKRM_V2_0_MultilingualUri=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='TextImWebType', pretty_print=True)[source]
- member_data_items_ = {'OeREBKRM_V2_0_MultilingualUri': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_MultilingualUri(LocalisedText=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='OeREBKRM_V2_0.MultilingualUri', pretty_print=True)[source]
- member_data_items_ = {'LocalisedText': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.OeREBKRM_V2_0_LocalisedUri(Language=None, Text=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='OeREBKRM_V2_0.LocalisedUri', pretty_print=True)[source]
- member_data_items_ = {'Language': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Text': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisedTextType(LocalisationCH_V1_LocalisedText=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='LocalisedTextType', pretty_print=True)[source]
- member_data_items_ = {'LocalisationCH_V1_LocalisedText': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisedTextType86(OeREBKRM_V2_0_LocalisedUri=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='LocalisedTextType86', pretty_print=True)[source]
- member_data_items_ = {'OeREBKRM_V2_0_LocalisedUri': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisationCH_V1_LocalisedText(Language=None, Text=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='LocalisationCH_V1.LocalisedText', pretty_print=True)[source]
- member_data_items_ = {'Language': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>, 'Text': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.LocalisationCH_V1_MultilingualText(LocalisedText=None, gds_collector_=None, **kwargs_)[source]
-
- export(outfile, level, namespaceprefix_='', namespacedef_=' xmlns:None="http://www.interlis.ch/INTERLIS2.3" ', name_='LocalisationCH_V1.MultilingualText', pretty_print=True)[source]
- member_data_items_ = {'LocalisedText': <geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.MemberSpec_ object>}
- subclass = None
- superclass = None
geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.GeneratedsSuper
is the superclass all above
mentioned classes are inheriting from.
- class geolink2oereb.lib.interfaces.oerebkrmtrsfr.v2_0.classes.GeneratedsSuper[source]
- Tag_strip_pattern_ = re.compile('\\{.*\\}')
- gds_validate_builtin_ST_(validator, value, input_name, min_occurs=None, max_occurs=None, required=None)[source]
- gds_validate_defined_ST_(validator, value, input_name, min_occurs=None, max_occurs=None, required=None)[source]
- tzoff_pattern = re.compile('(\\+|-)((0\\d|1[0-3]):[0-5]\\d|14:00)$')