dhermes / persistent-cal

Google Calendar's Missing Feature
Apache License 2.0
1 stars 0 forks source link

Avoid nested calls to DeadlineDecorator #17

Closed dhermes closed 10 years ago

dhermes commented 10 years ago

Error traces end up having WrappedMethod listed more times than App Engine logs are willing to show.

This is caused by an unknown/unspecified relationship between the way methods are wrapped with the DeadlineDecorator and the number of times the ExtendedHandler class constructor is called.

dhermes commented 10 years ago

This isn't fully fixed.

I now understand where it comes from though.

Every single time a new instance is created, __new__ is called. Hence every single time we re-bind the verbs to the class and continue to re-wrap the wrapped objects.