def convertDict2Attrs(self, *args, **kwargs):
        """The trick for iterable Mambu Objects comes here:

        You iterate over each element of the responded List from Mambu,
        and create a Mambu Transaction object for each one, initializing
        them one at a time, and changing the attrs attribute (which just
        holds a list of plain dictionaries) with a MambuTransaction just
        created.

        You send a None urlfunc and entid to each MambuTransaction,
        because there's no method to retrieve individual transactions
        from Mambu.

.. todo:: use the transactionid as a possible entid here.
        """
        for n,t in enumerate(self.attrs):
            # ok ok, I'm modifying elements of a list while iterating it. BAD PRACTICE!
            try:
                params = self.params
            except AttributeError as aerr:
                params = {}
            kwargs.update(params)
            try:
                trans = self.mambutransactionclass(urlfunc=None, entid=None, *args, **kwargs)
            except AttributeError as ae:
                self.mambutransactionclass = MambuTransaction
                trans = self.mambutransactionclass(urlfunc=None, entid=None, *args, **kwargs)
            trans.init(t, *args, **kwargs)
            self.attrs[n] = trans
def convertDict2Attrs ( self , * args , ** kwargs ) : for n , t in enumerate ( self . attrs ) : try : params = self . params except AttributeError as aerr : params = { } kwargs . update ( params ) try : trans = self . mambutransactionclass ( urlfunc = None , entid = None , * args , ** kwargs ) except AttributeError as ae : self . mambutransactionclass = MambuTransaction trans = self . mambutransactionclass ( urlfunc = None , entid = None , * args , ** kwargs ) trans . init ( t , * args , ** kwargs ) self . attrs [ n ] = trans
The trick for iterable Mambu Objects comes here:

        You iterate over each element of the responded List from Mambu,
        and create a Mambu Transaction object for each one, initializing
        them one at a time, and changing the attrs attribute (which just
        holds a list of plain dictionaries) with a MambuTransaction just
        created.

        You send a None urlfunc and entid to each MambuTransaction,
        because there's no method to retrieve individual transactions
        from Mambu.

.. todo:: use the transactionid as a possible entid here.