[Checkins] SVN: plone.postpublicationhook/trunk/plone/postpublicationhook/hook.py Fix a bad import and parameter order

Wichert Akkerman wichert at wiggy.net
Wed Oct 15 04:05:35 EDT 2008


Log message for revision 92203:
  Fix a bad import and parameter order

Changed:
  U   plone.postpublicationhook/trunk/plone/postpublicationhook/hook.py

-=-
Modified: plone.postpublicationhook/trunk/plone/postpublicationhook/hook.py
===================================================================
--- plone.postpublicationhook/trunk/plone/postpublicationhook/hook.py	2008-10-15 06:58:00 UTC (rev 92202)
+++ plone.postpublicationhook/trunk/plone/postpublicationhook/hook.py	2008-10-15 08:05:34 UTC (rev 92203)
@@ -12,7 +12,7 @@
 from zExceptions import Redirect
 
 import zope.event
-from plone.postpublicationhook import AfterPublicationEvent
+from plone.postpublicationhook.event import AfterPublicationEvent
 
 
 def publish(request, module_name, after_list, debug=0,
@@ -77,7 +77,7 @@
             response.setBody(result)
 
         # This is the only change from the canonical publish method
-        zope.event.notify(AfterPublicationEvent(request, object))
+        zope.event.notify(AfterPublicationEvent(object, request))
 
         if transactions_manager:
             transactions_manager.commit()



More information about the Checkins mailing list