~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to www/apps/groups/__init__.py

  • Committer: dcoles
  • Date: 2008-08-10 07:29:50 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:1007
Groups: group_nick can be None if not set. (Fixes a internal server error) 
Display as an empty string in the groups panel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
    # Get the groups this user is in, for this offering
91
91
    groups = db.get_groups_by_user(req.user.login, offeringid=offeringid)
92
92
    for groupid, groupnm, group_nick, is_member in groups:
 
93
        if group_nick is None:
 
94
            group_nick = "";
93
95
        req.write("<h2>%s (%s)</h2>\n" %
94
96
            (cgi.escape(group_nick), cgi.escape(groupnm)))
95
97
        if is_member: