From 65a0dce1fe2feffb0844fe4192f66dcf25a0f249 Mon Sep 17 00:00:00 2001 From: tobes Date: Thu, 2 Aug 2012 00:03:19 +0100 Subject: [PATCH] some documentation --- ckan/lib/maintain.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckan/lib/maintain.py b/ckan/lib/maintain.py index 0b975d34fb6..7dc49ca62c5 100644 --- a/ckan/lib/maintain.py +++ b/ckan/lib/maintain.py @@ -65,10 +65,13 @@ def deprecate_context_item(item_name, message=''): ''' class Fake(object): + ''' This is a fake object that calls the methods of the object + contained. ''' def __init__(self, obj): self._obj = obj def __getattribute__(self,name): obj = object.__getattribute__(self, '_obj') + # hack to get the actual object when needed if name == '_obj': return obj return getattr(obj, name)