Ignore:
Timestamp:
28 Mar 2012, 16:49:18 (13 years ago)
Author:
Henrik Bettermann
Message:

Callback requests in the base package are only for demonstration purposes. These components must be neutralized in the customization package.

Location:
main/waeup.kofa/trunk/src/waeup/kofa
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py

    r7996 r7997  
    505505    """
    506506    grok.context(IApplicantOnlinePayment)
    507     grok.name('callback')
     507    grok.name('simulate_callback')
    508508    grok.require('waeup.payApplicant')
    509509
    510510    # This update method simulates a valid callback und must be
    511     # specified in the customization package. The parameters must be taken
    512     # from the incoming request.
     511    # neutralized in the customization package.
    513512    def update(self):
    514513        self.wf_info = IWorkflowInfo(self.context.__parent__)
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r7984 r7997  
    644644                          self.browser.contents)
    645645        # Callback can't be applied twice
    646         self.browser.open(payment_url + '/callback')
     646        self.browser.open(payment_url + '/simulate_callback')
    647647        self.assertMatches(
    648648            "...Transition 'pay' requires 'started' as source state...",
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/viewlets.py

    r7819 r7997  
    182182    icon = 'actionicon_call.png'
    183183    text = _('Request callback')
    184     target = 'callback'
     184    target = 'simulate_callback'
    185185
     186    # This button must be neutralized
     187    # in the customization package.
    186188    @property
    187189    def target_url(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r7993 r7997  
    10861086    """
    10871087    grok.context(IStudentOnlinePayment)
    1088     grok.name('callback')
     1088    grok.name('simulate_callback')
    10891089    grok.require('waeup.payStudent')
    10901090
    10911091    # This update method simulates a valid callback und must be
    1092     # specified in the customization package. The parameters must be taken
    1093     # from the incoming request.
     1092    # neutralized in the customization package.
    10941093    def update(self):
    10951094        if self.context.p_state == 'paid':
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r7993 r7997  
    12561256
    12571257        # Callback can't be applied twice
    1258         self.browser.open(payment_url + '/callback')
     1258        self.browser.open(payment_url + '/simulate_callback')
    12591259        self.assertMatches('...This ticket has already been paid...',
    12601260                          self.browser.contents)
     
    12981298        value = ctrl.options[1] # The clearance payment is the second in the table
    12991299        self.browser.getLink(value).click()
    1300         self.browser.open(self.browser.url + '/callback')
     1300        self.browser.open(self.browser.url + '/simulate_callback')
    13011301        self.assertMatches('...Valid callback received...',
    13021302                          self.browser.contents)
     
    13331333        self.browser.getLink(value).click()
    13341334        payment_url = self.browser.url
    1335         self.browser.open(payment_url + '/callback')
     1335        self.browser.open(payment_url + '/simulate_callback')
    13361336        self.assertMatches('...Valid callback received...',
    13371337                          self.browser.contents)
     
    13901390        # Students can open the callback view which simulates a valid callback
    13911391        self.assertEqual(len(self.app['accesscodes']['SFE-0']),0)
    1392         self.browser.open(self.browser.url + '/callback')
     1392        self.browser.open(self.browser.url + '/simulate_callback')
    13931393        self.assertMatches('...Valid callback received...',
    13941394                          self.browser.contents)
     
    14441444        value = ctrl.options[0]
    14451445        self.browser.getLink(value).click()
    1446         self.browser.open(self.browser.url + '/callback')
     1446        self.browser.open(self.browser.url + '/simulate_callback')
    14471447        # The new HOS-0 pin has been created
    14481448        self.assertEqual(len(self.app['accesscodes']['HOS-0']),1)
     
    15731573        value = ctrl.options[0]
    15741574        self.browser.getLink(value).click()
    1575         self.browser.open(self.browser.url + '/callback')
     1575        self.browser.open(self.browser.url + '/simulate_callback')
    15761576        # The new HOS-0 pin has been created
    15771577        self.assertEqual(len(self.app['accesscodes']['HOS-0']),1)
  • main/waeup.kofa/trunk/src/waeup/kofa/students/viewlets.py

    r7993 r7997  
    314314    icon = 'actionicon_call.png'
    315315    text = _('Request callback')
    316     target = 'callback'
    317 
     316    target = 'simulate_callback'
     317
     318    # This button must be neutralized
     319    # in the customization package.
    318320    @property
    319321    def target_url(self):
Note: See TracChangeset for help on using the changeset viewer.