Esempio n. 1
0
 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 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()
Esempio n. 3
0
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()))
Esempio n. 4
0
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()))