Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)
Add a resource or an iterable collection of resources to this container

Must be implemented in derived class

src/r/e/resync-0.9.5/resync/list_base_with_index.py   resync(Download)
        for n in range(num_parts):
            r = Resource( uri = self.part_name(basename,n) )
            index.add(r)
        return( index.as_xml() )
 
                              timestamp = os.stat(file).st_mtime,
                              md5 = compute_md5_for_file(file) )
                index.add(r)
                # Get next chunk
                ( chunk, next ) = self.get_resources_chunk(resources_iter,next)
        chunk.default_capability()
        if (first is not None):
            chunk.add(first)
        for r in resource_iter:
            chunk.add(r)

src/r/e/resync-HEAD/resync/list_base_with_index.py   resync(Download)
        for n in range(num_parts):
            r = Resource( uri = self.part_name(basename,n) )
            index.add(r)
        return( index.as_xml() )
 
                              timestamp = os.stat(file).st_mtime,
                              md5 = compute_md5_for_file(file) )
                index.add(r)
                # Get next chunk
                ( chunk, next ) = self.get_resources_chunk(resources_iter,next)
        chunk.default_capability()
        if (first is not None):
            chunk.add(first)
        for r in resource_iter:
            chunk.add(r)