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)
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)
def _is_valid(self, value): deprecated.warn(value) return super(_RelatedPackageList, self)._is_valid(value)