替换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第三方库


热门话题
amazon web services Java AWS s3:如何使用Md5预签名url设置和上载内容   twitter使用java从推文中排除一些单词   如何在GUI java中添加延迟时间   java程序,如何使用Outputstream发送两次消息   java为什么是javax。在将Yasson与JSONB一起使用时,Glassfish中的json需要作为依赖项吗?   如何从dist文件夹中读取文件   java如何获取与模式匹配的文件列表   java如何使用Intent从Android应用程序发送彩信?   java限制对Spring的依赖,同时又不丧失框架的功能   java是否将捕获异常报告给Firebase/Fabric等?   用jdbcjava实现mysql分页   给定URI的java注释检索   java是序列化/反序列化公共枚举的简单方法?   java如何使用jMockit模拟本机方法