Re: Dilemma: code duplication or complexity?

2006-05-14 Thread dr . virago
Thanks for reading up to there :-) This is getting off-topic for this mailing list, but there are 2 reasons: - main reason is that I don't need all features of Trac, only a basic ticket system stuff, and I must adapt it to our working methods (translation: weird management methods) - minor reas

How many times my method returning dict is called in template?

2006-07-25 Thread dr . virago
Hi, I would need clarifications on the processing of templates as I bumped into reality today: From a template, I call a model method that returns a dict (of statistics), i.e something like: {{ model.method.dict_key_A }} {{ model.method.dict_key_B }} {{ model.method.dict_key_C }} Today I wa

Re: How many times my method returning dict is called in template?

2006-07-25 Thread dr . virago
I get the idea. My trouble is caused by going through a method then dict keys. Your example is the easiest for me I guess (without overhead development of template tags which I never played with... yet). I am thinking of an alternate way, where some 'init' method would stick the dict values as