[Zope3-checkins] CVS: Zope3/src/zope/app/security - principalregistry.py:1.4

Jim Fulton jim at zope.com
Tue Apr 6 13:55:39 EDT 2004


Update of /cvs-repository/Zope3/src/zope/app/security
In directory cvs.zope.org:/tmp/cvs-serv5409/src/zope/app/security

Modified Files:
	principalregistry.py 
Log Message:
Wrapped a too-long line.


=== Zope3/src/zope/app/security/principalregistry.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/security/principalregistry.py:1.3	Thu Apr  1 19:45:42 2004
+++ Zope3/src/zope/app/security/principalregistry.py	Tue Apr  6 13:55:38 2004
@@ -24,6 +24,7 @@
 from zope.app.security.interfaces import IUnauthenticatedPrincipal
 from zope.app.site.interfaces import ISimpleService
 from zope.app.container.contained import Contained, contained
+from warnings import warn
 
 class DuplicateLogin(Exception): pass
 class DuplicateId(Exception): pass
@@ -132,7 +133,8 @@
         return self.title
 
     def getDescription(self):
-        warn("Use principal.description instead of principal.getDescription().",
+        warn("Use principal.description instead of "
+             "principal.getDescription().",
              DeprecationWarning, 2)
         return self.description
 




More information about the Zope3-Checkins mailing list