|
From: Leonardo R. A. <le...@hi...> - 2002-01-16 17:52:15
|
On Wed, 2002-01-16 at 07:06, Albertas Agejevas wrote:
> On Fri, Jan 11, 2002 at 04:17:59PM -0200, Lalo Martins wrote:
> > However, Leo's design was that TestRunner would acquire an
> > interface from the ZODB in good Zope tradition. Do you disagree
> > to this approach?
>
> Do you mean that TestRunner would acquire some object that would
> define its presentation? Or do you mean that TestRunner would have
> TTW-manageable presentation (DTML for now) methods?
Both aproaches seem interesting and both mean acquiring the presentation
from the ZODB somehow. Truth is, we didn't have much of an idea exactly
how, mostly because we haven't thought of it much. We'd think about it
later, but we knew we wanted to have it customizable or themeable (sp?).
Maybe we could acquire a folder or a folderlike object with the template
components we need.
I took a look at your patch and I was thinking that, instead of
verifying a verbosity component we could have a template collection
name, which would be a directory name to be appended to
'Products/ZUnit/dtml/TestMonitor/' inside which we would look for dtmls
named "error", "succes", etc.
So, inside TestMonitor.__init__() we could do something like::
dtmlPath = "Products/ZUnit/dtml/TestMonitor/"
if collection:
dtmlPath = dtmlPath + collection + "/"
self.testError = Globals.HTMLFile(dtmlPath + 'error')
self.testSuccess = Globals.HTMLFile(dtmlPath + 'success')
...
What do you guys think?
--
Ideas don't stay in some minds very long because they don't like
solitary confinement.
|