Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

Commit

Permalink
Docs: Fixed typo and made punctuation more consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
graup committed Aug 19, 2014
1 parent 31e3ab5 commit dab2fc8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions flask_security/datastore.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def _prepare_create_user_args(self, **kwargs):
return kwargs

def get_user(self, id_or_email):
"""Returns a user matching the specified ID or email address"""
"""Returns a user matching the specified ID or email address."""
raise NotImplementedError

def find_user(self, *args, **kwargs):
Expand All @@ -97,7 +97,7 @@ def find_role(self, *args, **kwargs):
raise NotImplementedError

def add_role_to_user(self, user, role):
"""Adds a role tp a user
"""Adds a role to a user.
:param user: The user to manipulate
:param role: The role to add to the user
Expand All @@ -110,7 +110,7 @@ def add_role_to_user(self, user, role):
return False

def remove_role_from_user(self, user, role):
"""Removes a role from a user
"""Removes a role from a user.
:param user: The user to manipulate
:param role: The role to remove from the user
Expand Down Expand Up @@ -155,7 +155,7 @@ def create_role(self, **kwargs):

def find_or_create_role(self, name, **kwargs):
"""Returns a role matching the given name or creates it with any
additionally provided parameters
additionally provided parameters.
"""
kwargs["name"] = name
return self.find_role(name) or self.create_role(**kwargs)
Expand All @@ -167,7 +167,7 @@ def create_user(self, **kwargs):
return self.put(user)

def delete_user(self, user):
"""Delete the specified user
"""Deletes the specified user.
:param user: The user to delete
"""
Expand Down Expand Up @@ -300,7 +300,7 @@ def create_user(self, **kwargs):
return user

def add_role_to_user(self, user, role):
"""Adds a role tp a user
"""Adds a role to a user.
:param user: The user to manipulate
:param role: The role to add to the user
Expand All @@ -315,7 +315,7 @@ def add_role_to_user(self, user, role):
return True

def remove_role_from_user(self, user, role):
"""Removes a role from a user
"""Removes a role from a user.
:param user: The user to manipulate
:param role: The role to remove from the user
Expand Down

0 comments on commit dab2fc8

Please sign in to comment.