Changeset 7419 for main/waeup.custom/trunk/src
- Timestamp:
- 21 Dec 2011, 07:59:29 (13 years ago)
- Location:
- main/waeup.custom/trunk/src/waeup
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/src/waeup/__init__.py
-
Property
svn:keywords
set to
Id
r4918 r7419 1 # namespace package boilerplate 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 ## 2 18 try: 3 19 import pkg_resources -
Property
svn:keywords
set to
-
main/waeup.custom/trunk/src/waeup/custom/__init__.py
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
main/waeup.custom/trunk/src/waeup/custom/browser/__init__.py
-
Property
svn:keywords
set to
Id
-
Property
svn:keywords
set to
-
main/waeup.custom/trunk/src/waeup/custom/browser/pages.py
r6924 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 ## 1 18 import grok 2 19 from waeup.sirp.browser.pages import ( -
main/waeup.custom/trunk/src/waeup/custom/browser/resources.py
-
Property
svn:keywords
set to
Id
r6895 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 ## 1 18 import grok 2 19 from waeup.sirp.browser.resources import ( -
Property
svn:keywords
set to
-
main/waeup.custom/trunk/src/waeup/custom/browser/tests.py
r6926 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 ## 1 18 import tempfile 2 19 import shutil -
main/waeup.custom/trunk/src/waeup/custom/browser/theming.py
-
Property
svn:keywords
set to
Id
r6895 r7419 1 ## $Id$ 2 ## 1 3 ## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann 2 4 ## This program is free software; you can redistribute it and/or modify … … 4 6 ## the Free Software Foundation; either version 2 of the License, or 5 7 ## (at your option) any later version. 6 ## 8 ## 7 9 ## This program is distributed in the hope that it will be useful, 8 10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of 9 11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 12 ## GNU General Public License for more details. 11 ## 13 ## 12 14 ## You should have received a copy of the GNU General Public License 13 15 ## along with this program; if not, write to the Free Software … … 19 21 20 22 class CustomTheme1(grok.GlobalUtility): 21 """A custom theme based on the WAeUP base theme.23 """A custom theme based on the SIRP base theme. 22 24 """ 23 25 grok.implements(ITheme) -
Property
svn:keywords
set to
-
main/waeup.custom/trunk/src/waeup/custom/configuration.py
r6923 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 ## 1 18 """ 2 19 Containers for session configuration objects. -
main/waeup.custom/trunk/src/waeup/custom/interfaces.py
r7145 r7419 1 ## $Id$ 1 2 ## 2 ## interfaces.py 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 ## 3 18 from zope import schema 4 19 from waeup.sirp.interfaces import ( 5 I WAeUPObject, ISessionConfiguration, academic_sessions_vocab)20 ISIRPObject, ISessionConfiguration, academic_sessions_vocab) 6 21 7 22 # It's recommended to replicate all fields from the base package here. -
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 ## 1 18 from waeup.custom.testing import FunctionalLayer 2 19 from waeup.sirp.students.tests.test_browser import StudentsFullSetup … … 35 52 self.assertMatches('...ticket created...', 36 53 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) 37 64 self.browser.open(self.manage_student_path) 38 65 self.browser.getControl( 39 66 name="transition").value = ['pay_first_school_fee'] 40 67 self.browser.getControl("Save").click() 68 # Reset to returning 41 69 self.browser.getControl(name="transition").value = ['reset6'] 42 70 self.browser.getControl("Save").click() 43 71 self.browser.open(self.payments_student_path + '/addop') 44 72 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...', 46 74 self.browser.contents) 47 75 # 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 ## 1 18 import grok 2 from waeup.sirp.students.vocabularies import academic_sessions_vocab3 19 from waeup.sirp.students.workflow import CLEARED, RETURNING 4 20 from waeup.sirp.students.utils import StudentsUtils … … 31 47 grok.implements(IStudentsUtils) 32 48 33 def get _payment_details(self, category, student):49 def getPaymentDetails(self, category, student): 34 50 d = {} 35 51 d['surcharge_1'] = d['surcharge_2'] = d['surcharge_3'] = 0 … … 60 76 d['amount'] = get_school_fee(student, d['surcharge_1'] + d['surcharge_2']) 61 77 code = student['studycourse'].certificate.code 62 #session_string = academic_sessions_vocab.by_value[p_session + 1].title63 78 d['p_item'] = code 64 79 d['p_session'] += 1 -
main/waeup.custom/trunk/src/waeup/custom/testing.py
r6903 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 ## 1 18 """Testing support for :mod:`waeup.custom`. 2 19 """ -
main/waeup.custom/trunk/src/waeup/custom/tests/test_configuration.py
r6923 r7419 1 ## $Id$ 2 ## 1 3 ## Copyright (C) 2011 Uli Fouquet & Henrik Bettermann 2 4 ## This program is free software; you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.