From 1420dbfbb699bbe969228173924bfa92ba7f7ce2 Mon Sep 17 00:00:00 2001 From: Steve 'Ashcrow' Milner Date: Wed, 16 Jan 2008 09:27:15 -0500 Subject: Updated networktest to be the new way of defining modules and updated func-create-module to add in docstrings. --- scripts/func-create-module | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/func-create-module b/scripts/func-create-module index 7cbf9eb..cf05449 100755 --- a/scripts/func-create-module +++ b/scripts/func-create-module @@ -22,6 +22,15 @@ class %s(func_module.FuncModule): %s """ +METHOD_TEMPLATE = '''\ + def %s(self): + """ + TODO: Document me ... + """ + pass + +''' + def populate_template(module_name, desc, methods): """ @@ -29,7 +38,7 @@ def populate_template(module_name, desc, methods): """ actual_methods = "" for method in methods: - actual_methods += " def %s(self):\n pass\n\n" % method + actual_methods += METHOD_TEMPLATE % method return TEMPLATE % (module_name, desc, actual_methods[:-2]) -- cgit