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
> 

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to