registrasion/controllers/invoice.py
def _invoice_matches_cart(self):
        ''' Returns true if there is no cart, or if the revision of this
        invoice matches the current revision of the cart. '''

        self._refresh()

        cart = self.invoice.cart
        if not cart:
            return True

        return cart.revision == self.invoice.cart_revision
def _invoice_matches_cart(self):
        ''' Returns true if there is no cart, or if the revision of this
        invoice matches the current revision of the cart. '''

        self._refresh()

        cart = self.invoice.cart
        if not cart:
            return True

        return cart.revision == self.invoice.cart_revision
def _invoice_matches_cart ( self ) : self . _refresh ( ) cart = self . invoice . cart if not cart : return True return cart . revision == self . invoice . cart_revision
Returns true if there is no cart, or if the revision of this
        invoice matches the current revision of the cart.
Returns true if there is no cart or if the revision of this invoice matches the current revision of the cart .