[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container -
add.pt:1.12 adding.py:1.15
Garrett Smith
garrett at mojave-corp.com
Fri Aug 15 13:38:36 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv7416/src/zope/app/browser/container
Modified Files:
add.pt adding.py
Log Message:
Moved adding title from page template to view class. Adding subclasses can now set a 'title' attribute to change this value.
=== Zope3/src/zope/app/browser/container/add.pt 1.11 => 1.12 ===
--- Zope3/src/zope/app/browser/container/add.pt:1.11 Wed Aug 6 10:41:36 2003
+++ Zope3/src/zope/app/browser/container/add.pt Fri Aug 15 12:38:30 2003
@@ -5,7 +5,7 @@
<form action="action.html" method="post">
<table class="TypeListing" cellpadding="3">
- <caption i18n:translate="">Add Content</caption>
+ <caption tal:content="view/title">Add Content</caption>
<tbody tal:define="infos view/addingInfo">
=== Zope3/src/zope/app/browser/container/adding.py 1.14 => 1.15 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.14 Wed Aug 6 10:41:36 2003
+++ Zope3/src/zope/app/browser/container/adding.py Fri Aug 15 12:38:30 2003
@@ -41,6 +41,8 @@
implements(IAdding, IPublishTraverse)
+ title = _(u"Add Content")
+
def add(self, content):
"""See zope.app.interfaces.container.IAdding"""
container = zapi.getAdapter(self.context, IZopeContainer)
More information about the Zope3-Checkins
mailing list