Exemple #1
0
    def add_description(self, description):
        """**DEPRECATED**. Adds a description to the ``descriptions``
        collection.

        This is the same as calling "foo.descriptions.add(bar)".

        """
        deprecated.warn(description)
        self.descriptions.add(description)
Exemple #2
0
    def add_package_intent(self, package_intent):
        """**DEPRECATED**. Adds :class:`.VocabString` object to the
        :attr:`package_intents` collection.

        If the input is not an instance of :class:`.VocabString`, an effort
        will be made to convert it into an instance of :class:`.PackageIntent`.

        """
        deprecated.warn(package_intent)
        self.package_intents.append(package_intent)
Exemple #3
0
 def _is_valid(self, value):
     deprecated.warn(value)
     return super(_RelatedPackageList, self)._is_valid(value)
Exemple #4
0
 def _is_valid(self, value):
     deprecated.warn(value)
     return super(_RelatedPackageList, self)._is_valid(value)