Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91112721
keywords_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
Fri, Nov 8, 01:10
Size
359 B
Mime Type
text/x-python
Expires
Sun, Nov 10, 01:10 (2 d)
Engine
blob
Format
Raw Data
Handle
22198942
Attached To
R3600 invenio-infoscience
keywords_field.py
View Options
from
wtforms
import
TextField
__all__
=
[
'KeywordsField'
]
class
KeywordsField
(
TextField
):
def
__init__
(
self
,
**
kwargs
):
self
.
_icon_html
=
'<i class="icon-tags"></i>'
super
(
KeywordsField
,
self
)
.
__init__
(
**
kwargs
)
def
pre_validate
(
self
):
return
dict
(
error
=
0
,
error_message
=
''
)
def
autocomplete
(
self
):
return
[]
Event Timeline
Log In to Comment