Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80311576
file_upload_field.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Aug 31, 02:21
Size
365 B
Mime Type
text/x-python
Expires
Mon, Sep 2, 02:21 (2 d)
Engine
blob
Format
Raw Data
Handle
20337506
Attached To
R3600 invenio-infoscience
file_upload_field.py
View Options
from
wtforms
import
FileField
__all__
=
[
'FileUploadField'
]
class
FileUploadField
(
FileField
):
def
__init__
(
self
,
**
kwargs
):
self
.
_icon_html
=
'<i class="icon-file"></i>'
super
(
FileUploadField
,
self
)
.
__init__
(
**
kwargs
)
def
pre_validate
(
self
):
return
dict
(
error
=
0
,
error_message
=
''
)
def
autocomplete
(
self
):
return
[]
Event Timeline
Log In to Comment