Sounds like a good idea! In terms of naming, I think after_move or move_after sounds a bit better, is there any example of similar functionality that we can align the naming with?
On Thu, 24 Sep 2020 at 16:35, Jacob Rief <jacob.r...@gmail.com> wrote: > 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 > django-cms-developers+unsubscr...@googlegroups.com > --- > 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 django-cms-developers+unsubscr...@googlegroups.com. > To view this discussion on the web, visit > https://groups.google.com/d/msgid/django-cms-developers/2efe8d3b-4c29-4a6b-b098-70735ad7f37en%40googlegroups.com > <https://groups.google.com/d/msgid/django-cms-developers/2efe8d3b-4c29-4a6b-b098-70735ad7f37en%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- *Petr Klus* p...@bonsaitiger.com +44 (0)203 935 6842 <00442039356842> +44 (0)203 935 6799 <004402039356799> www.bonsaitiger.com *Bonsai Tiger (UK)* 24/25 The Shard 32 London Bridge Street London SE1 9SG United Kingdom P: +44 (0)203 935 6799 <004402039356799> E: lon...@bonsaitiger.com "Bonsai Tiger" is a trading name of CNK Digital Solutions Ltd. A Limited Company registered in England and Wales | Company Number 7686919 Registered Address: Crown House, 27 Old Gloucester Street, London, WC1N 3AX -- Message URL: https://groups.google.com/d/msg/django-cms-developers/topic-id/message-id Unsubscribe: send a message to django-cms-developers+unsubscr...@googlegroups.com --- 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 django-cms-developers+unsubscr...@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/django-cms-developers/CA%2BVn_4DV2k2k8PmK4ivsL%2BiuSzcMTq0OdRi0ZPZ%2BsBVcFNh6FQ%40mail.gmail.com.