[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Forms/Views/Browser - FormView.py:1.12.2.1
Jim Fulton
jim@zope.com
Thu, 3 Oct 2002 18:17:20 -0400
Update of /cvs-repository/Zope3/lib/python/Zope/App/Forms/Views/Browser
In directory cvs.zope.org:/tmp/cvs-serv27190/lib/python/Zope/App/Forms/Views/Browser
Modified Files:
Tag: ZopeDublinCore-branch
FormView.py
Log Message:
Checking in still-unfinished dublin core work on
ZopeDublinCore-branch.
To do:
- Make a number of existing tests work now that a lot of views
need to generate events. (Perhaps these will need to
be factored into adapters and views. Sigh.)
- Make object events able to compute locations for there
objects when an location hasn't been provided to the constructor.
- Add some UI for editing at least some meta data.
Handling of lists (e.g. subjects, creators) may need some more thought
as these will often want to come from standard system-provided lists.
=== Zope3/lib/python/Zope/App/Forms/Views/Browser/FormView.py 1.12 => 1.12.2.1 ===
--- Zope3/lib/python/Zope/App/Forms/Views/Browser/FormView.py:1.12 Sat Sep 7 12:18:48 2002
+++ Zope3/lib/python/Zope/App/Forms/Views/Browser/FormView.py Thu Oct 3 18:16:49 2002
@@ -23,6 +23,8 @@
from Zope.ComponentArchitecture import getView
from Zope.Proxy.ProxyIntrospection import removeAllProxies
from Zope.Publisher.Browser.BrowserView import BrowserView
+from Zope.Event.ObjectEvent import ObjectModifiedEvent
+from Zope.Proxy.ContextWrapper import ContextWrapper
from IForm import IForm
@@ -93,6 +95,8 @@
print e[0]
return self.form(self, errors=e)
else:
+ publishEvent(ObjectModifiedEvent(self.context))
+
# XXX This should do a redirect by looking up the object in
# the view registry
return self.form(self)