Changes between Version 39 and Version 40 of DeveloperGuidelines/CodeConventions


Ignore:
Timestamp:
11/16/13 23:29:01 (11 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/CodeConventions

    v39 v40  
    2424=== Quotes ===
    2525
    26 - for string constants in '''Python''' use double-quotes {{{" "}}} - UNLESS the string contains "
    27 - for string constants in '''!JavaScript''' use single-quotes {{{' '}}} - UNLESS the string contains a '
     26- for string constants in '''Python''' use '''double-quotes''' {{{" "}}} - UNLESS the string contains "
     27- for string constants in '''!JavaScript''' '''use single-quotes''' {{{' '}}} - UNLESS the string contains a '
    2828
    29 - for '''Inline-!JavaScript''' or JSON inside Python code use {{{''' '''}}} with single-quotes
    30 - in all other cases of triple-quoted strings (such as '''Docstrings''' or Inline-XML) use {{{""" """}}} with double-quotes
     29- for Inline-!JavaScript or JSON inside Python code use {{{''' '''}}} with single-quotes
    3130
    32 - for XML/HTML attributes use double-quotes {{{" "}}} (inner quotes must be escaped anyway)
    33 
    34 Note that this:
     31Note though that this:
    3532{{{
    3633#!python
     
    4441inline_javascript = '''sometext=%s;''' % json.dumps(sometext)
    4542}}}
     43
     44- in all other cases of triple-quoted strings (such as Docstrings or Inline-XML) use {{{""" """}}} with double-quotes
     45- for XML/HTML attributes use double-quotes {{{" "}}} (inner quotes must be escaped anyway)
     46
    4647=== Naming conventions ===
    4748