Nice branch! Since you've updated the UI you should get a UI review for
this from one of our crack UI reviewing team. I've a couple of
suggestions, but they're stylistic only.
> === modified file 'lib/lp/buildmaster/interfaces/buildfarmjob.py'
> --- lib/lp/buildmaster/interfaces/buildfarmjob.py 2010-08-30 15:00:23 +0000
> +++ lib/lp/buildmaster/interfaces/buildfarmjob.py 2010-09-14 11:14:51 +0000
> @@ -256,6 +256,14 @@
>
> was_built = Attribute("Whether or not modified by the builddfarm.")
>
> + # This doesn't belong here. It really belongs in IPackageBuild, but
> + # the TAL assumes it can read this directly.
> + dependencies = exported(
> + TextLine(
> + title=_('Dependencies'), required=False,
> + description=_('Debian-like dependency line that must be satisfied'
> + ' before attempting to build this request.')))
> +
ISTR we're supposed to format these things thus:
dependencies = exported(
TextLine( title=_('Dependencies'), required=False, description=_( 'Debian-like dependency line that must be satisfied ' 'before attempting to build this request.')))
That seems slightly neater to me, anyway. Might as well update it whilst
you're here.
Hi Jeroen,
Nice branch! Since you've updated the UI you should get a UI review for
this from one of our crack UI reviewing team. I've a couple of
suggestions, but they're stylistic only.
> === modified file 'lib/lp/ buildmaster/ interfaces/ buildfarmjob. py' buildmaster/ interfaces/ buildfarmjob. py 2010-08-30 15:00:23 +0000 buildmaster/ interfaces/ buildfarmjob. py 2010-09-14 11:14:51 +0000 ('Dependencies' ), required=False, _('Debian- like dependency line that must be satisfied'
> --- lib/lp/
> +++ lib/lp/
> @@ -256,6 +256,14 @@
>
> was_built = Attribute("Whether or not modified by the builddfarm.")
>
> + # This doesn't belong here. It really belongs in IPackageBuild, but
> + # the TAL assumes it can read this directly.
> + dependencies = exported(
> + TextLine(
> + title=_
> + description=
> + ' before attempting to build this request.')))
> +
ISTR we're supposed to format these things thus:
dependencies = exported(
title= _('Dependencies '), required=False,
descriptio n=_(
'Debian- like dependency line that must be satisfied '
'before attempting to build this request.')))
TextLine(
That seems slightly neater to me, anyway. Might as well update it whilst
you're here.
> armJob( IBuildFarmJob) : translations/ templates/ translationtemp latesbuild- index.pt' translations/ templates/ translationtemp latesbuild- index.pt 1970-01-01 00:00:00 +0000 translations/ templates/ translationtemp latesbuild- index.pt 2010-09-14 11:14:51 +0000 www.w3. org/1999/ xhtml" xml.zope. org/namespaces/ tal" xml.zope. org/namespaces/ metal" xml.zope. org/namespaces/ i18n" macro=" view/macro: page/main_ only" "launchpad" slot="registeri ng"> "context/ date_created/ fmt:displaydate " "title context/ date_created/ fmt:datetime" slot="main" >
> class ISpecificBuildF
> """A marker interface with which to define adapters for IBuildFarmJob.
>
> === added file 'lib/lp/
> --- lib/lp/
> +++ lib/lp/
> @@ -0,0 +1,133 @@
> +<html
> + xmlns="http://
> + xmlns:tal="http://
> + xmlns:metal="http://
> + xmlns:i18n="http://
> + metal:use-
> + i18n:domain=
> +>
> +
> + <body>
> +
> + <tal:registering metal:fill-
> + created
> + <span tal:content=
> + tal:attributes=
> + >on 2005-01-01</span>
> + </tal:registering>
> +
> + <div metal:fill-
> +
> + <div class="yui-g">
> +
> + <div id="status" class="yui-u first">
> + <div class="portlet">
Slightly odd formatting here.
> + <div metal:use- macro=" template/ macros/ status" />
> + </div>
> + </div>
> +
> + <div id="details" class="yui-u">
> + <div class="portlet">
And here.
> + <div metal:use- macro=" template/ macros/ details" /> "context/ status/ enumvalue: BUILDING" > macro=" template/ macros/ buildlog" /> macro=" details" > branch/ fmt:link" >
> + </div>
> + </div>
> +
> + </div> <!-- yui-g -->
> +
> + <div id="buildlog" class="portlet"
> + tal:condition=
> + <div metal:use-
> + </div>
> +
> + </div> <!-- main -->
> +
> +
> +<metal:macros fill-slot="bogus">
> +
> + <metal:macro define-
> + <tal:comment replace="nothing">
> + Details section.
> + </tal:comment>
> + <h2>Build details</h2>
> + <p>Branch:
> + <tal:branch replace="structure context/
> + lp:foo/trunk
> + </tal:branch>
This seems odd, too.
> + </p> "targets" > "structure target/ fmt:link" >gawk trunk series</a>
> + <tal:targets tal:define="targets view/getTargets">
> + <div tal:condition=
> + For import into:
> + <ul>
> + <li tal:repeat="target targets">
> + <a tal:replace=
> + </li>
As does this.
> + </ul> "not:targets" > macro=" status" > "structure context/image:icon" /> buildstatus$ {context/ status/ name};" "context/ status/ title"> Fully built</span> "builder" > "builder/ title" "href builder/fmt:url"/> atchTime" "time" "structure time"> shTime" "time" "structure time"> "duration" > "duration/ fmt:exactdurati on" />) "file"> "href context/log_url" "string: buildlog" >BUILDLOG< /a> "file/content/ filesize/ fmt:bytes" />) macro=" buildlog" > buildqueue_ record/ logtail" "structure logtail/ fmt:text- to-html" > "view/user" > "structure view/user/ fmt:local- time"/>
> + </div>
> + <div tal:condition=
> + <em>Not imported anywhere.</em>
> + </div>
> + </tal:targets>
> + </metal:macro>
> +
> + <metal:macro define-
> + <tal:comment replace="nothing">
> + Status section.
> + </tal:comment>
> + <h2>Build status</h2>
> + <p>
> + <span tal:replace=
> + <span tal:attributes="
> + class string:
> + tal:content=
> + <tal:building define="builder context/builder"
> + condition=
> + on <a tal:content=
> + tal:attributes=
> + </tal:building>
> + </p>
> +
> + <ul>
> + <li tal:define="time view/renderDisp
> + tal:condition=
> + tal:content=
> + Started 5 minutes ago
> + </li>
> + <li tal:define="time view/renderFini
> + tal:condition=
> + tal:content=
> + Finished 30 seconds ago
> + <tal:duration define="duration context/duration" condition=
> + (took <span tal:replace=
> + </tal:duration>
> + </li>
> +
> + <li tal:define="file context/log"
> + tal:condition=
> + <a class="sprite download"
> + tal:attributes=
> + tal:content=
> + (<span tal:replace=
> + </li>
> + </ul>
> + </metal:macro>
> +
> + <metal:macro define-
> + <tal:comment replace="nothing">
> + Buildlog section.
> + </tal:comment>
> + <h2>Buildlog</h2>
> + <div id="buildlog-tail" class="logtail"
> + tal:define="logtail context/
> + tal:content=
> + <p>Things are crashing and burning all over the place.</p>
> + </div>
> + <p class="discreet" tal:condition=
> + Updated on <span tal:replace=
> + </p>
> + </metal:macro>
> +
> +</metal:macros>
> +
> +
> + </body>
> +</html>
>