1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 """
24 Researcher informaiton for GRAMPS.
25 """
26
27
28
29
30
31
32 from gen.lib.locationbase import LocationBase
33
34
35
36
37
38
40 """Contains the information about the owner of the database."""
41
43 """
44 Initialize the Researcher object, copying from the source if provided.
45 """
46
47 LocationBase.__init__(self, source)
48 if source:
49 self.name = source.name
50 self.addr = source.addr
51 self.email = source.email
52 else:
53 self.name = ""
54 self.addr = ""
55 self.email = ""
56
58 """
59 Convert the object to a serialized tuple of data.
60 """
61 return (LocationBase.serialize(self),
62 self.name, self.addr, self.email)
63
72
74 """Set the database owner's name."""
75 self.name = data
76
78 """Return the database owner's name."""
79 return self.name
80
82 """Set the database owner's address."""
83 self.addr = data
84
86 """Return the database owner's address."""
87 return self.addr
88
90 """ Set the database owner's email."""
91 self.email = data
92
94 """Return the database owner's email."""
95 return self.email
96
98 """Set all attributes from another instance."""
99 self.street = other_researcher.street
100 self.city = other_researcher.city
101 self.county = other_researcher.county
102 self.state = other_researcher.state
103 self.country = other_researcher.country
104 self.postal = other_researcher.postal
105 self.phone = other_researcher.phone
106
107 self.name = other_researcher.name
108 self.addr = other_researcher.addr
109 self.email = other_researcher.email
110