Modify ↓
#80 closed defect (fixed)
IAccountChangeListener method name incorrect
Reported by: | Alec Thomas | Owned by: | anonymous |
---|---|---|---|
Priority: | normal | Component: | AccountManagerPlugin |
Severity: | minor | Keywords: | |
Cc: | Trac Release: |
Description
So I finally got around to adding the new user hooks into TracHacks and came across this minor bug. Fix below.
-
acct_mgr/api.py
50 50 """An interface for receiving account change events. 51 51 """ 52 52 53 def user_ added(self, user, password):53 def user_created(self, user, password): 54 54 """New user 55 55 """
After this change, it all worked beautifully. When they register, new users automatically get a basic user page created with the user tag. It's a beautiful thing.
Attachments (0)
Change History (4)
comment:1 Changed 19 years ago by
Owner: | changed from Matt Good to anonymous |
---|---|
Status: | new → assigned |
comment:2 Changed 19 years ago by
Yes, this is exactly what happened...I copy and pasted the listener methods and was surprised to see it not work.
comment:4 Changed 19 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
The methods defined in the interface are really just for documentation, so as long as your implementation uses the right name then it will work. However, that probably would confuse some people. I'll update this soon.