Class ::xowiki::PodcastForm
::xowiki::PodcastForm
create ... \
[ -field_list (default "item_id name page_order text title subtitle creator pub_date duration keywords
description") ] \
[ -html (default " enctype multipart/form-data ") ] \
[ -validate (default "
{upload_file {\[::xowiki::validate_file\]} {For new entries, a upload file must be provided}}
{name {\[::xowiki::validate_name\]} {Another item with this name exists already in this folder}}
{page_order {\[::xowiki::validate_form_field page_order\]} {Page Order invalid;
might only contain upper and lowercase letters, underscore, digits and dots}}
{duration {\[::xowiki::validate_duration\]} {Check duration and provide default}}
") ]
Class Relations
- class: ::xotcl::Class
![[i]](/resources/acs-subsite/ZoomIn16.gif)
- superclass: ::xowiki::FileForm
![[i]](/resources/acs-subsite/ZoomIn16.gif)
::xotcl::Class create ::xowiki::PodcastForm \
-superclass ::xowiki::FileForm
Methods (to be applied on instances)
edit_data (scripted)
set pub_date [:var pub_date]
${:data} set pub_date [list [:to_timestamp $pub_date]]
return [next]edit_request (scripted)
${:data} set pub_date [:to_timeinfo [${:data} set pub_date]]
nextfield_list (setter)
html (setter)
new_data (scripted)
set pub_date [:var pub_date]
${:data} set pub_date [list [:to_timestamp $pub_date]]
return [next]new_request (scripted)
${:data} set pub_date [:to_timeinfo [clock format [clock seconds] -format "%y-%m-%d %T"]]
nextto_timeinfo (scripted)
set t [clock scan $timestamp]
return "[clock format $t -format {%Y %m %d %H %M}] {} {YY MM DD HH24 MI}"to_timestamp (scripted)
if {$widgetinfo ne ""} {
lassign $widgetinfo y m day hour min
set t [clock scan "${hour}:$min $m/$day/$y"]
set ::env(LANG) en_US.UTF-8
return [clock format $t]
}
return ""validate (setter)