Fax Missing.Value for Creator in the catalog. Fixes #11634.
svn path=/plone.app.discussion/trunk/; revision=48838
This commit is contained in:
parent
187aa60452
commit
cad670d6af
@ -4,6 +4,9 @@ Changelog
|
|||||||
2.0b2 (Unreleased)
|
2.0b2 (Unreleased)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
- Fax Missing.Value for Creator in the catalog. Fixes #11634.
|
||||||
|
[rossp]
|
||||||
|
|
||||||
- Don't add the annotation unless a comment is actually being added.
|
- Don't add the annotation unless a comment is actually being added.
|
||||||
Fixes #11370.
|
Fixes #11370.
|
||||||
[rossp]
|
[rossp]
|
||||||
|
@ -72,7 +72,7 @@ def title(object):
|
|||||||
|
|
||||||
@indexer(IComment)
|
@indexer(IComment)
|
||||||
def creator(object):
|
def creator(object):
|
||||||
return object.creator.encode('utf-8')
|
return object.creator and object.creator.encode('utf-8')
|
||||||
|
|
||||||
@indexer(IComment)
|
@indexer(IComment)
|
||||||
def description(object):
|
def description(object):
|
||||||
|
@ -299,3 +299,47 @@ Make sure the edit was successful.
|
|||||||
|
|
||||||
>>> 'Lorem ipsum' in browser.contents
|
>>> 'Lorem ipsum' in browser.contents
|
||||||
True
|
True
|
||||||
|
|
||||||
|
|
||||||
|
List comments in a collection
|
||||||
|
-----------------------------
|
||||||
|
|
||||||
|
Create a collection.
|
||||||
|
|
||||||
|
>>> browser.open(portal.absolute_url())
|
||||||
|
>>> browser.getLink(url='createObject?type_name=Topic').click()
|
||||||
|
>>> browser.getControl('Title', index=0
|
||||||
|
... ).value = 'Foo Comment Collection'
|
||||||
|
>>> browser.getControl('Save').click()
|
||||||
|
>>> print browser.contents
|
||||||
|
<...Changes saved...
|
||||||
|
|
||||||
|
Set the collection criteria.
|
||||||
|
|
||||||
|
>>> browser.getLink('Criteria').click()
|
||||||
|
>>> browser.getControl('Item Type', index=0).selected = True
|
||||||
|
>>> browser.getControl('Select content types').selected = True
|
||||||
|
>>> browser.getControl('Add criteria').click()
|
||||||
|
>>> print browser.contents
|
||||||
|
<...Added criterion ATPortalTypeCriterion for field Type...
|
||||||
|
|
||||||
|
>>> browser.getControl('Comment').selected = True
|
||||||
|
>>> browser.getControl('Save', index=0).click()
|
||||||
|
>>> print browser.contents
|
||||||
|
<...Changes saved...
|
||||||
|
|
||||||
|
View the collection listing.
|
||||||
|
|
||||||
|
>>> browser.getLink('View').click()
|
||||||
|
>>> browser.getLink('admin on Doc1', index=0)
|
||||||
|
<Link text='admin on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
>>> browser.getLink('admin on Doc1', index=1)
|
||||||
|
<Link text='admin on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
>>> browser.getLink('Anonymous on Doc1', index=0)
|
||||||
|
<Link text='Anonymous on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
>>> browser.getLink('Anonymous on Doc1', index=1)
|
||||||
|
<Link text='Anonymous on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
>>> browser.getLink('Tarek Ziadé on Doc1')
|
||||||
|
<Link text='Tarek Ziad\xc3\xa9 on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
>>> browser.getLink('Jim Fultørn on Doc1')
|
||||||
|
<Link text='Jim Fult\xc3\xb8rn on Doc1' url='http://nohost/plone/doc1/++conversation++default/...'>
|
||||||
|
Loading…
Reference in New Issue
Block a user