'Generate a templated file for the system'

def template(self, profile=None, system=None, path=None, **rest):

    self.__xmlrpc_setup()
    if (path is not None):
        path = path.replace('_', '/')
        path = path.replace('//', '_')
    else:
        return '#    must    specify    a    template    path'
    if (profile is not None):
        data = self.remote.get_template_file_for_profile(profile, path)
    elif (system is not None):
        data = self.remote.get_template_file_for_system(system, path)
    else:
        data = '#    must    specify    profile    or    system    name'
    return data
