[Buildbot-devel] Request For Comments/Review : Console view

Marcus Lindblom macke at yar.nu
Tue Jul 21 10:31:36 UTC 2009



Nicolas Sylvain wrote:
> 
> 
> On Fri, Jul 17, 2009 at 9:57 AM, Dustin J. Mitchell 
> <dustin-7LH+4Oslcb7QT0dZR+AlfA at public.gmane.org 
> <mailto:dustin-7LH+4Oslcb7QT0dZR+AlfA at public.gmane.org>> wrote:
> 
>     On Fri, Jul 17, 2009 at 11:49 AM, Nicolas
>     Sylvain<nsylvain-F7+t8E8rja9g9hUCZPvPmw at public.gmane.org
>     <mailto:nsylvain-F7+t8E8rja9g9hUCZPvPmw at public.gmane.org>> wrote:
>      > I was not aware of this, but if I can get rid of console_html.js
>     I would be
>      > really happy ;)
> 
>     The bad news is, string.Template only appeared in Py2.4, and we
>     support Py2.3 (although we still lack a Py2.3 metabuildslave).  This
>     wouldn't be so bad, but importing WebStatus imports everything else,
>     so this change would preclude using WebStatus on Py2.3.
> 
>     So a few solutions present themselves:
>      - make WebStatus only optionally import the console, and document
>     that console requires Py2.4
>      - rewrite console to not use Template
>      - write a compatible Template class that's used on Py2.3
> 
>  
> Might be a good idea in the long run, maybe not so much right now ;) The 
> team here at Google is also
> trying to convince me to rewrite the console page in ajax and make it 
> never reload. It would just fetch new
> build status as they finish in the background and update the view 
> dynamically. I have no knowledge of Ajax and
> advanced javascript programming, so this is kind of hard, but if I have 
> to rewrite the frontend of the console page, I'm
> hoping I'll have to rewrite it only once ;)

This would be neat. I'm thinking of going that way with the html-rewrite 
eventually anyway.

I've been using jquery (www.jquery.org) quite a lot for my javascript 
needs, and it's just awesome. (simple, works in most browsers and the 
docs/examples rock)

/Marcus






More information about the devel mailing list