Browse Source

[beeswax] Convert some error notifications to info level

Romain Rigaux 13 years ago
parent
commit
a29509ec59
1 changed files with 3 additions and 3 deletions
  1. 3 3
      apps/beeswax/src/beeswax/views.py

+ 3 - 3
apps/beeswax/src/beeswax/views.py

@@ -543,7 +543,7 @@ def save_design(request, form, type, design, explicit_save):
   LOG.info('Saved %sdesign "%s" (id %s) for %s' %
   LOG.info('Saved %sdesign "%s" (id %s) for %s' %
            (explicit_save and '' or 'auto ', design.name, design.id, design.owner))
            (explicit_save and '' or 'auto ', design.name, design.id, design.owner))
   if explicit_save:
   if explicit_save:
-    messages.error(request, _('Saved design "%(name)s"') % {'name': design.name})
+    messages.info(request, _('Saved design "%(name)s"') % {'name': design.name})
   # Design may now have a new/different id
   # Design may now have a new/different id
   return design
   return design
 
 
@@ -677,7 +677,7 @@ def clone_design(request, design_id):
   copy.name = design.name + ' (copy)'
   copy.name = design.name + ' (copy)'
   copy.owner = request.user
   copy.owner = request.user
   copy.save()
   copy.save()
-  messages.error(request, _('Copied design: %(name)s') % {'name': design.name})
+  messages.info(request, _('Copied design: %(name)s') % {'name': design.name})
   return format_preserving_redirect(
   return format_preserving_redirect(
       request, urlresolvers.reverse(execute_query, kwargs={'design_id': copy.id}))
       request, urlresolvers.reverse(execute_query, kwargs={'design_id': copy.id}))
 
 
@@ -1080,7 +1080,7 @@ def _save_results_ctas(request, query_history, target_table, result_meta):
     table_loc = request.fs.urlsplit(table_obj.sd.location)[2]
     table_loc = request.fs.urlsplit(table_obj.sd.location)[2]
     request.fs.rename_star(result_meta.table_dir, table_loc)
     request.fs.rename_star(result_meta.table_dir, table_loc)
     LOG.debug("Moved results from %s to %s" % (result_meta.table_dir, table_loc))
     LOG.debug("Moved results from %s to %s" % (result_meta.table_dir, table_loc))
-    messages.error(request, _('Saved query results as new table %(table)s') % {'table': target_table})
+    messages.info(request, _('Saved query results as new table %(table)s') % {'table': target_table})
     query_history.save_state(models.QueryHistory.STATE.expired)
     query_history.save_state(models.QueryHistory.STATE.expired)
   except Exception, ex:
   except Exception, ex:
     LOG.error('Error moving data into storage of table %s. Will drop table.' % (target_table,))
     LOG.error('Error moving data into storage of table %s. Will drop table.' % (target_table,))