def get_namespace(self, resource, context): cart = ProductCart(context) return cart.get_namespace(resource)