Changeset 7695
- Timestamp:
- 23 Feb 2012, 17:48:43 (13 years ago)
- Location:
- main/waeup.custom/trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.custom/trunk/buildout.cfg
r7587 r7695 54 54 zope.xmlpickle = 3.4.0 55 55 # Require latest version... 56 Sphinx = 56 Sphinx = 1.0.7 57 57 ZODB3 = 3.10.3 58 58 docutils = 0.7 … … 62 62 # This creates all scripts in bin/. The sirpctl created here is 'faulty'. 63 63 recipe = zc.recipe.egg 64 eggs = waeup.custom 64 eggs = waeup.custom [beaker] 65 65 z3c.evalexception>=2.0 66 66 Paste … … 74 74 # fixed path to zdaemon.conf as argument. 75 75 recipe = zc.recipe.egg 76 eggs = waeup.custom 76 eggs = waeup.custom [beaker] 77 77 arguments = "${buildout:parts-directory}/etc/zdaemon.conf" 78 78 scripts = sirpctl=sirpctl … … 89 89 [test] 90 90 recipe = zc.recipe.testrunner 91 eggs = waeup.custom [ test]91 eggs = waeup.custom [beaker, test] 92 92 defaults = ['--tests-pattern', '^f?tests$', '-v'] 93 93 94 # this section named so that the i18n scripts are called bin/i18n...94 # This section named so that the i18n scripts are called bin/i18n... 95 95 [i18n] 96 96 recipe = z3c.recipe.i18n:i18n … … 164 164 [coverage-detect] 165 165 recipe = zc.recipe.testrunner 166 eggs = waeup.custom 166 eggs = waeup.custom[beaker] 167 167 defaults = ['--tests-pattern', '^f?tests$', '-v', '--coverage', 'coverage'] 168 168 -
main/waeup.custom/trunk/setup.py
r6885 r7695 11 11 'waeup.sirp', 12 12 ], 13 14 # Having beaker installed additionally is a feature very recommended 15 # for production use. The default buildout includes beaker for tests, 16 # start scripts, and other parts that can benefit from it. The windows 17 # buildout does not include it due to compiling problems with the 18 # beaker package. 19 beaker_require = [ 20 'dolmen.beaker', 21 ] 13 22 14 23 tests_require = [ … … 75 84 test = tests_require, 76 85 docs = docs_require, 86 beaker = beaker_require, 77 87 ), 78 88 entry_points=""" -
main/waeup.custom/trunk/src/waeup/custom/browser/theming.py
r7419 r7695 20 20 from waeup.custom.browser.resources import custom_theme_1 21 21 22 from waeup.custom.interfaces import MessageFactory as _ 23 22 24 class CustomTheme1(grok.GlobalUtility): 23 25 """A custom theme based on the SIRP base theme. … … 26 28 grok.name('custom theme 1') 27 29 28 description = u'Custom Theme 1'30 description = _(u'Custom Theme 1') 29 31 30 32 def getResources(self): -
main/waeup.custom/trunk/src/waeup/custom/configure.zcml
r6892 r7695 1 1 <configure xmlns="http://namespaces.zope.org/zope" 2 xmlns:grok="http://namespaces.zope.org/grok"> 2 xmlns:grok="http://namespaces.zope.org/grok" 3 xmlns:i18n="http://namespaces.zope.org/i18n"> 3 4 <include package="grok" /> 5 <i18n:registerTranslations directory="locales" /> 4 6 <includeOverrides package="waeup.custom" file="overrides.zcml" /> 5 7 </configure> -
main/waeup.custom/trunk/src/waeup/custom/interfaces.py
r7505 r7695 16 16 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 17 17 ## 18 19 import zope.i18nmessageid 18 20 from zope import schema 19 21 from waeup.sirp.interfaces import ( 20 22 ISessionConfiguration, academic_sessions_vocab) 23 24 _ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.custom') 21 25 22 26 # It's recommended to replicate all fields from the base package here. … … 26 30 27 31 school_fee_base = schema.Int( 28 title = u'School Fee (ignored)',32 title = _(u'School Fee (ignored)'), 29 33 default = 0, 30 34 ) 31 35 32 36 surcharge_1 = schema.Int( 33 title = u'Surcharge BT',37 title = _(u'Surcharge BT'), 34 38 default = 0, 35 39 ) 36 40 37 41 surcharge_2 = schema.Int( 38 title = u'Surcharge Interswitch',42 title = _(u'Surcharge Interswitch'), 39 43 default = 0, 40 44 ) 41 45 42 46 surcharge_3 = schema.Int( 43 title = u'Surcharge 3',47 title = _(u'Surcharge 3'), 44 48 default = 0, 45 49 ) 46 50 47 51 clearance = schema.Int( 48 title = u'Clearance Fee',52 title = _(u'Clearance Fee'), 49 53 default = 0, 50 54 ) 51 55 52 56 booking_fee = schema.Int( 53 title = u'Booking Fee',57 title = _(u'Booking Fee'), 54 58 default = 0, 55 59 ) 56 60 57 61 maint_fee = schema.Int( 58 title = u'Maintenance Fee',62 title = _(u'Maintenance Fee'), 59 63 default = 0, 60 64 ) 61 65 62 66 gown = schema.Int( 63 title = u'Gown Fee',67 title = _(u'Gown Fee'), 64 68 default = 0, 65 69 ) 66 70 67 71 transfer = schema.Int( 68 title = u'Transfer Fee',72 title = _(u'Transfer Fee'), 69 73 default = 0, 70 74 ) … … 80 84 81 85 academic_session = schema.Choice( 82 title = u'Academic Session',86 title = _(u'Academic Session'), 83 87 source = academic_sessions_vocab, 84 88 default = None, -
main/waeup.custom/trunk/src/waeup/custom/utils/utils.py
r7586 r7695 25 25 """A collection of methods subject to customization. 26 26 """ 27 PORTAL_LANGUAGE = 'en'
Note: See TracChangeset for help on using the changeset viewer.