allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [allura] branch master updated: Use correct vars in flash error message, when trying to send too many messages
Date Fri, 15 Mar 2019 19:42:50 GMT
This is an automated email from the ASF dual-hosted git repository.

kentontaylor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new a25329c  Use correct vars in flash error message, when trying to send too many messages
a25329c is described below

commit a25329caed9e6d136a1004c33372e0632a16e352
Author: Dave Brondsema <dave@brondsema.net>
AuthorDate: Fri Mar 15 15:18:42 2019 -0400

    Use correct vars in flash error message, when trying to send too many messages
---
 Allura/allura/ext/user_profile/user_main.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Allura/allura/ext/user_profile/user_main.py b/Allura/allura/ext/user_profile/user_main.py
index 3bd782e..1189174 100644
--- a/Allura/allura/ext/user_profile/user_main.py
+++ b/Allura/allura/ext/user_profile/user_main.py
@@ -22,7 +22,7 @@ from datetime import datetime
 
 from formencode import validators
 from pylons import request
-from pylons import tmpl_context as c
+from pylons import tmpl_context as c, app_globals as g
 from pytz import timezone
 from tg import expose, redirect, validate, flash
 from webob import exc
@@ -196,8 +196,8 @@ class UserProfileController(BaseController, FeedController):
             flash("Message sent.")
         else:
             flash("You can't send more than %i messages per %i seconds" % (
-                c.user.user_message_max_messages,
-                c.user.user_message_time_interval), 'error')
+                g.user_message_max_messages,
+                g.user_message_time_interval), 'error')
         return redirect(c.project.user_project_of.url())
 
 


Mime
View raw message