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

All Samples(10)  |  Call(10)  |  Derive(0)  |  Import(0)
Set capability name in md

Every ResourceSync document should have the top-level
capability attributes.

src/r/e/resync-0.9.5/resync/list_base_with_index.py   resync(Download)
        index.sitemapindex=True
        index.capability_name = self.capability_name
        index.default_capability()
        for n in range(num_parts):
            r = Resource( uri = self.part_name(basename,n) )
        part = ListBase( itertools.islice(self.resources,start,stop) )
        part.capability_name = self.capability_name
        part.default_capability()
        part.index = basename
        s = self.new_sitemap()
            index=ListBase(md=self.md.copy(), ln=list(self.ln))
            index.capability_name = self.capability_name
            index.default_capability()
            while (len(chunk)>0):
                file = self.part_name(basename,len(index))
    def index_as_xml(self):
        """Return XML serialization of this list taken to be sitemapindex entries
 
        """
        self.default_capability()
        chunk = ListBase( md=self.md.copy(), ln=list(self.ln) )
        chunk.capability_name = self.capability_name
        chunk.default_capability()
        if (first is not None):
            chunk.add(first)

src/r/e/resync-HEAD/resync/list_base_with_index.py   resync(Download)
        index.sitemapindex=True
        index.capability_name = self.capability_name
        index.default_capability()
        for n in range(num_parts):
            r = Resource( uri = self.part_name(basename,n) )
        part = ListBase( itertools.islice(self.resources,start,stop) )
        part.capability_name = self.capability_name
        part.default_capability()
        part.index = basename
        s = self.new_sitemap()
            index=ListBase(md=self.md.copy(), ln=list(self.ln))
            index.capability_name = self.capability_name
            index.default_capability()
            while (len(chunk)>0):
                file = self.part_name(basename,len(index))
    def index_as_xml(self):
        """Return XML serialization of this list taken to be sitemapindex entries
 
        """
        self.default_capability()
        chunk = ListBase( md=self.md.copy(), ln=list(self.ln) )
        chunk.capability_name = self.capability_name
        chunk.default_capability()
        if (first is not None):
            chunk.add(first)