Skip to content

Commit

Permalink
Fixed the documentation buildout
Browse files Browse the repository at this point in the history
  • Loading branch information
hathawsh committed Nov 17, 2011
1 parent 3e78bf1 commit 6adcee5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions buildout.cfg
Expand Up @@ -20,8 +20,8 @@ ignores = setuptools


[sphinxbuilder] [sphinxbuilder]
recipe = collective.recipe.sphinxbuilder recipe = collective.recipe.sphinxbuilder
source = ${buildout:directory}/doc/source source = ${buildout:directory}/docs
build = ${buildout:directory}/doc/build build = ${buildout:directory}/docs/_build
outputs = outputs =
html html
doctest doctest
Expand Down
38 changes: 19 additions & 19 deletions docs/index.rst
Expand Up @@ -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 implying the document was deleted, not moved. Let's move the document
to a new container. to a new container.


>>> new_container = MyContainer(7, {'movie': d}) >>> new_container = MyContainer(7, {'movie': d})
>>> archive.archive_container(MyContainerVersion(new_container), '123') >>> archive.archive_container(MyContainerVersion(new_container), '123')
>>> transaction.commit() >>> transaction.commit()
>>> new_cc = archive.container_contents(7) >>> new_cc = archive.container_contents(7)
>>> new_cc.container_id >>> new_cc.container_id
7 7
>>> new_cc.map >>> new_cc.map
{u'movie': 5} {u'movie': 5}
>>> len(new_cc.deleted) >>> len(new_cc.deleted)
0 0
>>> cc = archive.container_contents(6) >>> cc = archive.container_contents(6)
>>> cc.container_id >>> cc.container_id
6 6
>>> cc.map >>> cc.map
{} {}
>>> len(cc.deleted) >>> len(cc.deleted)
1 1
>>> cc.deleted[0].name >>> cc.deleted[0].name
u'movie' u'movie'
>>> cc.deleted[0].new_container_ids >>> cc.deleted[0].new_container_ids
[7] [7]


The result of the container_contents method now shows that the document The result of the container_contents method now shows that the document
has been moved to container 7. The application could use this information has been moved to container 7. The application could use this information
Expand Down

0 comments on commit 6adcee5

Please sign in to comment.