Jorge Godoy wrote:
> "Michele Cella" <[EMAIL PROTECTED]> writes:
>
> > An update:
> >
> > 1) for storing things in the path I will use an object like this one:
> >
> > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308
> >
> > and repetition will be a number not a strange iterator instance.
>
> I've used this "Bunch" class in other projects and it works fine.  I chose one
> of the options that work in interactive shell to make debugging easier.  I
> believe it was this class:
>

Great to know! ;-) I will use that also then...

> ================================================================================
> class BunchDict(dict):
>     def __init__(self,**kw):
>         dict.__init__(self,kw)
>         self.__dict__.update(kw)
> ================================================================================
>
> > 2) the iterator will work at repeating fields level and will
> > automatically update it's repetition number while iterating in the
> > template.
>
> It looks very nice to me!  (And would eliminate a lot of AJAX to generate
> repetitive tables here...)
>

Yep, let's see how it turns out, I'm in pretty good shape now (just
need to implement the repeating widget and the iterator) and simplified
some other things along the way, but I'm going away now and during all
the week-end so I'm not sure I will have a patch ready before Monday,
anyway it's really almost there and we have no hurry. ;-)

Ciao
Michele


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk
-~----------~----~----~----~------~----~------~--~---

Reply via email to