Commits

Jun Omae committed 43e33a3 Draft

Fixed crash in usermanager plugin if `[trac] ignore_auth_case` is `true`, applied http://trac-hacks.org/changeset/11640.

See also http://trac-hacks.org/ticket/5284#comment:5.

Comments (0)

Files changed (1)

usermanager/tracusermanager/templates/admin_um.html

             </div>
 
         <div id="um_active_users">
-            <table class="listing" cellpading="0" cellspacing="0" py:for="is_trac_managed, users_iter in groupby([{'is_trac_managed_hack':False}]+sorted(user_manager.users,lambda x,y:account_manager.has_user(x.username)-account_manager.has_user(y.username))+[{'is_trac_managed_hack':not isinstance(account_manager, dict)}], lambda nn: nn.is_trac_managed_hack is True or account_manager.has_user(nn.username) )" py:with="users=list(filter(lambda x:not isinstance(x, dict),users_iter))" py:if="is_trac_managed">    
+            <table class="listing" cellpading="0" cellspacing="0" py:for="is_trac_managed, users_iter in groupby([{'is_trac_managed_hack':False}]+sorted(user_manager.users,lambda x,y:account_manager.has_user(x.username)-account_manager.has_user(y.username))+[{'is_trac_managed_hack':not isinstance(account_manager, dict)}], lambda nn: nn.is_trac_managed_hack is True or nn.username and account_manager.has_user(nn.username) )" py:with="users=list(filter(lambda x:not isinstance(x, dict),users_iter))" py:if="is_trac_managed">
                 <thead>
                     <tr>
                         <th colspan="${len(user_manager.cells)+3}" >${is_trac_managed and _('ユーザ') or _('Users')}</th>