Matt Good wrote:
> On Mar 21, 3:27 am, Christian Boos <[EMAIL PROTECTED]> wrote:
>   
>> ...
>> The migration to Genshi retained a good part of the original "HDF"
>> compatible data structure needed to fill Clearsilver templates. Existing
>> objects were reused when possible, but no new classes were created,
>> rather dictionaries and lists where kept. Now we should maybe start to
>> create such intermediate objects more liberally, especially since
>> [genshi 510], as that would help to get default/missing values right (by
>> setting them to None in the constructor). That would be preferable to
>> all the defined('...') or get('...') calls introduced in the templates.
>>     
>
> To help with making sure values aren't missing I think it'd be easier
> to use some simple nested functions instead of creating new classes
> just to "hold" data.  In Java this is unfortunately common, but it's
> usually a symptom of the language missing some of the data structures
> found in Python, and the nice syntaxes Python has for generating
> them.  

Sorry, I don't get it, can you please give one example of such a nested 
functions and how it would be used?

-- Christian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Development" 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/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to