Changeset 4540
- Timestamp:
- 04/29/08 05:08:00 (7 months ago)
- Files:
-
- projects/ToscaWidgetsForms/trunk/docs/base_widgets.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/conf.py (added)
- projects/ToscaWidgetsForms/trunk/docs/container_widgets.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/index.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/intro.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/calendar.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/core.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/datagrid.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/fields.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/module_index.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/modules/validators.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/secure_forms.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/tutorial1.rst (deleted)
- projects/ToscaWidgetsForms/trunk/docs/tutorials (added)
- projects/ToscaWidgetsForms/trunk/docs/tutorials/pylons_one.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/tutorials/pylons_two.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/tutorials/sample_form.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/tutorials/tutorial_index.rst (added)
- projects/ToscaWidgetsForms/trunk/docs/widgets.rst (added)
- projects/ToscaWidgetsForms/trunk/setup.cfg (modified) (1 diff)
- projects/ToscaWidgetsForms/trunk/tw/forms/calendars.py (modified) (3 diffs)
- projects/ToscaWidgetsForms/trunk/tw/forms/fields.py (modified) (3 diffs)
- projects/ToscaWidgetsForms/trunk/tw/forms/release.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
projects/ToscaWidgetsForms/trunk/setup.cfg
r4435 r4540 5 5 tag_build = dev 6 6 tag_date = true 7 8 [apydia]9 title = twForms10 theme = default11 modules = toscawidgets.widgets.forms12 docformat = reStructuredText13 trac_browser_url = /trac/twForms/browserprojects/ToscaWidgetsForms/trunk/tw/forms/calendars.py
r4429 r4540 28 28 29 29 class CalendarDatePicker(FormField): 30 """ 31 Uses a javascript calendar system to allow picking of calendar dates. 32 The date_format is in mm/dd/yyyy unless otherwise specified 33 """ 30 34 css = [calendar_css] 31 35 javascript = [calendar_js, calendar_setup] … … 46 50 47 51 def __init__(self, *args, **kw): 48 """49 Use a javascript calendar system to allow picking of calendar dates.50 The date_format is in mm/dd/yyyy unless otherwise specified51 """52 52 super(CalendarDatePicker, self).__init__(*args, **kw) 53 53 if self.default is None and self.not_empty: … … 99 99 100 100 class CalendarDateTimePicker(CalendarDatePicker): 101 """ 102 Use a javascript calendar system to allow picking of calendar dates and 103 time. 104 The date_format is in mm/dd/yyyy hh:mm unless otherwise specified 105 """ 101 106 date_format = "%Y/%m/%d %H:%M" 102 107 picker_shows_time = True projects/ToscaWidgetsForms/trunk/tw/forms/fields.py
r4429 r4540 130 130 This is useful when you want to avoid boiler-place at the template: 131 131 132 Instead of: 133 134 .. code-block:: xhtml 132 Instead of:: 135 133 136 134 <foo bar='$bar' zoo='$zoo' /> 137 135 138 Do: 139 140 .. code-block:: xhtml 136 Do:: 137 141 138 142 139 <foo py:attrs="attrs" /> … … 604 601 SecureTicketField to the form. 605 602 606 This can be use like this: 603 This can be use like this:: 607 604 608 605 class MyForm(ListForm, SecureFormMixin): … … 618 615 form = MyForm(session_secret_cb=session_secret_cb) 619 616 620 or 617 or:: 621 618 622 619 class MyForm(ListForm, SecureFormMixin): projects/ToscaWidgetsForms/trunk/tw/forms/release.py
r4431 r4540 1 __all__ = [ 2 '__VERSION__', 3 '__COPYRIGHT__', 4 '__AUTHOR__', 5 '__LICENSE__', 6 '__PACKAGE_NAME__', 7 ] 8 1 9 __PACKAGE_NAME__ = "tw.forms" 2 10 __VERSION__ = "0.8" 3 11 __AUTHOR__ = "Alberto Valverde Gonzalez" 4 12 __EMAIL__ = "alberto@toscat.net" 5 __COPYRIGHT__ = " Copyright2006-2007 Alberto Valverde Gonzalez and contributors"13 __COPYRIGHT__ = "2006-2007 Alberto Valverde Gonzalez and contributors" 6 14 __LICENSE__ = "MIT"