Logo Search packages:      
Sourcecode: jaxml version File versions  Download package

def jaxml::_TAGGED_document::_updatemapping (   self,
  newmap = None 
) [private]
Updates the internal mapping for the new templating facility,
   and returns the new mapping's content

   newmap
        a Python mapping object to initialise or extend the
        mapping. If None then the mapping is reset to an empty dictionnary
        which is the default value.

Definition at line 694 of file jaxml.py.

                                                :
                """Updates the internal mapping for the new templating facility,
                   and returns the new mapping's content

                   newmap
                        a Python mapping object to initialise or extend the
                        mapping. If None then the mapping is reset to an empty dictionnary
                        which is the default value.
                """        
                if newmap == None :
                        # clears the template mapping
                        self.__mapping = {}
                        return self.__mapping
                elif type(newmap) == type({}) :
                        # update or extend the current mapping
                        self.__mapping.update(newmap)
                        return self.__mapping
                else :
                        raise TypeError, "jaxml.py: _updatemapping's parameter must be a Python mapping object."


Generated by  Doxygen 1.6.0   Back to index