[Zope3-checkins] CVS: Zope3/src/zope/app/browser/container -
adding.py:1.19
Sidnei da Silva
sidnei at x3ng.com.br
Wed Sep 3 15:33:56 EDT 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/container
In directory cvs.zope.org:/tmp/cvs-serv21805/zope/app/browser/container
Modified Files:
adding.py
Log Message:
Get a unproxied tuple for adding below. Also, some whitespace cleaning.
=== Zope3/src/zope/app/browser/container/adding.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/browser/container/adding.py:1.18 Sat Aug 16 10:08:06 2003
+++ Zope3/src/zope/app/browser/container/adding.py Wed Sep 3 14:33:55 2003
@@ -112,7 +112,7 @@
if not id:
raise UserError(_(u"You must specify an id"))
self.contentName = id
-
+
content = zapi.createObject(self, type_name)
publish(self.context, ObjectCreatedEvent(content))
@@ -120,7 +120,7 @@
self.request.response.redirect(self.nextURL())
action = zapi.ContextMethod(action)
-
+
def namesAccepted(self):
return not IContainerNamesContainer.isImplementedBy(self.context)
More information about the Zope3-Checkins
mailing list