Modify

Opened 9 years ago

Closed 8 years ago

#80 closed defect (fixed)

IAccountChangeListener method name incorrect

Reported by: athomas 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

     
    5050    """An interface for receiving account change events. 
    5151    """ 
    5252 
    53     def user_added(self, user, password): 
     53    def user_created(self, user, password): 
    5454        """New user 
    5555        """ 

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 9 years ago by mgood

  • Owner changed from mgood to anonymous
  • Status changed from new to assigned

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.

comment:2 Changed 9 years ago by athomas

Yes, this is exactly what happened...I copy and pasted the listener methods and was surprised to see it not work.

comment:3 Changed 9 years ago by athomas

  • milestone 0.9.1 deleted

Milestone 0.9.1 deleted

comment:4 Changed 8 years ago by mgood

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [706]) fix the method name of user_created in IAccountChangeListener (fixes #80)

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.