summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hellkamp <marc@gsites.de>2011-12-15 16:26:11 +0100
committerMarcel Hellkamp <marc@gsites.de>2011-12-15 16:26:11 +0100
commit33d35ff5f76aa7836d284d61838b7b7e0e1e96d7 (patch)
treedcb13f74208cfc4272e160366d6bd0f2dd84c94f
parent82aa5b557c91563d3cac3dd59a5c33b586f69fb5 (diff)
downloadbottle-33d35ff5f76aa7836d284d61838b7b7e0e1e96d7.tar.gz
api: Added bottle.run()
-rwxr-xr-xbottle.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bottle.py b/bottle.py
index 81f7572..5a832ef 100755
--- a/bottle.py
+++ b/bottle.py
@@ -611,6 +611,10 @@ class Bottle(object):
if removed: self.reset()
return removed
+ def run(self, **kwargs):
+ ''' Calls :func:`run` with the same parameters. '''
+ run(self, **kwargs)
+
def reset(self, route=None):
''' Reset all routes (force plugins to be re-applied) and clear all
caches. If an ID or route object is given, only that specific route