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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Test whether an interface is implemented by the specification

src/c/o/collective.formcriteria-2.0/src/collective/formcriteria/foldercontents/form.py   collective.formcriteria(Download)
                    del econtext.vars['item']
 
                if IDateTime.providedBy(value):
                    value = plone_view.toLocalizedTime(value, long_format=1)
 

src/b/a/babble.server-1.1/babble/server/Extensions/upgrade_to_1_0.py   babble.server(Download)
                        continue
 
                    if IDateTime.providedBy(message.time):
                        message.time = message.time.asdatetime().replace(tzinfo=utc)
                    elif type(message.time) == str:

src/e/x/experimental.ulocalized_time-0.1.0/experimental/ulocalized_time/patches.py   experimental.ulocalized_time(Download)
    # convert to DateTime instances. Either a date string or 
    # a DateTime instance needs to be passed.
    if not IDateTime.providedBy(time):
        try:
            time = DateTime(time)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/i18nl10n.py   Products.CMFPlone(Download)
    # convert to DateTime instances. Either a date string or
    # a DateTime instance needs to be passed.
    if not IDateTime.providedBy(time):
        try:
            time = DateTime(time)

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/i18nl10n.py   Products.CMFPlone(Download)
    # convert to DateTime instances. Either a date string or
    # a DateTime instance needs to be passed.
    if not IDateTime.providedBy(time):
        try:
            time = DateTime(time)