src/l/a/lamson-1.0/examples/myinboxisnotatv/app/handlers/anonymizer.py lamson(Download)
return PROTECTING
else:
logging.warning("Invalid confirm from %s", message['from'])
return CONFIRMING
def PROTECTING(message, marketroid_id=None, host=None, user_id=None):
if user_id:
logging.warning("Attempted user->user email from %r", message['from'])
forbid = view.respond(locals(), "mail/forbid.msg",
From="noreply@%(host)s",
To=message['from'],
Subject="You cannot email another user or yourself.")
src/l/a/lamson-1.0/examples/librelist/app/handlers/admin.py lamson(Download)
return POSTING
else:
logging.warning("Invalid confirm from %s", message['from'])
return CONFIRMING_SUBSCRIBE
return START
else:
logging.warning("Invalid unsubscribe confirm from %s", message['from'])
return CONFIRMING_UNSUBSCRIBE
src/l/a/lamson-1.0/examples/osb/app/handlers/post.py lamson(Download)
return POSTING
else:
logging.warning("Invalid confirm from %s", message['from'])
return CONFIRMING
src/p/y/PyNN-0.6.0/test/test_examples.py PyNN(Download)
exec("import pyNN.%s" % engine)
except ImportError, errmsg:
engine_list.remove(engine)
logging.warning("Unable to use %s: %s" % (engine, errmsg))
if len(engine_list) < 2:
logging.error("Need at least two simulators to run tests.")
sys.exit(1)
src/l/a/lamson-1.0/examples/osb/app/handlers/index.py lamson(Download)
out.write(snippet)
else:
logging.warning("Attempt to post to user %r but user doesn't exist.", address)
src/p/y/python-sdk-HEAD/examples/oauth/facebookoauth.py python-sdk(Download)
def parse_cookie(value):
"""Parses and verifies a cookie value from set_cookie"""
if not value: return None
parts = value.split("|")
if len(parts) != 3: return None
if cookie_signature(parts[0], parts[1]) != parts[2]:
logging.warning("Invalid cookie signature %r", value)
return None
timestamp = int(parts[1])
if timestamp < time.time() - 30 * 86400:
logging.warning("Expired cookie %r", value)
src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/shell/python/gateway.py PyAMF(Download)
statement_module.__dict__[name] = val
except:
msg = 'Dropping %s since it could not be unpickled.\n' % name
logging.warning(msg + traceback.format_exc())
session.remove_global(name)
buffer.write(msg)
src/p/y/PyAMF-HEAD/doc/tutorials/examples/actionscript/google_appengine/shell/gateway.py PyAMF(Download)
statement_module.__dict__[name] = val
except:
msg = 'Dropping %s since it could not be unpickled.\n' % name
logging.warning(msg + traceback.format_exc())
session.remove_global(name)
buffer.write(msg)
src/c/h/changingsong-HEAD/trunk/samples/plugin_sys/yapsy/yapsy/AutoInstallPluginManager.py changingsong(Download)
# depending on wether the path indicated is a
# directory or a file
if not (os.path.exists(plugin_info.path) or os.path.exists(plugin_info.path+".py") ):
logging.warning("Could not find the plugin's implementation for %s." % plugin_info.name)
return False
if os.path.isdir(plugin_info.path):
try:
src/c/h/changingsong-HEAD/samples/plugin_sys/yapsy/yapsy/AutoInstallPluginManager.py changingsong(Download)
# depending on wether the path indicated is a
# directory or a file
if not (os.path.exists(plugin_info.path) or os.path.exists(plugin_info.path+".py") ):
logging.warning("Could not find the plugin's implementation for %s." % plugin_info.name)
return False
if os.path.isdir(plugin_info.path):
try:
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next