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

All Samples(30)  |  Call(30)  |  Derive(0)  |  Import(0)

src/g/r/gramps-3.4.2/src/plugins/import/ImportCsv.py   Gramps(Download)
            new, marriageplace = self.get_or_create_place(marriageplace)
        if marriagedate:
            marriagedate = _dp.parse(marriagedate)
        if marriagedate or marriageplace or marriagesource or note:
            # add, if new; replace, if different
        # Birth:
        if birthdate is not None:
            birthdate = _dp.parse(birthdate)
        if birthplace is not None:
            new, birthplace = self.get_or_create_place(birthplace)
        # Baptism:
        if baptismdate is not None:
            baptismdate = _dp.parse(baptismdate)
        if baptismplace is not None:
            new, baptismplace = self.get_or_create_place(baptismplace)
        # Death:
        if deathdate is not None:
            deathdate = _dp.parse(deathdate)
        if deathplace is not None:
            new, deathplace = self.get_or_create_place(deathplace)
        # Burial:
        if burialdate is not None:
            burialdate = _dp.parse(burialdate)
        if burialplace is not None:
            new, burialplace = self.get_or_create_place(burialplace)

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_ProbablyAlive.py   Gramps(Download)
    def prepare(self,db):
        try:
            self.current_date = DateHandler.parser.parse(unicode(self.list[0]))
        except:
            self.current_date = None

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_HasFamilyEvent.py   Gramps(Download)
    def prepare(self,db):
        self.date = None
        try:
            if self.list[1]:
                self.date = DateHandler.parser.parse(self.list[1])

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_HasDeath.py   Gramps(Download)
    def __init__(self,list):
        Rule.__init__(self,list)
        if self.list[0]:
            self.date = DateHandler.parser.parse(self.list[0])
        else:

src/g/r/gramps-3.4.2/src/Filters/Rules/Person/_HasBirth.py   Gramps(Download)
    def __init__(self,list):
        Rule.__init__(self,list)
        if self.list[0]:
            self.date = DateHandler.parser.parse(self.list[0])
        else:

src/g/r/gramps-3.4.2/src/Filters/Rules/MediaObject/_HasMedia.py   Gramps(Download)
    def prepare(self,db):
        self.date = None
        try:
            if self.list[3]:
                self.date = DateHandler.parser.parse(self.list[3])

src/g/r/gramps-3.4.2/src/Filters/Rules/Event/_HasData.py   Gramps(Download)
 
        if self.date:
            self.date = DateHandler.parser.parse(self.date)
 
    def apply(self, db, event):

src/g/r/gramps-3.4.2/src/Filters/Rules/Citation/_HasCitation.py   Gramps(Download)
    def prepare(self, db):
        self.date = None
        try:
            if self.list[1]:
                self.date = DateHandler.parser.parse(self.list[1])

src/g/r/gramps-3.4.2/src/plugins/gramplet/EditExifMetadata.py   Gramps(Download)
        time_text = u'00:00:00'
 
    date_part = _dp.parse(date_text)
    try:
        time_part = time.strptime(time_text, '%H:%M:%S')

src/g/r/gramps-3.4.2/src/plugins/gramplet/AgeOnDateGramplet.py   Gramps(Download)
        """
        text = self.entry.get_text()
        date = DateHandler.parser.parse(text)
        run_quick_report_by_name(self.gui.dbstate, 
                                 self.gui.uistate, 

  1 | 2  Next