cleanup rrd doc generation.
This commit is contained in:
@@ -79,7 +79,6 @@ def _match_query(query, attrs):
|
||||
|
||||
&, |, and ! are supported in the query. No syntax checking is performed,
|
||||
so malformed querys will not work correctly.
|
||||
|
||||
"""
|
||||
# cut off the parentheses
|
||||
inner = query[1:-1]
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user