Add request shorthand method

parent eb731c2b
...@@ -84,7 +84,7 @@ class Config: ...@@ -84,7 +84,7 @@ class Config:
if not self.master_url: if not self.master_url:
raise ValueError('master-url is required.') raise ValueError('master-url is required.')
def run(): def run():
usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0] usage = "usage: %s [options] CONFIGURATION_FILE" % sys.argv[0]
# Parse arguments # Parse arguments
...@@ -96,4 +96,7 @@ def run(): ...@@ -96,4 +96,7 @@ def run():
key_file=config.key_file, cert_file=config.cert_file) key_file=config.key_file, cert_file=config.cert_file)
local = globals() local = globals()
local['slap'] = slap local['slap'] = slap
# XXX-Cedric Maybe we should generate a new OpenOrder for each request?
local['request'] = slap.registerOpenOrder().request
__import__("code").interact(banner="", local=globals()) __import__("code").interact(banner="", local=globals())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment