source/riffle/model.py
def _fetchChildren(self):
        '''Fetch and return new child items.'''
        children = []

        # List paths under this directory.
        paths = []
        for name in os.listdir(self.path):
            paths.append(os.path.normpath(os.path.join(self.path, name)))

        # Handle collections.
        collections, remainder = clique.assemble(
            paths, [clique.PATTERNS['frames']]
        )

        for path in remainder:
            try:
                child = ItemFactory(path)
            except ValueError:
                pass
            else:
                children.append(child)

        for collection in collections:
            children.append(Collection(collection))

        return children
def _fetchChildren(self):
        '''Fetch and return new child items.'''
        children = []

        # List paths under this directory.
        paths = []
        for name in os.listdir(self.path):
            paths.append(os.path.normpath(os.path.join(self.path, name)))

        # Handle collections.
        collections, remainder = clique.assemble(
            paths, [clique.PATTERNS['frames']]
        )

        for path in remainder:
            try:
                child = ItemFactory(path)
            except ValueError:
                pass
            else:
                children.append(child)

        for collection in collections:
            children.append(Collection(collection))

        return children
def _fetchChildren ( self ) : children = [ ] # List paths under this directory. paths = [ ] for name in os . listdir ( self . path ) : paths . append ( os . path . normpath ( os . path . join ( self . path , name ) ) ) # Handle collections. collections , remainder = clique . assemble ( paths , [ clique . PATTERNS [ 'frames' ] ] ) for path in remainder : try : child = ItemFactory ( path ) except ValueError : pass else : children . append ( child ) for collection in collections : children . append ( Collection ( collection ) ) return children
Fetch and return new child items.
Fetch and return new child items .