示例#1
0
    def _registerTypes(self):
        """
        Setup databinder to parse xml.
        """

        PackageXmlMixIn._registerTypes(self)
        self._databinder.registerType(_Metadata, name='metadata')
示例#2
0
    def _registerTypes(self):
        """
        Setup databinder to parse xml.
        """

        PackageXmlMixIn._registerTypes(self)
        self._databinder.registerType(_PackageFL, name='package')
        self._databinder.registerType(_FileLists, name='filelists')
示例#3
0
    def _registerTypes(self):
        """
        Setup databinder to parse xml.
        """

        class _Package(self.PackageFactory):
            # The base package has no type
            __slots__ = ('type', )


        PackageXmlMixIn._registerTypes(self)
        self._databinder.registerType(_Package, name='package')
        self._databinder.registerType(_Patch, name='patch')
        self._databinder.registerType(xmllib.StringNode, name='name',
                                      namespace='yum')
        self._databinder.registerType(xmllib.StringNode, name='category')
        self._databinder.registerType(_Atoms, name='atoms')
        self._databinder.registerType(xmllib.StringNode,
                                      name='license-to-confirm')