Changeset 6113 for main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py
- Timestamp:
- 16 May 2011, 13:59:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.sirp/trunk/src/waeup/sirp/utils/helpers.py
r6071 r6113 66 66 not_copied.append(item) 67 67 continue 68 68 69 69 if os.path.isdir(itemsrc): 70 70 shutil.copytree(itemsrc, itemdst) … … 162 162 this is done automatically on startup of a :mod:`waeup.sirp` 163 163 system. 164 164 165 165 >>> grok.testing.grok('waeup.sirp.utils.helpers') 166 166 >>> grok.testing.grok_component( … … 224 224 source string (in unicode), ``<WARNINGS>`` is a string containing 225 225 any warning messages or ``None``. 226 226 227 227 Regular multi-line ReStructuredText strings will be returned as 228 228 HTML code: … … 254 254 >>> warnings is None 255 255 True 256 256 257 257 If warnings happen then they can be retrieved in the returned 258 258 ``warnings``. We try to render an erraneous document: … … 316 316 317 317 The returned string will be unicode. 318 318 319 319 A regular document will be rendered like this: 320 320 … … 349 349 <p>Thanks for watching!</p> 350 350 </div> 351 351 352 352 """ 353 353 html, warnings = ReST2HTML_w_warnings(source_string) … … 356 356 def attrs_to_fields(cls): 357 357 """Turn the attributes of a class into FieldProperty instances. 358 359 With Python >= 2.6 we can even use this function as a class decorator. 358 360 """ 359 361 iface = list(implementedBy(cls))[0]
Note: See TracChangeset for help on using the changeset viewer.