Skip to content

Commit

Permalink
Merge pull request pallets-eco#303 from graup/patch-1
Browse files Browse the repository at this point in the history
Docs: Fixed typo and made punctuation more consistent.
  • Loading branch information
Matt Wright committed Sep 17, 2014
2 parents f83cd56 + dab2fc8 commit 37908ca
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 @@ -156,7 +156,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 @@ -168,7 +168,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 @@ -301,7 +301,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 @@ -316,7 +316,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 37908ca

Please sign in to comment.