[Zope3-dev] RE: [Zope3-checkins] SVN: Zope3/trunk/ Bugfix:
Roger Ineichen
dev at projekt01.ch
Sat Dec 3 18:08:05 EST 2005
Hi Benji
[...]
> Here is what I'd do:
>
> > they are provided in a aseparate section. To see anything
> useful, we have to
> > add an object to the folder first:
> >
> > - >>> link =
> 'http://localhost/@@+/action.html?type_name=zope.app.file.File'
> > - >>> browser.getLink(url=link).click()
> > + >>> import re
> > + >>> browser.getLink(re.compile('^File$')).click()
> > >>> import cStringIO
> > >>> browser.getControl('Data').value =
> cStringIO.StringIO('content')
> > >>> browser.getControl(name='add_input_name').value =
> 'file.txt'
>
>
> I'm not really a big fan of using regular expressions in testbrowser,
> but they exist and we don't have time to implement something better
> (probably XPath) before 3.2 is released.
> --
That's fine for me as long we only check the 'File' as name.
Can you commit it.
I agree on changing this part for the next release.
Regards
Roger Ineichen
Projekt01 GmbH
_____________________________
END OF MESSAGE
> Benji York
> Senior Software Engineer
> Zope Corporation
>
More information about the Zope3-dev
mailing list