Skip to content

Commit

Permalink
a few more documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Zipay committed Apr 8, 2015
1 parent b1a9037 commit 0cf8c91
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
6 changes: 1 addition & 5 deletions .hgignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,5 @@ doc/build
doc/bootswatch
doc/cherrypy
test-versions-variants.*
test_integration-env2.7
test_integration-env3.1
test_integration-env3.2
test_integration-env3.3
test_integration-env3.4
test_integration-*-env

2 changes: 1 addition & 1 deletion aglyph/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ def __init__(self, component_id, dotted_name=None, factory_name=None,
objects of this component at assembly time. For example::
component = Component("http.client.HTTPConnection")
component.args.append("www.ninthtest.net")
component.args.append("ninthtest.net")
component.args.append(80)
component.keywords["strict"] = True
component.attributes["set_debuglevel"] = 1
Expand Down
12 changes: 6 additions & 6 deletions doc/source/cookbook-common.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ In the XML context document *"cookbook-context.xml"*::
<context id="cookbook-context">
<component id="http.client.HTTPConnection">
<init>
<arg><str>www.ninthtest.net</str></arg>
<arg><str>ninthtest.net</str></arg>
<arg><int>80</int>
<arg keyword="timeout"><int>5</int></arg>
</init>
Expand All @@ -67,7 +67,7 @@ so that they are unique::
<context id="cookbook-context">
<component id="ninthtest-net-conx" dotted-name="http.client.HTTPConnection">
<init>
<arg><str>www.ninthtest.net</str></arg>
<arg><str>ninthtest.net</str></arg>
<arg><int>80</int>
<arg keyword="timeout"><int>5</int></arg>
</init>
Expand Down Expand Up @@ -99,7 +99,7 @@ Using :class:`aglyph.binder.Binder` to describe a simple component in a
from aglyph.binder import Binder

binder = Binder("cookbook-binder")
binder.bind(HTTPConnection).init("www.ninthtest.net", 80, timeout=5)
binder.bind(HTTPConnection).init("ninthtest.net", 80, timeout=5)

To assemble and use the component:

Expand All @@ -118,7 +118,7 @@ dotted name, we must give them unique component IDs::
binder = Binder("cookbook-binder")
(binder.bind("ninthtest-net-conx", to=HTTPConnection).
init("www.ninthtest.net", 80, timeout=5))
init("ninthtest.net", 80, timeout=5))
(binder.bind("python-org-conx", to=HTTPConnection).
init("www.python.org", 80, timeout=5))

Expand Down Expand Up @@ -225,7 +225,7 @@ In the *"cookbook-context.xml"* document::
<context id="cookbook-context">
<component id="ninthtest-home-page" dotted-name="urllib.request.Request">
<init>
<arg><str>http://www.ninthtest.net/</str></arg>
<arg><str>http://ninthtest.net/</str></arg>
</init>
</component>
<component id="ninthtest-url" dotted-name="urllib.request.urlopen">
Expand Down Expand Up @@ -257,7 +257,7 @@ In a *bindings.py* module::
binder = Binder("cookbook-binder")
(binder.bind("ninthtest-home-page", to=Request).
init("http://www.ninthtest.net/"))
init("http://ninthtest.net/"))
(binder.bind("ninthtest-url", to=urlopen).
init(Reference("ninthtest-home-page"), timeout=5))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
""",
author="Matthew Zipay",
author_email="mattz@ninthtest.net",
url="http://www.ninthtest.net/aglyph-python-dependency-injection/",
url="http://ninthtest.net/aglyph-python-dependency-injection/",
download_url="http://sourceforge.net/projects/aglyph/files/aglyph/",
packages=["aglyph", "aglyph.compat", "aglyph.integration"],
test_suite="test",
Expand Down

0 comments on commit 0cf8c91

Please sign in to comment.