替换plone中默认日期选择器的小部件

Products.PopupCalendarWidget的Python项目详细描述


关于

The PopupCalendarWidget is meant to replace the default calendar widget with a javascript popup calendar based on The DHTML Calendar that is included with Plone.

用法

You can set up the popup calendar using these options in your widget:

ifFormat

date format that will be stored in the input field. The default value is localLongTimeFormat from site_properties.

default: ‘%Y-%m-%d %H:%M’

显示时间

if true the calendar will include a time selector

default: ‘true’

时间格式

the time format can be “12” or “24”

default: ‘24’

周数

if it’s true the calendar will display week numbers

default: ‘false’

第一天

numeric: 0 to 6. “0” means display Sunday first, “1” means display Monday first, etc.

default: ‘0’

范围

range of years in an array, ex. [1999,2010]. The default value is derived from site_properties calendar_starting_year and calendar_starting_year + calendar_future_years_available.

default (in the year 2007): [1999, 2012]

单击

whether the calendar is in single click mode or not

default: ‘true’

电动

if true (default) then given fields/date areas are updated for each move otherwise they’re updated only on close

default: ‘true’

步骤

configures the step of the years in drop-down boxes

default: ‘1’

向其他人展示

if “true” it will show days from other months too

default: ‘false’

日历图标

select an icon for the edit page popup button

default: ‘popup-calendar.gif’

助手css

the css used to render the calendar. some of the other stock css are calendar-green.css, calendar-blue.css, calendar-brown.css

default: ‘jscalendar/calendar-system.css’

依赖关系

Plone 2.0.5 - Plone 2.5.x

作者

Clayton Parker (clayton AT sixfeetup DOT com) for Six Feet Up, Inc.

http://www.sixfeetup.com

claytron on #plone IRC channel on Freenode (irc.freenode.net)

1.0.6-2009年4月30日

  • Minor bug fixes to checkForDate.py. Now if the date cannot be converted, returns original value. If cannot be formatted, returns date formatted as “mm/dd/yyyy”

1.0.3-2007年8月17日

  • Changed the helper_css for the widget to be a tuple as this is what is expected. This was causing some strange style issues in Safari and IE since the string was getting split up and creating erroneous style sheets

1.0.2-2007-06-21

  • Made the date range and ifFormat configurable via the widget. See the README for details.
  • Not installing the demo type by default anymore. Set the DEMO_TYPE variable in the config.py to True to use it.

1.0.1-2006-04-09

  • Minor bug fix to the popup_calendar.pt edit macro. There was a missing $ for the call to the portal_url variable. Thanks to Jim Baack for the fix.

1.0-2006-03-23

  • initial import into the Plone Software Center

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何复制二维字符串数组?   java Realworld参数优化   输入创建一个Java程序,读取。txt并标识三角形边长   java Apache HttpClient上传后文件无法与MultipartEntityBuilder上传一起使用   java如何从单独的类文件中随机选择两个枚举值   Java获取两个正则表达式之间所有字符串的最佳方法?   java如何将按钮链接到微调器?   java改造2.0:如何映射不同类型的对象   java如何检查Antlr3中的数字范围?   java使用JNDI查找EJB Bean   java构造函数字符串、字符串、int、int、Optional<>在spring boot中未定义   java如何使用jruby(使用jetty运行)创建servlet?   JavaFX:为什么在背景改变之前我必须按下按钮几次?   java可以为违反映射契约的映射生成重复的JSON对象属性名吗?   JavaJSOUP从网站获取某些属性   Eclipse:如何使java文件夹显示为树?   如何在Java中从Matcher获取多个正则表达式组?   构造函数中带有参数的lambda Java 8供应商   java是否可以在ExtJS 3.2中对日期进行自定义排序