Changeset 4540

Show
Ignore:
Timestamp:
04/29/08 05:08:00 (7 months ago)
Author:
alberto
Message:

preeliminary sphinx docs for tw.forms

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • projects/ToscaWidgetsForms/trunk/setup.cfg

    r4435 r4540  
    55tag_build = dev 
    66tag_date = true 
    7  
    8 [apydia] 
    9 title = twForms 
    10 theme = default 
    11 modules = toscawidgets.widgets.forms 
    12 docformat = reStructuredText 
    13 trac_browser_url = /trac/twForms/browser 
  • projects/ToscaWidgetsForms/trunk/tw/forms/calendars.py

    r4429 r4540  
    2828 
    2929class 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    """ 
    3034    css = [calendar_css] 
    3135    javascript = [calendar_js, calendar_setup] 
     
    4650 
    4751    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 specified 
    51         """ 
    5252        super(CalendarDatePicker, self).__init__(*args, **kw) 
    5353        if self.default is None and self.not_empty: 
     
    9999 
    100100class 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    """ 
    101106    date_format = "%Y/%m/%d %H:%M" 
    102107    picker_shows_time = True 
  • projects/ToscaWidgetsForms/trunk/tw/forms/fields.py

    r4429 r4540  
    130130        This is useful when you want to avoid boiler-place at the template: 
    131131 
    132         Instead of: 
    133  
    134         .. code-block:: xhtml 
     132        Instead of:: 
    135133 
    136134            <foo bar='$bar' zoo='$zoo' /> 
    137135 
    138         Do: 
    139  
    140         .. code-block:: xhtml 
     136        Do:: 
     137 
    141138 
    142139            <foo py:attrs="attrs" /> 
     
    604601    SecureTicketField to the form. 
    605602     
    606     This can be use like this: 
     603    This can be use like this:: 
    607604     
    608605        class MyForm(ListForm, SecureFormMixin): 
     
    618615        form = MyForm(session_secret_cb=session_secret_cb) 
    619616 
    620     or 
     617    or:: 
    621618 
    622619        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 
    19__PACKAGE_NAME__ = "tw.forms" 
    210__VERSION__ = "0.8" 
    311__AUTHOR__ = "Alberto Valverde Gonzalez" 
    412__EMAIL__ = "alberto@toscat.net" 
    5 __COPYRIGHT__ = "Copyright 2006-2007 Alberto Valverde Gonzalez and contributors" 
     13__COPYRIGHT__ = "2006-2007 Alberto Valverde Gonzalez and contributors" 
    614__LICENSE__ = "MIT"