-
Notifications
You must be signed in to change notification settings - Fork 0
/
domains.py
90 lines (79 loc) · 2.48 KB
/
domains.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# -*- coding: utf-8 -*-
"""
/***************************************************************************
vfkPluginDialog
A QGIS plugin
Plugin umoznujici praci s daty katastru nemovitosti
-------------------
begin : 2015-06-11
git sha : $Format:%H$
copyright : (C) 2015 by Stepan Bambula
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
from builtins import object
class Domains(object):
@staticmethod
def anoNe(an):
"""
:type an: str
:return:
"""
if an == u'a':
return True
else:
return False
@staticmethod
def cpCe(kod):
"""
:type kod: int
:return:
"""
if kod == 1:
return u"Číslo popisné"
elif kod == 2:
return u"Číslo evidenční"
else:
return u''
@staticmethod
def druhUcastnika(kod):
"""
:type kod: int
:return:
"""
if kod == 1:
return u"právnická osoba"
elif kod == 2:
return u"fyzická osoba"
elif kod == 3:
return u"ostatní"
elif kod == 4:
return u"právnická osoba státní správy"
else:
return u''
@staticmethod
def rodinnyStav(kod):
"""
:type kod: int
:return:
"""
if kod == 1:
return u"svobodný/svobodná"
elif kod == 2:
return u"ženatý/vdaná"
elif kod == 3:
return u"rozvedený/rozvedená"
elif kod == 4:
return u"ovdovělý/ovdovělá"
elif kod == 5:
return u"druh/družka"
else:
return u''