Hello all,

following yesterday's discussion about PEAK and RuleDispatch et. al.
here is a new subject to take into account:

I have updated my PyProtocols version to rev 2305 and now TurboGears
spits Deprecation warnings at me:

/home/faide/progs/turbogears-1.0/turbogears/decorator.py:75:
DeprecationWarning: protocols.advice.add_assignment_advisor is
deprecated

Is is possible to remove these deprecation warnings by applying the
provided patch but it is important to note that this patch adds an
important dependency to TG: PEAK.

But at the same time this seems inevitable because PyProtocols does
not provide the necessary functions anymore. For the moment they are
_just_ deprecated but they will surely be removed in future versions.

We have the same problem with ToscaWidgets and I already sent a patch
to Alberto on the tw list.

We should now choose either to stay with an old PyProtocols version
and make sure it works for everyone in every situation (platforms,
python version...) or to upgrade to the latest PyProtocols and add
PEAK as a dependency of TG.

Any thoughs ?

Regards,
Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

--- turbogears/decorator.py	2007-04-22 12:11:41.000000000 +0200
+++ turbogears/decorator.py.new	2007-04-22 12:11:33.000000000 +0200
@@ -2,8 +2,7 @@
 from copy import copy
 from inspect import getargspec, formatargspec
 
-from protocols.advice import add_assignment_advisor
-
+from peak.util.decorators import decorate_assignment
 
 # Inspired by Michele Simionato's decorator library
 # http://www.phyast.pitt.edu/~micheles/python/documentation.html
@@ -72,7 +71,7 @@
     """
     def callback(frame, k, v, old_locals):
         return decorate(v, entangler(v), make_weak_signature(v))
-    return add_assignment_advisor(callback, 3)
+    return decorate_assignment(callback, 3)
 
 def simple_decorator(caller, signature=None):
     """Decorate function with caller."""

Reply via email to