Browse Source

Looks like I missed a few lines

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
fd80e98148
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      earwigbot/wiki/user.py

+ 7
- 7
earwigbot/wiki/user.py View File

@@ -196,7 +196,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_blockinfo", force)
return self._get_attribute("_blockinfo")


@property @property
def groups(self): def groups(self):
@@ -205,7 +205,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_groups", force)
return self._get_attribute("_groups")


@property @property
def rights(self): def rights(self):
@@ -214,7 +214,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_rights", force)
return self._get_attribute("_rights")


@property @property
def editcount(self): def editcount(self):
@@ -223,7 +223,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_editcount", force)
return self._get_attribute("_editcount")


@property @property
def registration(self): def registration(self):
@@ -232,7 +232,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_registration", force)
return self._get_attribute("_registration")


@property @property
def emailable(self): def emailable(self):
@@ -241,7 +241,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_emailable", force)
return self._get_attribute("_emailable")


@property @property
def gender(self): def gender(self):
@@ -253,7 +253,7 @@ class User(object):
Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user Raises :py:exc:`~earwigbot.exceptions.UserNotFoundError` if the user
does not exist. Makes an API query only if we haven't made one already. does not exist. Makes an API query only if we haven't made one already.
""" """
return self._get_attribute("_gender", force)
return self._get_attribute("_gender")


def reload(self): def reload(self):
"""Forcibly reload the user's attributes. """Forcibly reload the user's attributes.


Loading…
Cancel
Save