Updated interface
authorThierry Florac <thierry.florac@onf.fr>
Fri, 13 Oct 2017 08:27:20 +0200
changeset 209 c3eaa11eab63
parent 208 9345af0a1b4c
child 210 890655d79cbd
Updated interface
src/pyams_content/component/links/interfaces/__init__.py
--- a/src/pyams_content/component/links/interfaces/__init__.py	Fri Oct 13 08:14:39 2017 +0200
+++ b/src/pyams_content/component/links/interfaces/__init__.py	Fri Oct 13 08:27:20 2017 +0200
@@ -23,7 +23,7 @@
 from pyams_sequence.schema import InternalReference, InternalReferencesList
 from pyams_utils.schema import MailAddressField
 from zope.interface import Interface
-from zope.schema import Choice, TextLine
+from zope.schema import Choice, TextLine, URI
 
 from pyams_content import _
 
@@ -59,9 +59,9 @@
 class IExternalLink(IBaseLink):
     """External link interface"""
 
-    url = TextLine(title=_("Target URL"),
-                   description=_("URL used to access external resource"),
-                   required=True)
+    url = URI(title=_("Target URL"),
+              description=_("URL used to access external resource"),
+              required=True)
 
     language = Choice(title=_("Language"),
                       description=_("Language used in this remote resource"),