incubator-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mohammad Nour El-Din <nour.moham...@gmail.com>
Subject Re: [clutch.py] Split into data and presentation?
Date Wed, 26 Oct 2011 08:41:07 GMT
Hi...

On Mon, Oct 24, 2011 at 6:20 PM, Mohammad Nour El-Din
<nour.mohammad@gmail.com> wrote:
> Hi...
>
>   I would suggest using some templates for each required format of
> output. At work, in which we are using Python on daily bases :), we
> are using Cheetah [1]. But I also found [2] in which they claim they
> are lighter than [1].
>
> Sebb...
>
>   I already showed interest joining enhancing and CMSing the
> incubator site, I was away on a business trip and now I want to start
> doing something, but I am not totally aware yet of where or what I can
> help in, any hints :) ?

No hints :D ?

Not even a small clue :D ?

Anyway, on second thought I already got myself busy with other things :).

And kudos to the perfect job you and others are doing :D.

>
> [1] - http://www.cheetahtemplate.org/
> [2] - http://pythonpaste.org/tempita/
>
> On Wed, Oct 19, 2011 at 2:01 PM, sebb <sebbaz@gmail.com> wrote:
>> On 19 October 2011 01:18, David Crossley <crossley@apache.org> wrote:
>>> sebb wrote:
>>>>
>>>> At present, clutch.py generates the output HTML directly.
>>>
>>> To clarify for others (i know that sebb knows):
>>> It generates the whole xml into site-author, using some
>>> fragments of html that are hard-coded in the clutch.py code.
>>> Anakia then generates the html page as normal.
>>
>> Yes, sorry, I overlooked the Anakia stage; what I meant was that the
>> code generates most of the formatting.
>>
>>>> This means embedding HTML in the python code, which is awkward to
>>>> read, and a bit more difficult to update.
>>>>
>>>> Would it be worth changing this so the python code only creates the
>>>> raw data as several XML/HTML entities (like current.ent/dormant.ent)?
>>>>
>>>> The enclosing clutch.html page can then be generated and maintained
>>>> like projects/index.
>>>
>>> Yes please. There is a vague fixme note in the code.
>>> Sorry i do not have the time at the moment.
>>> So if you can manage my horrid code then please do.
>>
>> I would not call it horrid; it has not bitten me yet!
>>
>>> -David
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
>>> For additional commands, e-mail: general-help@incubator.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
>> For additional commands, e-mail: general-help@incubator.apache.org
>>
>>
>
>
>
> --
> Thanks
> - Mohammad Nour
> ----
> "Life is like riding a bicycle. To keep your balance you must keep moving"
> - Albert Einstein
>



-- 
Thanks
- Mohammad Nour
----
"Life is like riding a bicycle. To keep your balance you must keep moving"
- Albert Einstein

---------------------------------------------------------------------
To unsubscribe, e-mail: general-unsubscribe@incubator.apache.org
For additional commands, e-mail: general-help@incubator.apache.org


Mime
View raw message