After a plugin has been moved inside the structure editor, no hook method 
is called
to inform the plugin that is has been moved inside the tree. This would be 
very
useful in some situations, for instance to recompute the grid widths, etc.

Implementing this is a no-brainer, just one additional line in 
class CMSPlugin(with_metaclass(PluginModelBase, MP_Node)):
    ...
    def move(self):
        ...
        self.get_bound_plugin().after_moved()
        ...

and an empty stub method after_moved().

Shall I implement this? Any objections about the name after_moved?

– Jacob

-- 
Message URL: 
https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id
Unsubscribe: send a message to 
[email protected]
--- 
You received this message because you are subscribed to the Google Groups 
"django CMS developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/django-cms-developers/2efe8d3b-4c29-4a6b-b098-70735ad7f37en%40googlegroups.com.

Reply via email to