[prev in list] [next in list] [prev in thread] [next in thread] 

List:       zope-cvs
Subject:    [Zope-Checkins] SVN: Zope/trunk/s Use zope.deferredimport instead
From:       Matthew Wilkes <matthew () matthewwilkes ! co ! uk>
Date:       2010-06-29 16:27:57
Message-ID: 20100629162757.5FB1A94191 () cvs ! zope ! org
[Download RAW message or body]

Log message for revision 113981:
  Use zope.deferredimport instead of zope.deprecated for deprecations.  Yay.

Changed:
  U   Zope/trunk/setup.py
  U   Zope/trunk/src/Products/MailHost/mailer.py

-=-
Modified: Zope/trunk/setup.py
===================================================================
--- Zope/trunk/setup.py	2010-06-29 16:05:17 UTC (rev 113980)
+++ Zope/trunk/setup.py	2010-06-29 16:27:57 UTC (rev 113981)
@@ -56,7 +56,6 @@
       'zope.browsermenu',
       'zope.browserpage',
       'zope.browserresource',
-      'zope.deprecation',
       'zope.component',
       'zope.configuration',
       'zope.container',

Modified: Zope/trunk/src/Products/MailHost/mailer.py
===================================================================
--- Zope/trunk/src/Products/MailHost/mailer.py	2010-06-29 16:05:17 UTC (rev 113980)
+++ Zope/trunk/src/Products/MailHost/mailer.py	2010-06-29 16:27:57 UTC (rev 113981)
@@ -1,2 +1,7 @@
-import zope.deprecation
-zope.deprecation.moved('zope.sendmail.mailer', 'Zope 2.14')
\ No newline at end of file
+import zope.deferredimport
+
+zope.deferredimport.deprecatedFrom(
+    "Import from zope.sendmail instead",
+    'zope.sendmail.mailer',
+    'SMTPMailer',
+    )

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
https://mail.zope.org/mailman/listinfo/zope-checkins
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic