Maurits van Rees wrote:
Wichert Akkerman, on 2008-05-28:
Previously Maurits van Rees wrote:
When you add a page to your Plone Site and add an internal link in
there this gets added to the reference_catalog.  'yourpage.getRefs()'
will list that content object your point to as a reference, next to
any related items you may have added.  At least that is what happens
in Plone 3.0.

But which part of Plone is doing that?  And specifically: how do I
trigger the references extraction in a test?
That sounds like plone.app.linkintegrity infrastructure.

Bingo!  And the tests in that package show how to properly test this,
which is like this:

    page.processForm(values={'text': text_template % front_path})

Tests pass now.  Thanks!

I keep grepping only in parts/plone and parts/zope2 and often forget
about all those other packages...

..which is one of the reasons why David Glick made collective.recipe.omelette! :-)

http://pypi.python.org/pypi/collective.recipe.omelette

_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to