[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/security/ Removed
deprecated methods. They have been deprecated for a long time now.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Fri Jul 9 11:44:40 EDT 2004
Log message for revision 26291:
Removed deprecated methods. They have been deprecated for a long time now.
-=-
Modified: Zope3/trunk/src/zope/app/security/interfaces/__init__.py
===================================================================
--- Zope3/trunk/src/zope/app/security/interfaces/__init__.py 2004-07-09 15:44:38 UTC (rev 26290)
+++ Zope3/trunk/src/zope/app/security/interfaces/__init__.py 2004-07-09 15:44:40 UTC (rev 26291)
@@ -51,15 +51,7 @@
description=_("A detailed description of the principal."),
required=False)
- # XXX: These are deprecated!
- def getTitle():
- """Return title."""
-
- def getDescription():
- """Return description."""
-
-
class IUnauthenticatedPrincipal(IPrincipal):
"""A principal that hasn't been authenticated.
Modified: Zope3/trunk/src/zope/app/security/principalregistry.py
===================================================================
--- Zope3/trunk/src/zope/app/security/principalregistry.py 2004-07-09 15:44:38 UTC (rev 26290)
+++ Zope3/trunk/src/zope/app/security/principalregistry.py 2004-07-09 15:44:40 UTC (rev 26291)
@@ -126,18 +126,7 @@
self.title = title
self.description = description
- def getTitle(self):
- warn("Use principal.title instead of principal.getTitle().",
- DeprecationWarning, 2)
- return self.title
- def getDescription(self):
- warn("Use principal.description instead of "
- "principal.getDescription().",
- DeprecationWarning, 2)
- return self.description
-
-
class Principal(PrincipalBase):
implements(IPrincipal)
More information about the Zope3-Checkins
mailing list