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

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

src/m/a/max-3.6/max/rest/admin/contexts.py   max(Download)
    mmdb = MADMaxDB(context.db)
    chash = request.matchdict.get('hash', None)
    found_contexts = mmdb.contexts.getItemsByhash(chash)
 
    if not found_contexts:
    mmdb = MADMaxDB(context.db)
    chash = request.matchdict.get('hash', None)
    found_context = mmdb.contexts.getItemsByhash(chash)
 
    if not found_context:

src/m/a/max-3.6/max/rest/contexts.py   max(Download)
    mmdb = MADMaxDB(context.db)
    chash = request.matchdict.get('hash', None)
    found_context = mmdb.contexts.getItemsByhash(chash)
 
    if not found_context:
    if not os.path.exists(context_image_filename):
        mmdb = MADMaxDB(context.db)
        found_context = mmdb.contexts.getItemsByhash(chash)
        if len(found_context) > 0:
            twitter_username = found_context[0]['twitterUsername']
        if hours_since_last_modification > 3:
            mmdb = MADMaxDB(context.db)
            found_context = mmdb.contexts.getItemsByhash(chash)
            twitter_username = found_context[0]['twitterUsername']
            downloadTwitterUserImage(twitter_username, context_image_filename)

src/m/a/max-3.6/max/rest/activities.py   max(Download)
 
    # get the defined read context
    result_contexts = mmdb.contexts.getItemsByhash(chash)
    if result_contexts:
        rcontext = result_contexts[0]

src/m/a/max-3.6/max/rest/admin/subscriptions.py   max(Download)
        raise ObjectNotFound("User {0} is not subscribed to context with hash: {1}".format(actor.username, chash))
 
    found_context = mmdb.contexts.getItemsByhash(chash)
 
    found_context[0].removeUserSubscriptions(users_to_delete=[actor.username])

src/m/a/max-3.6/max/rest/subscriptions.py   max(Download)
        raise Unauthorized('User {0} cannot unsubscribe himself from this context'.format(actor.username))
 
    found_context = mmdb.contexts.getItemsByhash(chash)
 
    found_context[0].removeUserSubscriptions(users_to_delete=[actor.username])

src/m/a/max-3.6/max/decorators.py   max(Download)
def getContextActor(db, hash):
    mmdb = MADMaxDB(db)
    context = mmdb.contexts.getItemsByhash(hash)[0]
    return context