Commit ec56f9ca authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Added constructor in cli generator class.

parent 5b527c67
......@@ -10,6 +10,10 @@ class cli_generator(object):
plugin = None
add_context = False
def __init__(self):
self.api_spec = self.plugin.api_spec
self.appname = self.plugin.appname
def generate_all(self):
for f in self.api_spec.call_names():
c = self.mkClass(f)
......
......@@ -6,6 +6,5 @@ class quotaholder_cli(cli_generator):
def __init__(self):
self.plugin = quotaholder_plugin
self.api_spec = self.plugin.api_spec
self.appname = self.plugin.appname
self.add_context = True
super(self.__class__, self).__init__()
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