Changeset 16119


Ignore:
Timestamp:
Dec 19, 2016, 7:48:24 AM (7 years ago)
Author:
Jun Omae
Message:

trachtmlnotification: fix breakage with FakeSession changed since Trac 1.2 (trac:r15075)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trachtmlnotificationplugin/0.12/trachtmlnotification/notification.py

    r14384 r16119  
    154154        if languages:
    155155            environ['HTTP_ACCEPT_LANGUAGE'] = ','.join(languages)
     156        session = FakeSession()
     157        session['dateinfo'] = 'absolute'
    156158        req = Request(environ, lambda *args, **kwargs: None)
    157159        req.arg_list = ()
    158160        req.args = {}
    159161        req.authname = 'anonymous'
    160         req.session = FakeSession({'dateinfo': 'absolute'})
     162        req.session = session
    161163        req.perm = MockPerm()
    162164        req.href = req.abs_href
Note: See TracChangeset for help on using the changeset viewer.