cleanup rrd doc generation.

This commit is contained in:
Todd Willey
2010-10-27 17:31:46 -04:00
parent a3bc8fbd2b
commit 803b042f4b
2 changed files with 1 additions and 3 deletions

View File

@@ -84,12 +84,11 @@ class AuthBase(object):
@classmethod
def safe_id(cls, obj):
"""Safe get object id
"""Safely get object id.
This method will return the id of the object if the object
is of this class, otherwise it will return the original object.
This allows methods to accept objects or ids as paramaters.
"""
if isinstance(obj, cls):
return obj.id