def payable(self): """Return the payable (shippable) version of the context. """ iface = PayableMarkerMap.get(self.marker, None) if iface is None: # Something is badly wrong here. return None return iface( self.context )
def payable(self): """Return the payable (shippable) version of the context. """ iface = PayableMarkerMap.get(self.marker, None) if iface is None: # Something is badly wrong here. return None return iface(self.context)
def payable(self, item): """Return the payable (shippable) version of the context. """ if GETPAID_EXISTS: iface = PayableMarkerMap.get(IBuyableMarker, None) if iface is None: print("Something is badly wrong here.") return None return iface( item ) else: return none
def payable(self, item): """Return the payable (shippable) version of the context. """ if GETPAID_EXISTS: iface = PayableMarkerMap.get(IBuyableMarker, None) if iface is None: print("Something is badly wrong here.") return None return iface(item) else: return none