def handle_save_action(self, action, data): if form.applyChanges(self.context, self.form_fields, data, self.adapters): self.status = _(u"Changes saved") else: self.status = _(u"No changes.") adapter = getAdapter(self.context, ISteamer, self.context.mode_to_use) adapter.setTree() logger.info('Tagcloud "%s" has been updated (%s)' % (self.context.name, DateTime())) return self.redirectFromForm()
def UpdateTreeOnCloudChanges( obj, event ): adapter = getAdapter(obj, ISteamer,obj.mode_to_use) adapter.setTree() logger.info('Tagcloud "%s" has been updated (%s)' % (obj.name, DateTime()))
def UpdateTreeOnCloudChanges(obj, event): adapter = getAdapter(obj, ISteamer, obj.mode_to_use) adapter.setTree() logger.info('Tagcloud "%s" has been updated (%s)' % (obj.name, DateTime()))