Changeset 7031
- Timestamp:
- 8 Nov 2011, 13:23:34 (13 years ago)
- Location:
- main/waeup.sirp/branches/ulif-extimgstore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/branches/ulif-extimgstore/buildout.cfg
r7000 r7031 54 54 zope.xmlpickle = 3.4.0 55 55 # Require latest version... 56 Sphinx = 56 Sphinx = 1.0.7 57 57 ZODB3 = 3.10.3 58 58 docutils = 0.7 -
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/browser/resources.py
r6894 r7031 38 38 #: 39 39 #: * 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:: 41 41 #: 42 42 #: from waeup.sirp.browser.resources import datepicker 43 #: ...44 #: class MyPage(...): 45 #: ...43 #: # ... 44 #: class MyPage(...): 45 #: # ... 46 46 #: def update(self): 47 47 #: datepicker.need() … … 51 51 #: 52 52 #: * 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 54 56 #: 55 57 #: <input type="text" name="entrydate" class="datepicker" /> … … 85 87 #: ``"datepicker-de-year"`` 86 88 #: same but also adds a select field for year 87 #: 89 #: 88 90 #: ``"datepicker-us"`` 89 91 #: renders date in format ``MM/DD/YYYY`` (U.S. format) … … 97 99 #: If you want generate alert or confirm messages then you have to perform 98 100 #: 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:: 101 104 #: 102 105 #: from waeup.sirp.browser.resources import datepicker 103 #: ...104 #: class MyPage(...): 105 #: ...106 #: # ... 107 #: class MyPage(...): 108 #: # ... 106 109 #: def update(self): 107 110 #: warning.need() … … 109 112 #: This way all required JavaScripts will be rendered correctly 110 113 #: into the HTML page generated. 111 #: 114 #: 112 115 #: In your HTML code add some <input> or <a> tag with onClick event: 113 116 #: 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?')"> 116 121 warning = ResourceInclusion(waeup_sirp, 'warning.js') 117 122 118 123 #: If you have many select boxes in a from which have to be selected at the same 119 # time you have to perform120 #: 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:: 123 128 #: 124 129 #: from waeup.sirp.browser.resources import toggleall 125 #: ...126 #: class MyPage(...): 127 #: ...130 #: # ... 131 #: class MyPage(...): 132 #: # ... 128 133 #: def update(self): 129 134 #: toggleall.need() … … 134 139 #: In your HTML code add some <input> tag with onClick event: 135 140 #: 136 #: <input type="checkbox" onClick="toggle(this, 'entries')" /> 137 141 #: .. code-block:: html 142 #: 143 #: <input type="checkbox" onClick="toggle(this, 'entries')" /> 138 144 toggleall = ResourceInclusion(waeup_sirp, 'toggleall.js') 139 145 … … 141 147 #: ``tabs``. 142 148 #: 143 #:144 149 #: If you want jQuery tabs for some <div>s in your page then you 145 150 #: have to perform two steps: 146 151 #: 147 152 #: * 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:: 149 154 #: 150 155 #: from waeup.sirp.browser.resources import tabs 151 #: ...152 #: class MyPage(...): 153 #: ...156 #: # ... 157 #: class MyPage(...): 158 #: # ... 154 159 #: def update(self): 155 160 #: tabs.need() … … 159 164 #: 160 165 #: * 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 #: 163 170 #: <div id="tabs"> 164 171 #: <ul> … … 195 202 #: A stylesheet for datatables 196 203 datatables_css = ResourceInclusion(waeup_sirp, 'datatables.css') 197 204 198 205 #: A resource that turns HTML tables into sortable, searchable and : 199 206 #: multi-page widgets using jQuery and the dataTables plugin available … … 204 211 #: 205 212 #: * 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:: 207 214 #: 208 215 #: from waeup.sirp.browser.resources import datatable 209 #: ...210 #: class MyPage(...): 211 #: ...216 #: # ... 217 #: class MyPage(...): 218 #: # ... 212 219 #: def update(self): 213 220 #: datatable.need() … … 217 224 #: 218 225 #: * Assign a ``display dataTable`` class to the HTML table you want to tune: 219 #: 226 #: 227 #: .. code-block:: html 228 #: 220 229 #: <table class="display dataTable"> 221 230 #: <thead> … … 246 255 #: Register basic YUI based CSS as a resource. 247 256 reset_fonts_grids = ResourceInclusion( 248 waeup_sirp, 'yuirfg.css') 249 257 waeup_sirp, 'yuirfg.css') 258 250 259 yuiapp_css = ResourceInclusion( 251 260 waeup_sirp, 'yuiapp.css', 252 depends=[reset_fonts_grids]) 261 depends=[reset_fonts_grids]) 253 262 254 263 #: 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 88 88 A named global utility implementing 89 89 90 :class:`zope.schema.interfaces.IVocabularyFactory 90 :class:`zope.schema.interfaces.IVocabularyFactory` 91 91 92 92 and registered under the name 93 93 94 94 'waeup.sirp.browser.theming.ThemesVocabulary' 95 95 96 96 Interface fields that wish to provide a list of available themes 97 97 can require a 'named vocabulary', i.e. set: … … 107 107 grok.implements(IVocabularyFactory) 108 108 grok.name('waeup.sirp.browser.theming.ThemesVocabulary') 109 109 110 110 def __call__(self, context): 111 111 """Deliver a vocabulary of available themes. -
main/waeup.sirp/branches/ulif-extimgstore/src/waeup/sirp/imagestorage.py
r7016 r7031 457 457 458 458 An ExtFileStore instance is available as a global utility 459 implementing : iface:`waeup.sirp.interfaces.IExtFileStore`.459 implementing :class:`waeup.sirp.interfaces.IExtFileStore`. 460 460 461 461 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 26 26 27 27 Each :class:`CertificateContainer` provides 28 : iface:`ICertificateContainer`.28 :class:`ICertificateContainer`. 29 29 """ 30 30 grok.implements(ICertificateContainer) … … 35 35 36 36 The `certificate` must be an object implementing 37 : iface:`waeup.sirp.university.interfaces.ICertificate`. If37 :class:`waeup.sirp.university.interfaces.ICertificate`. If 38 38 not, a :exc:`TypeError` is raised. 39 39 … … 75 75 76 76 The certificate must be an object implementing 77 : iface:`waeup.sirp.university.interfaces.ICertificate`. If77 :class:`waeup.sirp.university.interfaces.ICertificate`. If 78 78 not, a :exc:`TypeError` is raised. 79 79
Note: See TracChangeset for help on using the changeset viewer.