[Checkins]
SVN: grokui.introspector/trunk/src/grokui/introspector/README.txt
Update tests for code browser.
Uli Fouquet
uli at gnufix.de
Fri Jul 18 18:11:14 EDT 2008
Log message for revision 88560:
Update tests for code browser.
Changed:
U grokui.introspector/trunk/src/grokui/introspector/README.txt
-=-
Modified: grokui.introspector/trunk/src/grokui/introspector/README.txt
===================================================================
--- grokui.introspector/trunk/src/grokui/introspector/README.txt 2008-07-18 22:10:40 UTC (rev 88559)
+++ grokui.introspector/trunk/src/grokui/introspector/README.txt 2008-07-18 22:11:13 UTC (rev 88560)
@@ -78,6 +78,9 @@
Browsing code (classes, packages, etc.)
=======================================
+The code browser assists in giving us an overview over the available
+code basis. The overview page is where we can start::
+
>>> browser.getLink(
... "Browse classes, packages and other filesystem based information"
... ).click()
@@ -86,6 +89,43 @@
<h1>Code</h1>
...
+The overview page provides already some starting points to explore the
+whole code basis. We can go to the ``zope`` package::
+
+ >>> zope_link = browser.getLink('Browse the zope package')
+ >>> zope_link.click()
+ >>> print browser.contents
+ <!DOCTYPE html...
+ Package: <span>zope</span>
+ ...
+
+The system detected from the URL, that we wanted to get information
+about the ``zope`` package. The link we clicked looks like this::
+
+ >>> zope_link
+ <Link ... url='http://localhost/++introspector++/code/zope'>
+
+We look for the ``grokui.introspector`` package by browsing::
+
+ >>> base_url = 'http://localhost/++introspector++/code/'
+
+This URL has two important parts:
+
+1) the `++introspector++` tells, that we want to get introspector
+ informations of some kind.
+
+2) the following `code/` part of the URL tells, that we want to
+ explore the code bases (and not the registries or ZODB).
+
+We now only add the interesting package ``grokui.introspector`` by
+adding its dotted name with dots replaced by slashes::
+
+ >>> browser.open(base_url + 'grokui/introspector')
+ >>> print browser.contents
+ <!DOCTYPE html...
+ Package: <span>grokui.introspector</span>
+ ...
+
We get back to introspector home page::
>>> browser.open('http://localhost/++introspector++/')
More information about the Checkins
mailing list