Пример #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()
Пример #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()))
Пример #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()))