[py-svn] r36345 - py/dist/py/documentation
fijal at codespeak.net
fijal at codespeak.net
Tue Jan 9 13:43:03 CET 2007
Author: fijal
Date: Tue Jan 9 13:43:02 2007
New Revision: 36345
Modified:
py/dist/py/documentation/apigen.txt
Log:
Add a link to source viewer.
Modified: py/dist/py/documentation/apigen.txt
==============================================================================
--- py/dist/py/documentation/apigen.txt (original)
+++ py/dist/py/documentation/apigen.txt Tue Jan 9 13:43:02 2007
@@ -39,7 +39,7 @@
will be stored. An example::
>>> import py
- >>> from py.__.apigen.tracer.docstorage import DocStorage
+ >>> from py.__.apigen.tracer.docstorage import DocStorage, DocStorageAccessor
>>> from py.__.apigen.tracer.tracer import Tracer
>>> toregister = {'py.path.local': py.path.local,
... 'py.path.svnwc': py.path.svnwc}
@@ -83,7 +83,7 @@
>>> from py.__.apigen.rest.genrest import RestGen, DirectPaste, DirWriter
>>> # create a temp dir in /tmp/pytest-<userid>
>>> tempdir = py.test.ensuretemp('apigen_example')
- >>> rg = RestGen(ds, DirectPaste(), DirWriter(tempdir))
+ >>> rg = RestGen(DocStorageAccessor(ds), DirectPaste(), DirWriter(tempdir))
>>> rg.write()
An example of a somewhat more 'real-life' use case, writing to a directory of
@@ -93,7 +93,7 @@
>>> from py.__.apigen.rest.genrest import ViewVC, HTMLDirWriter
>>> from py.__.apigen.rest.htmlhandlers import HTMLHandler
>>> tempdir = py.test.ensuretemp('apigen_example_2')
- >>> rg = RestGen(ds, ViewVC('http://some.host.com/viewvc/myproj/trunk/'),
+ >>> rg = RestGen(DocStorageAccessor(ds), ViewVC('http://some.host.com/viewvc/myproj/trunk/'),
... HTMLDirWriter(HTMLHandler, HTMLHandler, tempdir))
>>> rg.write()
More information about the py-svn
mailing list