Esempio n. 1
0
 def __init__(self, source=None):
     """Creates a new Address instance, copying from the source
     if provided"""
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     DateBase.__init__(self, source)
     LocationBase.__init__(self, source)
Esempio n. 2
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (privacy, source_list, note, ref, self.rel) = data
     PrivacyBase.unserialize(self, privacy)
     SourceBase.unserialize(self, source_list)
     NoteBase.unserialize(self, note)
     RefBase.unserialize(self, ref)
     return self
Esempio n. 3
0
 def __init__(self, source=None):
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.rel = source.rel
     else:
         self.rel = ''
Esempio n. 4
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (privacy, source_list, note, the_type, self.value) = data
     PrivacyBase.unserialize(self, privacy)
     SourceBase.unserialize(self, source_list)
     NoteBase.unserialize(self, note)
     self.type.unserialize(the_type)
     return self
Esempio n. 5
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (date, privacy, note, self.confidence, ref, self.page,
      self.text) = data
     DateBase.unserialize(self, date)
     PrivacyBase.unserialize(self, privacy)
     NoteBase.unserialize(self, note)
     RefBase.unserialize(self, ref)
     return self
Esempio n. 6
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (privacy, note, attribute_list, ref, role) = data
     PrivacyBase.unserialize(self, privacy)
     NoteBase.unserialize(self, note)
     AttributeBase.unserialize(self, attribute_list)
     RefBase.unserialize(self, ref)
     self.role.unserialize(role)
     return self
Esempio n. 7
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (date, privacy, note,
      self.confidence, ref, self.page, self.text) = data
     DateBase.unserialize(self, date)
     PrivacyBase.unserialize(self, privacy)
     NoteBase.unserialize(self, note)
     RefBase.unserialize(self, ref)
     return self
Esempio n. 8
0
 def __init__(self, source=None):
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.frel = source.frel
         self.mrel = source.mrel
     else:
         self.frel = ChildRefType()
         self.mrel = ChildRefType()
Esempio n. 9
0
 def __init__(self, source=None):
     """creates a new URL instance, copying from the source if present"""
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     if source:
         self.path = source.path
         self.desc = source.desc
         self.type = source.type
     else:
         self.path = ""
         self.desc = ""
         self.type = UrlType()
Esempio n. 10
0
 def __init__(self, source=None):
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.frel = source.frel
         self.mrel = source.mrel
     else:
         self.frel = ChildRefType()
         self.mrel = ChildRefType()
Esempio n. 11
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (privacy, source_list, note, date, location) = data
     
     PrivacyBase.unserialize(self, privacy)
     SourceBase.unserialize(self, source_list)
     NoteBase.unserialize(self, note)
     DateBase.unserialize(self, date)
     LocationBase.unserialize(self, location)
     return self
Esempio n. 12
0
 def __init__(self, source=None):
     """
     Creates a new EventRef instance, copying from the source if present.
     """
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     NoteBase.__init__(self, source)
     AttributeBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.role = source.role
     else:
         self.role = EventRoleType()
Esempio n. 13
0
 def unserialize(self, data):
     """
     Converts a serialized tuple of data to an object
     """
     (privacy, source_list, note, date,
      self.first_name, self.surname, self.suffix, self.title,
      name_type, self.prefix, self.patronymic,
      self.group_as, self.sort_as, self.display_as, self.call) = data
     self.type.unserialize(name_type)
     PrivacyBase.unserialize(self, privacy)
     SourceBase.unserialize(self, source_list)
     NoteBase.unserialize(self, note)
     DateBase.unserialize(self, date)
     return self
Esempio n. 14
0
 def __init__(self, source=None):
     """creates a new SourceRef, copying from the source if present"""
     SecondaryObject.__init__(self)
     DateBase.__init__(self, source)
     PrivacyBase.__init__(self, source)
     NoteBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.confidence = source.confidence
         self.page = source.page
         self.text = source.text
     else:
         self.confidence = SourceRef.CONF_NORMAL
         self.page = ""
         self.text = ""
Esempio n. 15
0
 def __init__(self, source=None):
     """
     Creates a new Attribute object, copying from the source if provided.
     """
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     
     if source:
         self.type = source.type
         self.value = source.value
     else:
         self.type = AttributeType()
         self.value = ""
Esempio n. 16
0
 def __init__(self, source=None):
     """creates a new SourceRef, copying from the source if present"""
     SecondaryObject.__init__(self)
     DateBase.__init__(self, source)
     PrivacyBase.__init__(self, source)
     NoteBase.__init__(self, source)
     RefBase.__init__(self, source)
     if source:
         self.confidence = source.confidence
         self.page = source.page
         self.text = source.text
     else:
         self.confidence = SourceRef.CONF_NORMAL
         self.page = ""
         self.text = ""
Esempio n. 17
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self), SourceBase.serialize(self),
             NoteBase.serialize(self), RefBase.serialize(self),
             self.frel.serialize(), self.mrel.serialize())
Esempio n. 18
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (DateBase.serialize(self), PrivacyBase.serialize(self),
             NoteBase.serialize(self), self.confidence,
             RefBase.serialize(self), self.page, self.text)
Esempio n. 19
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self),
             SourceBase.serialize(self),
             NoteBase.serialize(self),
             self.type.serialize(), self.value)
Esempio n. 20
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self),
             SourceBase.serialize(self),
             NoteBase.serialize(self),
             DateBase.serialize(self),
             LocationBase.serialize(self))
Esempio n. 21
0
    def __init__(self, source=None):
        """Creates a LDS Ordinance instance"""
        SecondaryObject.__init__(self)
        SourceBase.__init__(self, source)
        NoteBase.__init__(self, source)
        DateBase.__init__(self, source)
        PlaceBase.__init__(self, source)
        PrivacyBase.__init__(self, source)

        if source:
            self.type = source.type
            self.famc = source.famc
            self.temple = source.temple
            self.status = source.status
        else:
            self.type = LdsOrd.DEFAULT_TYPE
            self.famc = None
            self.temple = ""
            self.status = LdsOrd.DEFAULT_STATUS
Esempio n. 22
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (DateBase.serialize(self),
             PrivacyBase.serialize(self),
             NoteBase.serialize(self),
             self.confidence,
             RefBase.serialize(self),
             self.page, self.text)
Esempio n. 23
0
    def __init__(self, source=None):
        """Creates a LDS Ordinance instance"""
        SecondaryObject.__init__(self)
        SourceBase.__init__(self, source)
        NoteBase.__init__(self, source)
        DateBase.__init__(self, source)
        PlaceBase.__init__(self, source)
        PrivacyBase.__init__(self, source)

        if source:
            self.type = source.type
            self.famc = source.famc
            self.temple = source.temple
            self.status = source.status
        else:
            self.type = LdsOrd.DEFAULT_TYPE
            self.famc = None
            self.temple = ""
            self.status = LdsOrd.DEFAULT_STATUS
Esempio n. 24
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self),
             SourceBase.serialize(self),
             NoteBase.serialize(self),
             RefBase.serialize(self),
             self.frel.serialize(),
             self.mrel.serialize())
Esempio n. 25
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self),
             SourceBase.serialize(self),
             NoteBase.serialize(self),
             AttributeBase.serialize(self),
             RefBase.serialize(self),
             self.rect)
Esempio n. 26
0
 def serialize(self):
     """
     Converts the object to a serialized tuple of data
     """
     return (PrivacyBase.serialize(self),
             SourceBase.serialize(self),
             NoteBase.serialize(self),
             DateBase.serialize(self),
             self.first_name, self.surname, self.suffix, self.title,
             self.type.serialize(), self.prefix, self.patronymic,
             self.group_as, self.sort_as, self.display_as, self.call)
Esempio n. 27
0
 def __init__(self, source=None, data=None):
     """creates a new Name instance, copying from the source if provided"""
     SecondaryObject.__init__(self)
     PrivacyBase.__init__(self, source)
     SourceBase.__init__(self, source)
     NoteBase.__init__(self, source)
     DateBase.__init__(self, source)
     if data:
         (privacy, source_list, note, date,
          self.first_name, self.surname, self.suffix, self.title,
          name_type, self.prefix, self.patronymic,
          self.group_as, self.sort_as, self.display_as, self.call) = data
         self.type = NameType(name_type)
         PrivacyBase.unserialize(self, privacy)
         SourceBase.unserialize(self, source_list)
         NoteBase.unserialize(self, note)
         DateBase.unserialize(self, date)
     elif source:
         self.first_name = source.first_name
         self.surname = source.surname
         self.suffix = source.suffix
         self.title = source.title
         self.type = source.type
         self.prefix = source.prefix
         self.patronymic = source.patronymic
         self.group_as = source.group_as
         self.sort_as = source.sort_as
         self.display_as = source.display_as
         self.call = source.call
     else:
         self.first_name = ""
         self.surname = ""
         self.suffix = ""
         self.title = ""
         self.type = NameType()
         self.prefix = ""
         self.patronymic = ""
         self.group_as = ""
         self.sort_as = self.DEF
         self.display_as = self.DEF
         self.call = u''
Esempio n. 28
0
    def __init__(self, source=None):
        """
o        Initialize a PrimaryObject. If source is None, both the ID and handle
        are assigned as empty strings. If source is not None, then object
        is initialized from values of the source object.

        @param source: Object used to initialize the new object
        @type source: PrimaryObject
        """
        BaseObject.__init__(self)
        PrivacyBase.__init__(self, source)
        if source:
            self.gramps_id = source.gramps_id
            self.handle = source.handle
            self.change = source.change
            self.marker = source.marker
        else:
            self.gramps_id = None
            self.handle = None
            self.change = 0
            self.marker = MarkerType()
Esempio n. 29
0
    def __init__(self, source=None):
        """
o        Initialize a PrimaryObject. If source is None, both the ID and handle
        are assigned as empty strings. If source is not None, then object
        is initialized from values of the source object.

        @param source: Object used to initialize the new object
        @type source: PrimaryObject
        """
        BaseObject.__init__(self)
        PrivacyBase.__init__(self, source)
        if source:
            self.gramps_id = source.gramps_id
            self.handle = source.handle
            self.change = source.change
            self.marker = source.marker
        else:
            self.gramps_id = None
            self.handle = None
            self.change = 0
            self.marker = MarkerType()
Esempio n. 30
0
 def __init__(self):
     SourceNote.__init__(self)
     PrivacyBase.__init__(self)
Esempio n. 31
0
 def __init__(self):
     SourceNote.__init__(self)
     PrivacyBase.__init__(self)