summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIsis Lovecruft <isis@torproject.org>2013-04-15 19:54:14 +0000
committerIsis Lovecruft <isis@torproject.org>2013-04-15 19:54:14 +0000
commit5048af81ffea65f9abc8d9aae451a58f97e015fd (patch)
tree4ae3b6791e47b75c0d013352e681a532eb2a3e6a /src
parent6e97e1f509025569979153542aa2362bb7c2f413 (diff)
Update ConnectedCouchDB.queryByEmailOrAlias() docstring.
Diffstat (limited to 'src')
-rw-r--r--src/leap/mx/couchdb.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/leap/mx/couchdb.py b/src/leap/mx/couchdb.py
index 9b69091..fb4d8f6 100644
--- a/src/leap/mx/couchdb.py
+++ b/src/leap/mx/couchdb.py
@@ -64,12 +64,11 @@ class ConnectedCouchDB(client.CouchDB):
def queryByEmailOrAlias(self, alias, dbDoc="User",
view="by_email_or_alias"):
- """
- Check to see if a particular email or alias exists.
+ """Check to see if a particular email or alias exists.
- @param alias: A string representing the email or alias to check.
- @param dbDoc: The CouchDB document to open.
- @param view: The view of the CouchDB document to use.
+ :param str alias: A string representing the email or alias to check.
+ :param str dbDoc: The CouchDB document to open.
+ :param str view: The view of the CouchDB document to use.
"""
assert isinstance(alias, str), "Email or alias queries must be string"