Commit 2cd4e966 authored by Nicolas Delaby's avatar Nicolas Delaby

Add docstring, in order to make those methods callable through http

parent 3aa9a037
......@@ -95,6 +95,8 @@ class Url(Coordinate, Base, UrlMixin):
def getUrlString(self, default=_marker):
"""Fallback on coordinate_text
"""
if not self.hasUrlString():
if default is _marker:
return self.getCoordinateText()
......@@ -108,6 +110,8 @@ class Url(Coordinate, Base, UrlMixin):
security.declareProtected(Permissions.AccessContentsInformation, 'isDetailed')
def isDetailed(self):
"""
"""
return self.hasUrlString()
security.declareProtected(Permissions.UseMailhostServices, 'send')
......
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