def __getitem__ (self, path):
        """ Return the path to use for the given subsection with numbering
        included. The numbering increments for each new subsection request. If
        a section is re-requested, it gets the original numbering.
        """
        if path in self.name:
            name = self.name[path]
        else:
            sec, subsec = path.split('/')
            subnum = self.count[sec]
            num = self.num[sec]
            name = '%s/%s.%02d_%s' % (self.name[sec], num + 1, subnum, subsec)
            self.count[sec] += 1
            self.name[path] = name
        path = os.path.join(os.getcwd(), self.base, name)
        return path
def __getitem__ ( self , path ) : if path in self . name : name = self . name [ path ] else : sec , subsec = path . split ( '/' ) subnum = self . count [ sec ] num = self . num [ sec ] name = '%s/%s.%02d_%s' % ( self . name [ sec ] , num + 1 , subnum , subsec ) self . count [ sec ] += 1 self . name [ path ] = name path = os . path . join ( os . getcwd ( ) , self . base , name ) return path
Return the path to use for the given subsection with numbering
        included. The numbering increments for each new subsection request. If
        a section is re-requested, it gets the original numbering.