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

        PackageXmlMixIn._registerTypes(self)
        self._databinder.registerType(_Metadata, name='metadata')
Example #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')
Example #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')