-
Notifications
You must be signed in to change notification settings - Fork 6
/
group.py
53 lines (39 loc) · 1.05 KB
/
group.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
import pykeepass
from pykeepass import PyKeePass
import pykeepass.group
from pykeepass.group import Group
class ExtendedGroup(Group):
name = ""
group_path = ""
icon = ""
parent_group_uuid = ""
uuid = ""
def __init__(self, name, group_path, icon, parent_group_uuid, uuid):
self.name = name
self.group_path = group_path
self.icon = icon
self.parent_group_uuid = parent_group_uuid
self.uuid = uuid
#
# Setter
#
def change_name(self, name):
self.name = name
def change_icon(self, icon):
self.icon = icon
def change_group_path(self, group_path, parent_group_uuid):
self.group_path = group_path
self.parent_group_uuid = parent_group_uuid
#
# Getter
#
def get_name(self):
return self.name
def get_group_path(self):
return self.group_path
def get_icon(self):
return self.icon
def get_parent_group_uuid(self):
return self.parent_group_uuid
def get_uuid(self):
return self.uuid