From 6adcee5341c9f618553466e64ff482701737f3ed Mon Sep 17 00:00:00 2001 From: Shane Hathaway Date: Thu, 17 Nov 2011 16:12:53 -0700 Subject: [PATCH] Fixed the documentation buildout --- buildout.cfg | 4 ++-- docs/index.rst | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/buildout.cfg b/buildout.cfg index 9437ffa..f8ef966 100644 --- a/buildout.cfg +++ b/buildout.cfg @@ -20,8 +20,8 @@ ignores = setuptools [sphinxbuilder] recipe = collective.recipe.sphinxbuilder -source = ${buildout:directory}/doc/source -build = ${buildout:directory}/doc/build +source = ${buildout:directory}/docs +build = ${buildout:directory}/docs/_build outputs = html doctest diff --git a/docs/index.rst b/docs/index.rst index ba56127..ded213e 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -392,27 +392,27 @@ Note that the new_container_ids attribute in the example above is None, implying the document was deleted, not moved. Let's move the document to a new container. - >>> new_container = MyContainer(7, {'movie': d}) - >>> archive.archive_container(MyContainerVersion(new_container), '123') - >>> transaction.commit() - >>> new_cc = archive.container_contents(7) - >>> new_cc.container_id - 7 - >>> new_cc.map - {u'movie': 5} - >>> len(new_cc.deleted) - 0 - >>> cc = archive.container_contents(6) - >>> cc.container_id - 6 - >>> cc.map - {} - >>> len(cc.deleted) - 1 + >>> new_container = MyContainer(7, {'movie': d}) + >>> archive.archive_container(MyContainerVersion(new_container), '123') + >>> transaction.commit() + >>> new_cc = archive.container_contents(7) + >>> new_cc.container_id + 7 + >>> new_cc.map + {u'movie': 5} + >>> len(new_cc.deleted) + 0 + >>> cc = archive.container_contents(6) + >>> cc.container_id + 6 + >>> cc.map + {} + >>> len(cc.deleted) + 1 >>> cc.deleted[0].name u'movie' - >>> cc.deleted[0].new_container_ids - [7] + >>> cc.deleted[0].new_container_ids + [7] The result of the container_contents method now shows that the document has been moved to container 7. The application could use this information