34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
53c53
|
|
< from gramps.gen.lib import NoteType
|
|
---
|
|
> from gramps.gen.lib import NoteType, Attribute
|
|
54a55
|
|
> from .objectentries import PlaceEntry
|
|
275a277,284
|
|
>
|
|
> self.place = PlaceEntry(self.dbstate, self.uistate, self.track,
|
|
> self.top.get_object("place"),
|
|
> self.top.get_object("place_event_box"),
|
|
> self.set_place_handle,
|
|
> self.get_place_handle,
|
|
> self.top.get_object("add_del_place"), self.top.get_object("select_place"))
|
|
>
|
|
515a525,541
|
|
>
|
|
> def get_place_handle(self):
|
|
> for attr in self.source.get_attribute_list():
|
|
> if attr.get_type() == "Place":
|
|
> return attr.get_value()
|
|
> return None
|
|
>
|
|
> def set_place_handle(self, value):
|
|
> for attr in self.source.get_attribute_list():
|
|
> if attr.get_type() == "Place":
|
|
> attr.set_value(value)
|
|
> return
|
|
>
|
|
> attr = Attribute()
|
|
> attr.set_type("Place")
|
|
> attr.set_value(value)
|
|
> self.source.get_attribute_list().append(attr)
|