[Checkins] SVN: z3ext.cacheheaders/trunk/ Tring to get object instead of MethodType object for AfterCallEvent
Nikolay Kim
fafhrd91 at gmail.com
Fri Aug 28 06:45:57 EDT 2009
Log message for revision 103331:
Tring to get object instead of MethodType object for AfterCallEvent
Changed:
U z3ext.cacheheaders/trunk/CHANGES.txt
U z3ext.cacheheaders/trunk/setup.py
U z3ext.cacheheaders/trunk/src/z3ext/cacheheaders/publication.py
-=-
Modified: z3ext.cacheheaders/trunk/CHANGES.txt
===================================================================
--- z3ext.cacheheaders/trunk/CHANGES.txt 2009-08-28 10:43:06 UTC (rev 103330)
+++ z3ext.cacheheaders/trunk/CHANGES.txt 2009-08-28 10:45:56 UTC (rev 103331)
@@ -2,10 +2,12 @@
CHANGES
=======
-1.1.1 (Unreleased)
+1.1.1 (2009-08-28)
------------------
+- Tring to get object instead of MethodType object for AfterCallEvent
+
1.1.0 (2009-08-11)
------------------
Modified: z3ext.cacheheaders/trunk/setup.py
===================================================================
--- z3ext.cacheheaders/trunk/setup.py 2009-08-28 10:43:06 UTC (rev 103330)
+++ z3ext.cacheheaders/trunk/setup.py 2009-08-28 10:45:56 UTC (rev 103331)
@@ -21,8 +21,8 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
+version = '1.1.1'
-version = '1.1.1dev'
setup(name='z3ext.cacheheaders',
version=version,
Modified: z3ext.cacheheaders/trunk/src/z3ext/cacheheaders/publication.py
===================================================================
--- z3ext.cacheheaders/trunk/src/z3ext/cacheheaders/publication.py 2009-08-28 10:43:06 UTC (rev 103330)
+++ z3ext.cacheheaders/trunk/src/z3ext/cacheheaders/publication.py 2009-08-28 10:45:56 UTC (rev 103331)
@@ -85,7 +85,11 @@
def afterCall(self, request, ob):
- notify(AfterCallEvent(ob, request))
+ orig = removeAllProxies(ob)
+ if type(orig) is MethodType:
+ notify(AfterCallEvent(orig.im_self, request))
+ else:
+ notify(AfterCallEvent(orig, request))
txn = transaction.get()
if txn.isDoomed():
More information about the checkins
mailing list