Modify ↓
Opened 12 years ago
Closed 9 years ago
#11637 closed enhancement (wontfix)
Resolver that uses username as email address
| Reported by: | Greg Warnes | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | AnnouncerPlugin |
| Severity: | normal | Keywords: | email, resolver |
| Cc: | Trac Release: |
Description
This simple patch adds an additional resolver for the case when the username is the user's email address:
Index: announcer/resolvers.py
===================================================================
--- announcer/resolvers.py (revision 13781)
+++ announcer/resolvers.py (working copy)
@@ -102,3 +102,10 @@
specified = self.setting.get_user_setting(req.session.sid)[1] or ''
data = dict(specified_xmpp = specified,)
return "prefs_announcer_xmppaddress.html", data
+
+class UsernameEmailResolver(Component):
+ """ This resolver uses the username as the email address """
+ implements(IAnnouncementAddressResolver)
+
+ def get_address_for_name(self, name, authenticated):
+ return name
Attachments (0)
Change History (2)
comment:1 Changed 9 years ago by
| Owner: | Steffen Hoffmann deleted |
|---|
comment:2 Changed 9 years ago by
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



Please upgrade to Trac 1.2, which has integrated the core of AnnouncerPlugin. Please raise the issue on the trac:MailingList if you encounter the issue with Trac 1.2.