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

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

src/g/r/gramps-3.4.2/src/gui/views/treemodels/peoplemodel.py   Gramps(Download)
                    if date_str != "":
                        retval = cgi.escape(date_str)
                if not DateHandler.get_date_valid(birth):
                    return invalid_date_format % retval
                else:
                else:
                    retval = u"<i>%s</i>" % cgi.escape(date_str)
                if not DateHandler.get_date_valid(event):
                    return invalid_date_format % retval
                else:
                    if date_str != "":
                        retval = cgi.escape(date_str)
                if not DateHandler.get_date_valid(event):
                    return invalid_date_format % retval
                else:
                else:
                    retval = "<i>%s</i>" % cgi.escape(date_str)
                if not DateHandler.get_date_valid(event):
                    return invalid_date_format % retval
                else:

src/g/r/gramps-3.4.2/src/gui/views/treemodels/eventmodel.py   Gramps(Download)
            if date_str != "":
                retval = cgi.escape(date_str)
            if not DateHandler.get_date_valid(event):
                return INVALID_DATE_FORMAT % retval
            else:
            event.unserialize(data)
            retval = "%09d" % event.get_date_object().get_sort_value()
            if not DateHandler.get_date_valid(event):
                return INVALID_DATE_FORMAT % retval
            else:

src/g/r/gramps-3.4.2/src/gui/views/treemodels/citationbasemodel.py   Gramps(Download)
            if date_str != "":
                retval = cgi.escape(date_str)
            if not DateHandler.get_date_valid(citation):
                return INVALID_DATE_FORMAT % retval
            else:
            citation.unserialize(data)
            retval = "%09d" % citation.get_date_object().get_sort_value()
            if not DateHandler.get_date_valid(citation):
                return INVALID_DATE_FORMAT % retval
            else:

src/g/r/gramps-3.4.2/src/gui/editors/displaytabs/eventrefmodel.py   Gramps(Download)
    def column_date(self, event_ref):
        event = self.db.get_event_from_handle(event_ref.ref)
        retval = DateHandler.get_date(event)
        if not DateHandler.get_date_valid(event):
            return invalid_date_format % cgi.escape(retval)

src/g/r/gramps-3.4.2/src/gui/views/treemodels/familymodel.py   Gramps(Download)
            if event.date.format:
                return event.date.format % DateHandler.displayer.display(event.date)
            elif not DateHandler.get_date_valid(event):
                return invalid_date_format % DateHandler.displayer.display(event.date)
            else: