[Zope3-checkins] CVS: zopeproducts/demo/messageboard/step11 -
fs.py:1.2 xmlrpc.py:1.2
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Dec 15 11:02:01 EST 2003
Update of /cvs-repository/zopeproducts/demo/messageboard/step11
In directory cvs.zope.org:/tmp/cvs-serv32347
Modified Files:
fs.py xmlrpc.py
Log Message:
Fixed XML-RPC recipe (step 11).
=== zopeproducts/demo/messageboard/step11/fs.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step11/fs.py:1.1 Fri Jul 18 07:55:34 2003
+++ zopeproducts/demo/messageboard/step11/fs.py Mon Dec 15 11:01:30 2003
@@ -21,7 +21,6 @@
from zope.app.interfaces.index.text import ISearchableText
from zope.app.content.folder import ReadDirectory as ReadDirectoryBase
from zope.app.content.file import File
-from zope.app.context import ContextWrapper
from interfaces import IVirtualContentsFile, IPlainText
from message import Message
=== zopeproducts/demo/messageboard/step11/xmlrpc.py 1.1 => 1.2 ===
--- zopeproducts/demo/messageboard/step11/xmlrpc.py:1.1 Fri Jul 18 07:55:34 2003
+++ zopeproducts/demo/messageboard/step11/xmlrpc.py Mon Dec 15 11:01:30 2003
@@ -35,7 +35,8 @@
msg.title = title
msg.body = body
publish(self.context, ObjectCreatedEvent(msg))
- return self.context.setObject(name, msg)
+ self.context[name] = msg
+ return name
def deleteMessage(self, name):
"""Delete a message. Return True, if successful."""
More information about the Zope3-Checkins
mailing list