[open-ils-commits] r1123 - servres/trunk/conifer/templates (gfawcett)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Dec 27 19:40:56 EST 2010
Author: gfawcett
Date: 2010-12-27 19:40:55 -0500 (Mon, 27 Dec 2010)
New Revision: 1123
Modified:
servres/trunk/conifer/templates/master.xhtml
Log:
call 'maybe_refresh_external_memberships' on every page load.
This is a typically fast call. Usually, it just reads the user profile
to check a timestamp. At most once per hour, it will make an external
call to see if the user's external-group memberships have changed.
Modified: servres/trunk/conifer/templates/master.xhtml
===================================================================
--- servres/trunk/conifer/templates/master.xhtml 2010-12-28 00:40:52 UTC (rev 1122)
+++ servres/trunk/conifer/templates/master.xhtml 2010-12-28 00:40:55 UTC (rev 1123)
@@ -52,9 +52,10 @@
</form>
</div>
<div id="welcome" py:if="user.is_authenticated()">
- <strong style="padding-right: 18px;">Welcome, ${user.first_name or user.username}!</strong>
- <a href="${ROOT}${settings.LOGOUT_URL}">Log Out</a>
- • <a href="${ROOT}/prefs/">Preferences</a>
+ <?python user.maybe_refresh_external_memberships() ?>
+ <strong style="padding-right: 18px;">Welcome, ${user.first_name or user.username}!</strong>
+ <a href="${ROOT}${settings.LOGOUT_URL}">Log Out</a>
+ • <a href="${ROOT}/prefs/">Preferences</a>
</div>
<div id="welcome" py:if="not user.is_authenticated()">
<strong style="padding-right: 18px;">Welcome!</strong>
More information about the open-ils-commits
mailing list