"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:

================================================================================
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...)

-- 
Jorge Godoy      <[EMAIL PROTECTED]>

--~--~---------~--~----~------------~-------~--~----~
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