[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/apidoc/ Show field
titles in the API docs.
Shane Hathaway
shane at zope.com
Tue Nov 16 14:02:17 EST 2004
Log message for revision 28459:
Show field titles in the API docs.
Changed:
U Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
U Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt
U Zope3/trunk/src/zope/app/apidoc/servicemodule/index.pt
U Zope3/trunk/src/zope/app/apidoc/utilitymodule/index.pt
U Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt
-=-
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py 2004-11-16 16:58:01 UTC (rev 28458)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/browser.py 2004-11-16 19:02:17 UTC (rev 28459)
@@ -383,7 +383,8 @@
('name', 'ITextLine')]),
('name', 'title'),
('required', True),
- ('required_css', 'required')],
+ ('required_css', 'required'),
+ ('title', u'')],
[('class',
[('name', 'Text'),
('path', 'zope/schema/_bootstrapfields/Text')]),
@@ -393,7 +394,8 @@
[('id', 'zope.schema.interfaces.IText'), ('name', 'IText')]),
('name', 'description'),
('required', False),
- ('required_css', 'optional')]]
+ ('required_css', 'optional'),
+ ('title', u'')]]
"""
# The `Interface` class have no security declarations, so that we are
# not able to access any API methods on proxied objects. If we only
@@ -410,6 +412,7 @@
'required': field.required,
'required_css': _getRequiredCSS(field),
'default': repr(field.default),
+ 'title': field.title,
'description': renderText(
field.description or '',
removeAllProxies(self.context).__module__)}
Modified: Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt 2004-11-16 16:58:01 UTC (rev 28458)
+++ Zope3/trunk/src/zope/app/apidoc/ifacemodule/index.pt 2004-11-16 19:02:17 UTC (rev 28459)
@@ -71,6 +71,7 @@
<code tal:content="field/class/name">Field</code></a>
(<span i18n:translate="">default</span> =
<code tal:content="field/default" />)<br />
+ <div tal:content="structure field/title" class="field-title">title</div>
<span tal:content="structure field/description">field desc</span>
</li>
Modified: Zope3/trunk/src/zope/app/apidoc/servicemodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/servicemodule/index.pt 2004-11-16 16:58:01 UTC (rev 28458)
+++ Zope3/trunk/src/zope/app/apidoc/servicemodule/index.pt 2004-11-16 19:02:17 UTC (rev 28459)
@@ -49,6 +49,7 @@
<code tal:content="field/iface/name">IField</code></a>
(<span i18n:translate="">default</span> =
<code tal:content="field/default" />)<br />
+ <div tal:content="structure field/title" class="field-title">title</div>
<span tal:content="field/description">field desc</span>
</li>
Modified: Zope3/trunk/src/zope/app/apidoc/utilitymodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/utilitymodule/index.pt 2004-11-16 16:58:01 UTC (rev 28458)
+++ Zope3/trunk/src/zope/app/apidoc/utilitymodule/index.pt 2004-11-16 19:02:17 UTC (rev 28459)
@@ -55,6 +55,7 @@
<code tal:content="field/iface/name">IField</code></a>
(<span i18n:translate="">default</span> =
<code tal:content="field/default" />)<br />
+ <div tal:content="structure field/title" class="field-title">title</div>
<span tal:content="field/description">field desc</span>
</li>
Modified: Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt
===================================================================
--- Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt 2004-11-16 16:58:01 UTC (rev 28458)
+++ Zope3/trunk/src/zope/app/apidoc/zcmlmodule/index.pt 2004-11-16 19:02:17 UTC (rev 28459)
@@ -68,6 +68,7 @@
<code tal:content="field/class/name">Field</code></a>
(<span i18n:translate="">default</span> =
<code tal:content="field/default" />)<br />
+ <div tal:content="structure field/title" class="field-title">title</div>
<span tal:content="structure field/description">field desc</span>
</li>
@@ -135,7 +136,8 @@
<code tal:content="field/iface/name">IField</code></a>
(<span i18n:translate="">default</span> =
<code tal:content="field/default" />)<br />
- <span tal:content="structure field/description">field desc</span>
+ <div tal:content="structure field/title" class="field-title">title</div>
+ <span tal:content="structure field/description">field desc</span>
</li>
</ul>
More information about the Zope3-Checkins
mailing list