Ejemplo n.º 1
0
 def _process(self):
     for subcategory in self.subcategories:
         move_category(subcategory, self.target_category)
     flash(
         ngettext('{0} category moved to "{1}".',
                  '{0} categories moved to "{1}".',
                  len(self.subcategories)).format(
                      len(self.subcategories), self.target_category.title),
         'success')
     return jsonify_data(flash=False)
Ejemplo n.º 2
0
 def _process(self):
     for subcategory in self.subcategories:
         move_category(subcategory, self.target_category)
     flash(ngettext('{0} category moved to "{1}".', '{0} categories moved to "{1}".', len(self.subcategories))
           .format(len(self.subcategories), self.target_category.title), 'success')
     return jsonify_data(flash=False)
Ejemplo n.º 3
0
 def _process(self):
     move_category(self.category, self.target_category)
     flash(
         _('Category "{}" moved to "{}".').format(
             self.category.title, self.target_category.title), 'success')
     return jsonify_data(flash=False)
Ejemplo n.º 4
0
 def _process(self):
     move_category(self.category, self.target_category)
     flash(_('Category "{}" moved to "{}".').format(self.category.title, self.target_category.title), 'success')
     return jsonify_data(flash=False)