Ignore:
Timestamp:
8 Nov 2011, 13:23:34 (13 years ago)
Author:
uli
Message:
  • Pin Sphinx version to 1.0.7. Apparently this is the last version not producing errors.
  • Fix some ReST markup for sphinx.
Location:
main/waeup.sirp/branches/ulif-extimgstore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/ulif-extimgstore/buildout.cfg

    r7000 r7031  
    5454zope.xmlpickle = 3.4.0
    5555# Require latest version...
    56 Sphinx =
     56Sphinx = 1.0.7
    5757ZODB3 = 3.10.3
    5858docutils = 0.7
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/browser/resources.py

    r6894 r7031  
    3838#:
    3939#: * In the `update()` method of the responsible view/page/form
    40 #:   require the JavaScript code to be rendered into the page:
     40#:   require the JavaScript code to be rendered into the page::
    4141#:
    4242#:     from waeup.sirp.browser.resources import datepicker
    43 #:     ...
    44 #:     class MyPage(...):
    45 #:       ...
     43#:     # ...
     44#:     class MyPage(...):
     45#:       # ...
    4646#:       def update(self):
    4747#:         datepicker.need()
     
    5151#:
    5252#: * In your HTML code add some ``<input>`` or ``<div>`` tag with
    53 #:   ``class`` set to ``datepicker``, like this::
     53#:   ``class`` set to ``datepicker``, like this:
     54#:
     55#:   .. code-block:: html
    5456#:
    5557#:     <input type="text" name="entrydate" class="datepicker" />
     
    8587#: ``"datepicker-de-year"``
    8688#:    same but also adds a select field for year
    87 #: 
     89#:
    8890#: ``"datepicker-us"``
    8991#:    renders date in format ``MM/DD/YYYY`` (U.S. format)
     
    9799#: If you want generate alert or confirm messages then you have to perform
    98100#: two steps:
    99 #: * In the `update()` method of the responsible view/page/form
    100 #:   require the JavaScript code to be rendered into the page:
     101#:
     102#: * In the `update()` method of the responsible view/page/form
     103#:   require the JavaScript code to be rendered into the page::
    101104#:
    102105#:     from waeup.sirp.browser.resources import datepicker
    103 #:     ...
    104 #:     class MyPage(...):
    105 #:       ...
     106#:     # ...
     107#:     class MyPage(...):
     108#:       # ...
    106109#:       def update(self):
    107110#:         warning.need()
     
    109112#:   This way all required JavaScripts will be rendered correctly
    110113#:   into the HTML page generated.
    111 #: 
     114#:
    112115#:   In your HTML code add some <input> or <a> tag with onClick event:
    113116#:
    114 #:   <input type="submit" name="xyz" value="abc"/>
    115 #:          onclick="return confirmPost('Are you sure?')">
     117#:   .. code-block:: html
     118#:
     119#:        <input type="submit" name="xyz" value="abc"/>
     120#:               onclick="return confirmPost('Are you sure?')">
    116121warning = ResourceInclusion(waeup_sirp, 'warning.js')
    117122
    118123#: If you have many select boxes in a from which have to be selected at the same
    119 # time you have to perform
    120 #: two steps:
    121 #: * In the `update()` method of the responsible view/page/form
    122 #:   require the JavaScript code to be rendered into the page:
     124#: time you have to perform two steps:
     125#:
     126#: * In the `update()` method of the responsible view/page/form
     127#:   require the JavaScript code to be rendered into the page::
    123128#:
    124129#:     from waeup.sirp.browser.resources import toggleall
    125 #:     ...
    126 #:     class MyPage(...):
    127 #:       ...
     130#:     # ...
     131#:     class MyPage(...):
     132#:       # ...
    128133#:       def update(self):
    129134#:         toggleall.need()
     
    134139#:   In your HTML code add some <input> tag with onClick event:
    135140#:
    136 #:   <input type="checkbox" onClick="toggle(this, 'entries')" />
    137 
     141#:   .. code-block:: html
     142#:
     143#:    <input type="checkbox" onClick="toggle(this, 'entries')" />
    138144toggleall = ResourceInclusion(waeup_sirp, 'toggleall.js')
    139145
     
    141147#: ``tabs``.
    142148#:
    143 #:
    144149#: If you want jQuery tabs for some <div>s in your page then you
    145150#: have to perform two steps:
    146151#:
    147152#: * In the `update()` method of the responsible view/page/form
    148 #:   require the JavaScript code to be rendered into the page:
     153#:   require the JavaScript code to be rendered into the page::
    149154#:
    150155#:     from waeup.sirp.browser.resources import tabs
    151 #:     ...
    152 #:     class MyPage(...):
    153 #:       ...
     156#:     # ...
     157#:     class MyPage(...):
     158#:       # ...
    154159#:       def update(self):
    155160#:         tabs.need()
     
    159164#:
    160165#: * In your HTML code add some ``<div>`` tag with ``class`` set to
    161 #    ``tabs``, like this::
    162 #:   
     166#:   ``tabs``, like this:
     167#:
     168#:    .. code-block:: html
     169#:
    163170#:      <div id="tabs">
    164171#:        <ul>
     
    195202#: A stylesheet for datatables
    196203datatables_css = ResourceInclusion(waeup_sirp, 'datatables.css')
    197                                  
     204
    198205#: A resource that turns HTML tables into sortable, searchable and :
    199206#: multi-page widgets using jQuery and the dataTables plugin available
     
    204211#:
    205212#: * In the `update()` method of the responsible view/page/form
    206 #:   require the JavaScript code to be rendered into the page:
     213#:   require the JavaScript code to be rendered into the page::
    207214#:
    208215#:     from waeup.sirp.browser.resources import datatable
    209 #:     ...
    210 #:     class MyPage(...):
    211 #:       ...
     216#:     # ...
     217#:     class MyPage(...):
     218#:       # ...
    212219#:       def update(self):
    213220#:         datatable.need()
     
    217224#:
    218225#: * Assign a ``display dataTable`` class to the HTML table you want to tune:
    219 #:   
     226#:
     227#:   .. code-block:: html
     228#:
    220229#:      <table class="display dataTable">
    221230#:        <thead>
     
    246255#: Register basic YUI based CSS as a resource.
    247256reset_fonts_grids = ResourceInclusion(
    248     waeup_sirp, 'yuirfg.css')   
    249    
     257    waeup_sirp, 'yuirfg.css')
     258
    250259yuiapp_css = ResourceInclusion(
    251260    waeup_sirp, 'yuiapp.css',
    252     depends=[reset_fonts_grids])     
     261    depends=[reset_fonts_grids])
    253262
    254263#: Register basic WAeUP base CSS (which is based on ``yuiapp.css`` as a
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/browser/theming.py

    r6894 r7031  
    8888    A named global utility implementing
    8989
    90       :class:`zope.schema.interfaces.IVocabularyFactory
     90      :class:`zope.schema.interfaces.IVocabularyFactory`
    9191
    9292    and registered under the name
    9393
    9494      'waeup.sirp.browser.theming.ThemesVocabulary'
    95    
     95
    9696    Interface fields that wish to provide a list of available themes
    9797    can require a 'named vocabulary', i.e. set:
     
    107107    grok.implements(IVocabularyFactory)
    108108    grok.name('waeup.sirp.browser.theming.ThemesVocabulary')
    109    
     109
    110110    def __call__(self, context):
    111111        """Deliver a vocabulary of available themes.
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/imagestorage.py

    r7016 r7031  
    457457
    458458    An ExtFileStore instance is available as a global utility
    459     implementing :iface:`waeup.sirp.interfaces.IExtFileStore`.
     459    implementing :class:`waeup.sirp.interfaces.IExtFileStore`.
    460460
    461461    To add and retrieve files from the storage, use the appropriate
  • main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/university/certificatecontainer.py

    r6243 r7031  
    2626
    2727    Each :class:`CertificateContainer` provides
    28     :iface:`ICertificateContainer`.
     28    :class:`ICertificateContainer`.
    2929    """
    3030    grok.implements(ICertificateContainer)
     
    3535
    3636        The `certificate` must be an object implementing
    37         :iface:`waeup.sirp.university.interfaces.ICertificate`. If
     37        :class:`waeup.sirp.university.interfaces.ICertificate`. If
    3838        not, a :exc:`TypeError` is raised.
    3939
     
    7575
    7676        The certificate must be an object implementing
    77         :iface:`waeup.sirp.university.interfaces.ICertificate`. If
     77        :class:`waeup.sirp.university.interfaces.ICertificate`. If
    7878        not, a :exc:`TypeError` is raised.
    7979
Note: See TracChangeset for help on using the changeset viewer.