Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the documentation buildout

  • Loading branch information...
commit 6adcee5341c9f618553466e64ff482701737f3ed 1 parent 3e78bf1
@hathawsh hathawsh authored
Showing with 21 additions and 21 deletions.
  1. +2 −2 buildout.cfg
  2. +19 −19 docs/index.rst
View
4 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
View
38 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
Please sign in to comment.
Something went wrong with that request. Please try again.