Ignore:
Timestamp:
21 Dec 2011, 07:59:29 (13 years ago)
Author:
Henrik Bettermann
Message:

Adjust custom package to the changes made in the base package.

Set svn properties and harmonize copyright statement.

Location:
main/waeup.custom/trunk/src/waeup/custom/students
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.custom/trunk/src/waeup/custom/students/tests.py

    r7146 r7419  
     1## $Id$
     2##
     3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
     4## This program is free software; you can redistribute it and/or modify
     5## it under the terms of the GNU General Public License as published by
     6## the Free Software Foundation; either version 2 of the License, or
     7## (at your option) any later version.
     8##
     9## This program is distributed in the hope that it will be useful,
     10## but WITHOUT ANY WARRANTY; without even the implied warranty of
     11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12## GNU General Public License for more details.
     13##
     14## You should have received a copy of the GNU General Public License
     15## along with this program; if not, write to the Free Software
     16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
     17##
    118from waeup.custom.testing import FunctionalLayer
    219from waeup.sirp.students.tests.test_browser import StudentsFullSetup
     
    3552        self.assertMatches('...ticket created...',
    3653                           self.browser.contents)
     54        ctrl = self.browser.getControl(name='val_id')
     55        value = ctrl.options[0]
     56        self.browser.getLink(value).click()
     57        self.assertMatches('...Amount Authorized...',
     58                           self.browser.contents)
     59        #payment_url = self.browser.url
     60        #self.browser.open(payment_url)
     61        self.browser.getLink("Request callback").click()
     62        self.assertMatches('...Valid callback received...',
     63                          self.browser.contents)
    3764        self.browser.open(self.manage_student_path)
    3865        self.browser.getControl(
    3966            name="transition").value = ['pay_first_school_fee']
    4067        self.browser.getControl("Save").click()
     68        # Reset to returning
    4169        self.browser.getControl(name="transition").value = ['reset6']
    4270        self.browser.getControl("Save").click()
    4371        self.browser.open(self.payments_student_path + '/addop')
    4472        self.browser.getControl("Create ticket").click()
    45         self.assertMatches('...This payment ticket already exists...',
     73        self.assertMatches('...This type of payment has already been made...',
    4674                           self.browser.contents)
    4775        # Remove all payments so that we can add a school fee payment again
  • main/waeup.custom/trunk/src/waeup/custom/students/utils.py

    r7152 r7419  
     1## $Id$
     2##
     3## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann
     4## This program is free software; you can redistribute it and/or modify
     5## it under the terms of the GNU General Public License as published by
     6## the Free Software Foundation; either version 2 of the License, or
     7## (at your option) any later version.
     8##
     9## This program is distributed in the hope that it will be useful,
     10## but WITHOUT ANY WARRANTY; without even the implied warranty of
     11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12## GNU General Public License for more details.
     13##
     14## You should have received a copy of the GNU General Public License
     15## along with this program; if not, write to the Free Software
     16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
     17##
    118import grok
    2 from waeup.sirp.students.vocabularies import academic_sessions_vocab
    319from waeup.sirp.students.workflow import CLEARED, RETURNING
    420from waeup.sirp.students.utils import StudentsUtils
     
    3147    grok.implements(IStudentsUtils)
    3248
    33     def get_payment_details(self, category, student):
     49    def getPaymentDetails(self, category, student):
    3450        d = {}
    3551        d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0
     
    6076            d['amount'] = get_school_fee(student, d['surcharge_1'] + d['surcharge_2'])
    6177            code = student['studycourse'].certificate.code
    62             #session_string = academic_sessions_vocab.by_value[p_session + 1].title
    6378            d['p_item'] = code
    6479            d['p_session'] += 1
Note: See TracChangeset for help on using the changeset viewer.