sregistry/main/google_storage/build.py
def load_templates(self, name):
    '''load a particular template based on a name. We look for a name IN data,
       so the query name can be a partial string of the full name.

       Parameters
       ==========
       name: the name of a template to look up
    '''
    configs = self._get_templates()
    templates = []

    # The user wants to retrieve a particular configuration
    matches = [x for x in configs['data'] if name in x['name']]
    if len(matches) > 0:
        for match in matches:
            response = self._get(match['id'])
            templates.append(response)
        return templates

    bot.info('No matches found for %s' %name)
def load_templates(self, name):
    '''load a particular template based on a name. We look for a name IN data,
       so the query name can be a partial string of the full name.

       Parameters
       ==========
       name: the name of a template to look up
    '''
    configs = self._get_templates()
    templates = []

    # The user wants to retrieve a particular configuration
    matches = [x for x in configs['data'] if name in x['name']]
    if len(matches) > 0:
        for match in matches:
            response = self._get(match['id'])
            templates.append(response)
        return templates

    bot.info('No matches found for %s' %name)
def load_templates ( self , name ) : configs = self . _get_templates ( ) templates = [ ] # The user wants to retrieve a particular configuration matches = [ x for x in configs [ 'data' ] if name in x [ 'name' ] ] if len ( matches ) > 0 : for match in matches : response = self . _get ( match [ 'id' ] ) templates . append ( response ) return templates bot . info ( 'No matches found for %s' % name )
load a particular template based on a name. We look for a name IN data,
       so the query name can be a partial string of the full name.

       Parameters
       ==========
       name: the name of a template to look up
load a particular template based on a name . We look for a name IN data so the query name can be a partial string of the full name .