Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(4)  |  Derive(0)  |  Import(4)

src/g/r/gramps-3.4.2/src/gen/lib/event.py   Gramps(Download)
from gen.lib.datebase import DateBase
from gen.lib.placebase import PlaceBase
from gen.lib.eventtype import EventType
 
#-------------------------------------------------------------------------
        if source:
            self.__description = source.__description
            self.__type = EventType(source.__type)
        else:
            self.__description = ""
            self.__type = EventType()
         self.change, self.private) = data
 
        self.__type = EventType()
        self.__type.unserialize(the_type)
        DateBase.unserialize(self, date)

src/g/r/gramps-3.4.2/src/plugins/export/ExportVCard.py   Gramps(Download)
from gen.lib import Date
from gen.lib.urltype import UrlType
from gen.lib.eventtype import EventType
from gen.display.name import displayer as _nd
from gen.plug.utils import OpenFileOrStdout
        events = [event for event in
                    [self.db.get_event_from_handle(ref.ref) for ref in event_refs]
                    if event.get_type() == EventType(EventType.OCCUPATION)]
        if len(events) > 0:
            events.sort(cmp=lambda x, y: cmp(x.get_date_object(),

src/g/r/gramps-3.4.2/src/plugins/lib/libnarrate.py   Gramps(Download)
from gen.lib.person import Person
from gen.lib.eventroletype import EventRoleType
from gen.lib.eventtype import EventType
from gen.lib.familyreltype import FamilyRelType
from gen.display.name import displayer as _nd

src/g/r/gramps-3.4.2/src/gen/lib/__init__.py   Gramps(Download)
from gen.lib.childreftype import ChildRefType
from gen.lib.repotype import RepositoryType
from gen.lib.eventtype import EventType
from gen.lib.familyreltype import FamilyRelType
from gen.lib.srcmediatype import SourceMediaType