def available(self): """Portlet is always available. The only situation we do not need it is when we display the shopping cart. The template does some checking of its own via another browser view that is called. """ return not IDontShowGetPaidPortlets.providedBy(self.view)
def available(self): """Portlet is always available. The only situation we do not need it is when we display the shopping cart. The template does some checking of its own via another browser view that is called. """ return not IDontShowGetPaidPortlets.providedBy(self.view)
def available(self): #don't show this portlet when a cart view is active #eg when viewing buyable-object/@@getpaid-cart-add return not IDontShowGetPaidPortlets.providedBy(self.view) and super( Renderer, self).available
def available(self): #don't show this portlet when a cart view is active #eg when viewing buyable-object/@@getpaid-cart-add return not IDontShowGetPaidPortlets.providedBy(self.view) and super(Renderer, self).available