10 lines
No EOL
284 B
Python
10 lines
No EOL
284 B
Python
class FilenamePathConverter:
|
|
regex = '[a-zA-Z0-9_-]{1,50}\.[a-zA-Z]{3,4}$'
|
|
|
|
def to_python(self, value):
|
|
# convert value to its corresponding python datatype
|
|
return value
|
|
|
|
def to_url(self, value):
|
|
# convert the value to str data
|
|
return value |