Ejemplo n.º 1
0
 def validate(value):
     try:
         validate.url_path(value)
     except exceptions.InvalidURLPath:
         error = 'Value must be a valid URL Path string'
         raise ValueError(error)
     return value
Ejemplo n.º 2
0
 def validate(value):
     try:
         validate.url_path(value)
     except exceptions.InvalidURLPath:
         error = 'Value must be a valid URL Path string'
         raise ValueError(error)
     return value