--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+# description of the template to be displayed with option --info
+info = """
+Author: CEA
+Version: 1.0
+Date: 01/03/2012
+Description: This template can be used to create a python module for SALOME.
+"""
+
+# code to substitute with component name
+file_subst = "PYCMP"
+
+# delimiter used in the template (default is ':sat:')
+#delimiter = ":sat:"
+
+# filter of files to ignore for substitution
+# if not defined all files will be parsed
+ignore_filters = '*.png'
+
+# list of parameters
+# a string = parameter name
+# a tuple = (parameter name, default value, prompt, validation method)
+
+#there is a problem for loading modules if user choose something else than standard "resources directory (lowercase)"
+#so we need force standard choice...
+# ('PYCMP_minus', "%(name)s", "resources directory (lowercase)", lambda l: l.islower() and l.replace("_","").isalnum()),
+
+parameters = [
+ (file_subst, "%(NAME)s"),
+ ('PYCMPCompoName', "%(Name)s", "Name of the module (hit return!)"),
+ ('PYCMP_minus', "%(name)s", "resources directory (lowercase) (hit return!)", lambda l: l.islower() and l.replace("_","").isalnum()),
+ ("get_method", "archive", "get method for prepare", lambda l: l in ['cvs', 'git', 'archive'])
+ ]
+
+# configuration to use this component with sat
+pyconf = """
+TOOLS : { common : { module_info : {
+ '%(NAME)s':
+ {
+ name : "%(NAME)s"
+ has_gui : "yes"
+ get_sources : '%(get_method)s'
+ build_sources : 'autotools'
+ git_info:
+ {
+ repo : 'to be filled'
+ tag : 'to be filled'
+ }
+ archive_info:
+ {
+ archive_name : '%(target)s.tar.gz'
+ }
+ nb_proc : 1
+ source_dir : $TOOLS.common.source_root + '/' + $name
+ build_dir : $TOOLS.common.build_root + '/' + $name
+ depend : [ 'Python', 'KERNEL', 'GUI' ]
+ opt_depend : []
+ }
+}}}
+"""