示例#1
0
    def update_parameter(self):
        """
        Defines the code block for this parameter data type in the GPTool UpdateParameter method.

        :return: Returns the string.Template object.
        """
        return StrTemplate('')
def replace_placeholders(template):
    return StrTemplate(template).substitute(globals(), s='is')
示例#3
0
 def apply(self, template):
     tmpl = StrTemplate(b''.decode() + template)
     return tmpl.safe_substitute(self.variables)