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

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/g/e/Gelatin-HEAD/src/Gelatin/generator/Xml.py   Gelatin(Download)
    def _splittag(self, path):
        tag, attribs = Builder._splittag(self, path)
        theattribs   = []
        for key, value in attribs:
            theattribs.append((key, value))

src/g/e/Gelatin-HEAD/src/Gelatin/generator/Json.py   Gelatin(Download)
        n_items = len(path)
        for n, item in enumerate(path):
            tag, attribs = self._splittag(item)
 
            # The leaf node is always newly created.
    def add(self, path, data = None, replace = False):
        node = self.current[-1]
        for item in self._splitpath(path):
            tag, attribs = self._splittag(item)
            next_node    = node.get_child(tag, attribs)

src/g/e/Gelatin-v0.1/src/Gelatin/generator/Xml.py   Gelatin(Download)
    def add(self, path, data = None):
        node = self.current[-1]
        for item in self._splitpath(path):
            tag, attribs = self._splittag(item)
            xpath        = self._tag2xpath(tag, attribs)

src/g/e/Gelatin-v0.1/src/Gelatin/generator/Json.py   Gelatin(Download)
    def add(self, path, data = None):
        node = self.current[-1]
        for item in self._splitpath(path):
            tag, attribs = self._splittag(item)
            next_node    = node.get_child(tag, attribs)