def addable_to_cart(self): context = aq_inner(self.context) return IPotentiallyAddableToCart.providedBy( context) and IAddableToCart.providedBy(context)
def addable_to_cart(self): context = aq_inner(self.context) return IPotentiallyAddableToCart.providedBy(context) and IAddableToCart.providedBy(context)
def potentially_addable_but_not_addable_to_cart(self): context = aq_inner(self.context) return IPotentiallyAddableToCart.providedBy( context) and not IAddableToCart.providedBy(context)
def potentially_addable_but_not_addable_to_cart(self): context = aq_inner(self.context) return IPotentiallyAddableToCart.providedBy(context) and not IAddableToCart.providedBy(context)