Commit 64874edb authored by Nicolas Delaby's avatar Nicolas Delaby

declare security

parent d34575ad
......@@ -57,6 +57,7 @@ class InternetProtocolAddress(Base, Coordinate):
)
security.declareProtected(Permissions.AccessContentsInformation, 'asText')
def asText(self):
"""
Return the address as a complete formatted string.
......@@ -73,6 +74,7 @@ class InternetProtocolAddress(Base, Coordinate):
result = '\n'.join(tmp)
return result
security.declareProtected(Permissions.ModifyPortalContent, 'fromText')
@deprecated
def fromText(self, coordinate_text):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment