From 1f2342e4bdc934e9eca4d247fcb4613586101296 Mon Sep 17 00:00:00 2001 From: ribes Date: Wed, 10 Feb 2010 15:50:55 +0000 Subject: [PATCH] - Module name cannot have a caracter - --- module_generator/gener.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/module_generator/gener.py b/module_generator/gener.py index fff324a..7f39254 100644 --- a/module_generator/gener.py +++ b/module_generator/gener.py @@ -89,6 +89,9 @@ class Module(object): raise SystemExit def validate(self): + # Test Module name, canot have a "-" in the name + if self.name.find("-") != -1: + raise Invalid("Module name %s is not valid, remove caracter - in the module name" % self.name) lcompo = set() for compo in self.components: if compo.name in lcompo: -- 2.39.2