Edgewall Software

Changes between Initial Version and Version 11 of Ticket #9616


Ignore:
Timestamp:
Apr 29, 2015, 7:43:27 AM (9 years ago)
Author:
Ryan J Ollos
Comment:

Revised patch:

  • trac/wiki/web_ui.py

    diff --git a/trac/wiki/web_ui.py b/trac/wiki/web_ui.py
    index 754f0c5..6a6d14b 100644
    a b class WikiModule(Component):  
    5757    max_size = IntOption('wiki', 'max_size', 262144,
    5858        """Maximum allowed wiki page size in characters.""")
    5959
     60    default_textarea_height = IntOption('wiki', 'default_textarea_height', 20,
     61        """Default height of the textarea on the wiki edit page.
     62        (//Since 1.1.5//)""")
     63
    6064    PAGE_TEMPLATES_PREFIX = 'PageTemplates/'
    6165    DEFAULT_PAGE_TEMPLATE = 'DefaultPage'
    6266
    class WikiModule(Component):  
    520524            page.readonly = 'readonly' in req.args
    521525
    522526        author = get_reporter_id(req, 'author')
    523         defaults = {'editrows': '20'}
     527        defaults = {'editrows': str(self.default_textarea_height)}
    524528        prefs = dict((key, req.session.get('wiki_%s' % key, defaults.get(key)))
    525529                     for key in ('editrows', 'sidebyside'))

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9616

    • Property Status newassigned
    • Property Severity normalminor
    • Property Cc kirean@… leho@… martin@… lists@… hejda.cz@… lloyd@… added
    • Property Component generalwiki system
    • Property Owner set to Ryan J Ollos
    • Property Version0.13dev
    • Property Milestone1.1.5
    • Property Keywords preferences added
  • Ticket #9616 – Release Notes

    initial v11  
     1The option `[wiki]` `default_textarea_height` is used when a value for `editrows` hasn't been saved in the session attributes.