Dylan Jay your code helped me a lot. Thank you very much.

FTR the method setInAndOut in testing.py helps setting options in an
OrderedSelectWidget.


2013/2/21 Dylan Jay <[email protected]>

> On 21/02/2013, at 8:37 PM, oggers <[email protected]> wrote:
>
> > Hi,
> >
> > I'm trying to write a functional test for a plone form that has an
> > OrderedSelectWidget and I can't figure out how to set this.
>
> If you look in my test code in
> http://github.com/collective/collective.listingviews I wrote a method
> using zope.testbrowser to do just that.
>
> >
> > This is my code in tests.py:
> >
> >
> >
> > In this case I try to set the value to all available shop objects.
> > available_shops returns a SimpleVocabulary
> >
> > And this is the field definition:
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://plone.293351.n2.nabble.com/Any-clue-on-setting-the-value-for-an-OrderedSelectWidget-in-a-functional-test-tp7563395.html
> > Sent from the Product Developers mailing list archive at Nabble.com.
> > _______________________________________________
> > Product-Developers mailing list
> > [email protected]
> > https://lists.plone.org/mailman/listinfo/plone-product-developers
>



-- 
Juan Carlos Coruña: Magento, Python, Zope, Plone, Navision.
http://oggers-blog.blogspot.com
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to