Changeset 16266


Ignore:
Timestamp:
5 Oct 2020, 09:23:41 (4 years ago)
Author:
Henrik Bettermann
Message:

Redirect to payment ticket page after ticket creation.

Remove 'Comment by Import Manager:' in emails.

Location:
main/waeup.kofa/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r16262 r16266  
    441.6.1.dev0 (unreleased)
    55=======================
     6
     7* Redirect to payment ticket page after ticket creation.
    68
    79* Use Uli's marker substitution hack to inject signature
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r16236 r16266  
    14451445${e}
    14461446
    1447 Comment by Import Manager:""", mapping = {'a':normalized_filename,
     1447""", mapping = {'a':normalized_filename,
    14481448                'b':importer,
    14491449                'c':import_mode,
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r16262 r16266  
    22172217        self.flash(_('Payment ticket created.'))
    22182218        self.context.writeLogMessage(self,'added: %s' % payment.p_id)
    2219         self.redirect(self.url(self.context))
     2219        self.redirect(self.url(payment))
    22202220        return
    22212221
     
    22562256        self.flash(_('Payment ticket created.'))
    22572257        self.context.writeLogMessage(self,'added: %s' % payment.p_id)
    2258         self.redirect(self.url(self.context))
     2258        self.redirect(self.url(payment))
    22592259        return
    22602260
     
    22912291        self.flash(_('Payment ticket created.'))
    22922292        self.context.writeLogMessage(self,'added: %s' % payment.p_id)
    2293         self.redirect(self.url(self.context))
     2293        self.redirect(self.url(payment))
    22942294        return
    22952295
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r16251 r16266  
    10181018        self.assertMatches('...ticket created...',
    10191019                           self.browser.contents)
     1020        self.browser.open(self.payments_path)
    10201021        ctrl = self.browser.getControl(name='val_id')
    10211022        value = ctrl.options[0]
     
    11271128        # Managers can approve the payment
    11281129        self.assertEqual(len(self.app['accesscodes']['CLR-0']),0)
    1129         ctrl = self.browser.getControl(name='val_id')
    1130         value = ctrl.options[1] # The clearance payment is the second in the table
    1131         self.browser.getLink(value).click()
    11321130        self.browser.open(self.browser.url + '/approve')
    11331131        self.assertMatches('...Payment approved...',
     
    11541152        # Managers can approve the payment
    11551153        self.assertEqual(len(self.app['accesscodes']['TSC-0']),0)
    1156         ctrl = self.browser.getControl(name='val_id')
    1157         value = ctrl.options[2] # The clearance payment is the third in the table
    1158         self.browser.getLink(value).click()
    11591154        self.browser.open(self.browser.url + '/approve')
    11601155        self.assertMatches('...Payment approved...',
     
    11821177        self.assertMatches('...ticket created...',
    11831178                           self.browser.contents)
     1179        self.browser.open(self.payments_path)
    11841180        ctrl = self.browser.getControl(name='val_id')
    11851181        value = ctrl.options[0]
     
    11961192        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    11971193        self.browser.getControl("Create ticket").click()
     1194        self.browser.open(self.payments_path)
    11981195        ctrl = self.browser.getControl(name='val_id')
    11991196        value = ctrl.options[0]
     
    12411238                           self.browser.contents)
    12421239        self.app['configuration']['2004'].payment_disabled = ['sf_all']
     1240        self.browser.open(self.payments_path)
    12431241        self.browser.getLink("Add current session payment ticket").click()
    12441242        self.browser.getControl(name="form.p_category").value = ['schoolfee']
     
    12811279        self.assertMatches('...ticket created...',
    12821280                           self.browser.contents)
     1281        self.browser.open(self.payments_path)
    12831282        ctrl = self.browser.getControl(name='val_id')
    12841283        value = ctrl.options[0]
     
    13161315        self.browser.getControl(name="form.p_category").value = ['bed_allocation']
    13171316        self.browser.getControl("Create ticket").click()
    1318         ctrl = self.browser.getControl(name='val_id')
    1319         value = ctrl.options[0]
    1320         self.browser.getLink(value).click()
    13211317        self.browser.open(self.browser.url + '/approve')
    13221318        # The new HOS-0 pin has been created
     
    32033199        # Students can't approve the payment
    32043200        self.assertEqual(len(self.app['accesscodes']['CLR-0']),0)
     3201        self.browser.open(self.payments_path)
    32053202        ctrl = self.browser.getControl(name='val_id')
    32063203        value = ctrl.options[0]
     
    32883285        self.assertMatches('...ticket created...',
    32893286                           self.browser.contents)
     3287        self.browser.open(self.payments_path)
    32903288        ctrl = self.browser.getControl(name='val_id')
    32913289        value = ctrl.options[0]
     
    34143412        self.assertMatches('...ticket created...',
    34153413                           self.browser.contents)
     3414        self.browser.open(self.payments_path)
    34163415        ctrl = self.browser.getControl(name='val_id')
    34173416        value = ctrl.options[0]
     
    34793478        self.assertMatches('...ticket created...',
    34803479                           self.browser.contents)
     3480        self.browser.open(self.payments_path)
    34813481        ctrl = self.browser.getControl(name='val_id')
    34823482        value = ctrl.options[0]
     
    35183518        self.browser.getControl(name="form.p_category").value = ['schoolfee']
    35193519        self.browser.getControl("Create ticket").click()
     3520        self.browser.open(self.payments_path)
    35203521        ctrl = self.browser.getControl(name='val_id')
    35213522        value = ctrl.options[0]
     
    35753576        self.browser.getControl(name="form.p_category").value = ['bed_allocation']
    35763577        self.browser.getControl("Create ticket").click()
     3578        self.browser.open(self.payments_path)
    35773579        ctrl = self.browser.getControl(name='val_id')
    35783580        value = ctrl.options[0]
     
    36923694        self.assertMatches('...Payment ticket created...',
    36933695                           self.browser.contents)
     3696        self.browser.open(self.payments_path)
    36943697        ctrl = self.browser.getControl(name='val_id')
    36953698        value = ctrl.options[0]
     
    37023705        self.browser.getControl(name="form.p_category").value = ['hostel_maintenance']
    37033706        self.browser.getControl("Create ticket").click()
     3707        self.browser.open(self.payments_path)
    37043708        ctrl = self.browser.getControl(name='val_id')
    37053709        value = ctrl.options[1]
     
    37603764        self.browser.getControl(name="form.p_category").value = ['transcript']
    37613765        self.browser.getControl("Create ticket").click()
     3766        self.browser.open(self.payments_path)
    37623767        ctrl = self.browser.getControl(name='val_id')
    37633768        value = ctrl.options[0]
Note: See TracChangeset for help on using the changeset viewer.