2691: Create api documentation with sphinx

svn: r12704
This commit is contained in:
Benny Malengier
2009-06-24 21:56:07 +00:00
parent 1042bb3fe2
commit a52bc62be9
68 changed files with 2203 additions and 1161 deletions

View File

@ -282,10 +282,10 @@ def get_unicode_path(path):
"""
Return the Unicode version of a path string.
@type path: str
@param path: The path to be converted to Unicode
@rtype: unicode
@return: The Unicode version of path.
:type path: str
:param path: The path to be converted to Unicode
:rtype: unicode
:returns: The Unicode version of path.
"""
if os.sys.platform == "win32":
return unicode(path)
@ -380,9 +380,9 @@ def probably_alive(person, db, current_date=None, limit=0):
reason to believe that someone is dead then we assume they must
be alive.
current_date - a date object that is not estimated or modified
:param current_date: a date object that is not estimated or modified
(defaults to today)
limit - number of years to check beyond death_date
:param limit: number of years to check beyond death_date
"""
if current_date is None:
current_date = gen.lib.Date()