-
Notifications
You must be signed in to change notification settings - Fork 0
/
Publication.py
63 lines (44 loc) · 1.53 KB
/
Publication.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
import datetime
class booking:
def __init__(self, title, publisher, status, created_by, category, type):
self.__pubid = ''
self.__title = title
self.__publisher = publisher
self.__status = status
self.__created_by = created_by
currentdatetime = datetime.datetime.now()
created_date = str(currentdatetime.day) + "-" + str(currentdatetime.month) + "-" + str(
currentdatetime.year) # DD-MM-YYYY format
self.__created_date = created_date
self.__category = category
self.__type = type
def get_pubid(self):
return self.__pubid
def set_pubid(self, pubid):
self.__pubid = pubid
def get_title(self):
return self.__title
def get_publisher(self):
return self.__publisher
def get_status(self):
return self.__status
def get_created_by(self):
return self.__created_by
def get_created_date(self):
return self.__created_date
def get_category(self):
return self.__category
def get_type(self):
return self.__type
def set_title(self, title):
self.__title = title
def set_publisher(self, publisher):
self.__publisher = publisher
def set_status(self, status):
self.__status = status
def set_created_by(self, created_by):
self.__created_by = created_by
def set_created_date(self, create_date):
self.__created_date = create_date
def set_category(self, category):
self.__category = category