Opened 17 years ago
Closed 17 years ago
#3504 closed (fixed)
Missing self in authentification doc
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
There is a typo in authentification doc, in part ow writing an authentification bakend:
class MyBackend:
def authenticate(username=None, password=None):
# Check the username/password and return a User.
class MyBackend:
def authenticate(token=None):
# Check the token and return a User.
There should be a self in arguments list, as they are class methods.
Attachments (1)
Change History (5)
comment:1 Changed 17 years ago by
Triage Stage: | Unreviewed → Accepted |
---|
Changed 17 years ago by
Attachment: | 3504-authentication.patch added |
---|
comment:2 Changed 17 years ago by
Has patch: | set |
---|
comment:3 Changed 17 years ago by
Triage Stage: | Accepted → Ready for checkin |
---|
Looks good, patch is clean.
comment:4 Changed 17 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
Added a patch to fix the documentation errors.