예제 #1
0
 def addable_to_cart(self):
     context = aq_inner(self.context)
     return IPotentiallyAddableToCart.providedBy(
         context) and IAddableToCart.providedBy(context)
예제 #2
0
 def addable_to_cart(self):
     context = aq_inner(self.context)
     return IPotentiallyAddableToCart.providedBy(context) and IAddableToCart.providedBy(context)
예제 #3
0
 def potentially_addable_but_not_addable_to_cart(self):
     context = aq_inner(self.context)
     return IPotentiallyAddableToCart.providedBy(
         context) and not IAddableToCart.providedBy(context)
예제 #4
0
 def potentially_addable_but_not_addable_to_cart(self):
     context = aq_inner(self.context)
     return IPotentiallyAddableToCart.providedBy(context) and not IAddableToCart.providedBy(context)