Am 09.11.2009, 10:03 Uhr, schrieb Jens Vagelpohl <j...@dataflake.org>:

@Charlie: Your wording is unclear, did you have changes in your local sandbox that were mot committed to the branch? Or were you confusing "committing" and "merging to trunk"?

Sorry for the vagueness.

I merged my branch in my local trunk. I spotted the path changes and made them but I'm still getting the following error:

VocabularyRegistryError: unknown vocabulary: u'cmf.contents delta vocabulary'

As a result I didn't commit my changes to trunk.

I assume the test are still not set up correctly but comparing them with other browser tests I can't see why.

Charlie
--
Charlie Clark
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-938-5360
GSM: +49-178-782-6226

Attachment: configure.zcml
Description: Binary data

Attachment: folder.py
Description: Binary data

Form Views
--------------

Set up user.

    >>> uf = app.site.acl_users
    >>> uf._doAddUser('mgr', 'mgrpw', ['Manager'], [])
    >>> from zope.site.hooks import setSite
    >>> setSite(app.site)

Create the browser object we'll be using.

    >>> from Products.Five.testbrowser import Browser
    >>> browser = Browser()
    >>> browser.handleErrors = False
    >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw')

Open the contents view with the various options selected.
All sort options apart from position are reversible.

    >>> browser.open('http://localhost/site/@@edit.html?form.b_start=25')
    >>> 'name="form.b_start" type="hidden" value="25"' in browser.contents
    True
    >>> browser.open('http://localhost/site/@@edit.html?form.sort_key=Type')
    >>> 'name="form.sort_key" type="hidden" value="Type"' in browser.contents
    True
    >>> '<a 
href="http://localhost/site/@@edit.html?form.sort_key=Type&amp;form.reverse=1";>'
 \
    ... in browser.contents
    True
    >>> browser.open('http://localhost/site/@@edit.html?form.sort_key=getId')
    >>> 'name="form.sort_key" type="hidden" value="getId"' in browser.contents
    True
    >>> '<a 
href="http://localhost/site/@@edit.html?form.sort_key=getId&amp;form.reverse=1";>'
 \
    ... in browser.contents
    True
    >>> browser.open('http://localhost/site/@@edit.html?form.sort_key=modified')
    >>> 'name="form.sort_key" type="hidden" value="modified"' in 
browser.contents
    True
    >>> '<a 
href="http://localhost/site/@@edit.html?form.sort_key=modified&amp;form.reverse=1";>'
 \
    ... in browser.contents
    True
    >>> browser.open('http://localhost/site/@@edit.html?form.sort_key=position')
    >>> 'name="form.sort_key" type="hidden" value="position"' in 
browser.contents
    True
    >>> '<a 
href="http://localhost/site/@@edit.html?form.sort_key=position&amp;form.reverse=1";>'
 \
    ... in browser.contents
    False



    >>> 
browser.open('http://localhost/site/@@edit.html?form.sort_key=Type&form.reverse=1')
    >>> 'name="form.reverse" type="hidden" value="1"' in browser.contents
    True
    >>> 
browser.open('http://localhost/site/@@edit.html?form.sort_key=getId&form.reverse=1')
    >>> 'name="form.reverse" type="hidden" value="1"' in browser.contents
    True
    >>> 
browser.open('http://localhost/site/@@edit.html?form.sort_key=modified&form.reverse=1')
    >>> 'name="form.reverse" type="hidden" value="1"' in browser.contents
    True
    >>> 
browser.open('http://localhost/site/@@edit.html?form.sort_key=position&form.reverse=1')
    >>> 'name="form.reverse" type="hidden" value="1"' in browser.contents
    True

Attachment: test_folder.py
Description: Binary data

_______________________________________________
Zope-CMF maillist  -  Zope-CMF@zope.org
https://mail.zope.org/mailman/listinfo/zope-cmf

See https://bugs.launchpad.net/zope-cmf/ for bug reports and feature requests

Reply via email to