summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-16 09:27:15 -0500
committerSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-16 09:27:15 -0500
commit1420dbfbb699bbe969228173924bfa92ba7f7ce2 (patch)
treec0c0119f6ac58c3a38d4ac3e5541abcd7181a759 /scripts
parent79d75b06a1bdae8c5c42026de606ed1787be6030 (diff)
downloadthird_party-func-1420dbfbb699bbe969228173924bfa92ba7f7ce2.tar.gz
third_party-func-1420dbfbb699bbe969228173924bfa92ba7f7ce2.tar.xz
third_party-func-1420dbfbb699bbe969228173924bfa92ba7f7ce2.zip
Updated networktest to be the new way of defining modules and updated func-create-module to add in docstrings.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/func-create-module11
1 files changed, 10 insertions, 1 deletions
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])