-
Notifications
You must be signed in to change notification settings - Fork 6
/
entry.py
77 lines (58 loc) · 1.49 KB
/
entry.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
import pykeepass
from pykeepass import PyKeePass
import pykeepass.entry
from pykeepass.entry import Entry
class ExtendedEntry(Entry):
name = ""
username = ""
password = ""
url = ""
notes = ""
icon = ""
group_uuid = ""
uuid = ""
def __init__(self, name, username, password, url, notes, icon, group_uuid, uuid):
self.name = name
self.username = username
self.password = password
self.url = url
self.notes = notes
self.icon = icon
self.group_uuid = group_uuid
self.uuid = uuid
#
# Setter
#
def change_name(self, name):
self.name = name
def change_username(self, username):
self.username = username
def change_password(self, password):
self.password = password
def change_url(self, url):
self.url = url
def change_notes(self, notes):
self.notes = notes
def change_icon(self, icon):
self.icon = icon
def change_group_uuid(self, group_uuid):
self.group_uuid = group_uuid
#
# Getter
#
def get_name(self):
return self.name
def get_username(self):
return self.username
def get_password(self):
return self.password
def get_url(self):
return self.url
def get_notes(self):
return self.notes
def get_icon(self):
return self.icon
def get_group_uuid(self):
return self.get_group_uuid
def get_uuid(self):
return self.uuid