OFS.DTMLMethod needs to send Events

Bug #1037847 reported by runyaga
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zope 2
Invalid
Undecided
Unassigned

Bug Description

OFS.DTMLMethod.DTMLMethod.manage_edit & manage_upload needs:

  notify(ObjectModifiedEvent(self))

OFS.DTMLMethod.addDTMLMethod needs:

     notify(ObjectCreatedEvent(self))

Tags: events
Revision history for this message
Hanno Schlichting (hannosch) wrote :

Looks like one could a custom "munge" method on DTMLMethod to trigger the modified event. That way PUT would be covered as well as the DTMLDocument subclass.

Changed in zope2:
status: New → Confirmed
Michael (imichaelp)
description: updated
Revision history for this message
Michael (imichaelp) wrote :

The original report states the following:
-----------

"Would be great if someone could verify this but:

  - If anyone is attempting to customize the CSS via ploneCustom.css
in the portal_skins/custom Folder; it probably will not work.

  - This means all documentation related to this is moot.

This can be fixed by https://bugs.launchpad.net/zope2/+bug/1037847

I believe the ResourceRegistries use the event machinery to be
notified if resource has changed. Since ploneCustom.css is a "DTML
Method" it currently does not send notify on Create/Modified. All
File objects notify so this is why other .css files work. "

============

So how one should actually "munge" that ?

 I am not a programmer, so should I just accept my fate of not being able to modify ploneCustom.css , or may be someone can
 give the exact instructions please ???
Thanks in advance !

Revision history for this message
Colin Watson (cjwatson) wrote :

The zope2 project on Launchpad has been archived at the request of the Zope developers (see https://answers.launchpad.net/launchpad/+question/683589 and https://answers.launchpad.net/launchpad/+question/685285). If this bug is still relevant, please refile it at https://github.com/zopefoundation/zope2.

Changed in zope2:
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.