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

Philipp von Weitershausen philipp at weitershausen.de
Wed Oct 15 05:22:02 EDT 2008


Wichert Akkerman wrote:
> Log message for revision 92203:
>   Fix a bad import and parameter order

It seems a test would've caught this... where is it?


> 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