- Timestamp:
- 13 Nov 2014, 16:03:08 (10 years ago)
- Location:
- main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/batching.txt
r11949 r11952 20 20 * accepts a single data type identified by an interface. 21 21 22 * knows about the places inside a site ( University) where to store,22 * knows about the places inside a site (Institution) where to store, 23 23 remove or update the data. 24 24 -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/browser.py
r11949 r11952 25 25 from waeup.ikoba.interfaces import IObjectHistory 26 26 27 from waeup.ikoba.interfaces import I University27 from waeup.ikoba.interfaces import IInstitution 28 28 29 29 class ReindexPage(UtilityView, grok.View): … … 32 32 Reindexes a catalog. For managers only. 33 33 """ 34 grok.context(I University)34 grok.context(IInstitution) 35 35 grok.name('reindex') 36 36 grok.require('waeup.managePortal') -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/helpers.txt
r11949 r11952 185 185 ... <BLANKLINE> 186 186 ... <body> 187 ... <form action="http://localhost/my university/faculties/TF/add"187 ... <form action="http://localhost/myinstitution/faculties/TF/add" 188 188 ... method="post" class="edit-form" 189 189 ... enctype="multipart/form-data"> … … 194 194 ... """) 195 195 <BLANKLINE> 196 <form action="http://localhost/my university/faculties/TF/add"196 <form action="http://localhost/myinstitution/faculties/TF/add" 197 197 method="post" class="edit-form" 198 198 enctype="multipart/form-data"> -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/logger.py
r11949 r11952 67 67 68 68 The datacenter and its storage are created automatically when you 69 create a :class:`waeup.ikoba.app. University`. This also means that69 create a :class:`waeup.ikoba.app.Institution`. This also means that 70 70 logging with the `Logger` mix-in will work only inside so-called sites 71 (` University` instances put into ZODB are such `sites`).71 (`Institution` instances put into ZODB are such `sites`). 72 72 73 73 Other components in this module help to make everything work. … … 386 386 return 387 387 388 from waeup.ikoba.interfaces import I University389 @grok.subscribe(I University, grok.IObjectRemovedEvent)388 from waeup.ikoba.interfaces import IInstitution 389 @grok.subscribe(IInstitution, grok.IObjectRemovedEvent) 390 390 def handle_site_removed(obj, event): 391 391 collector = queryUtility(ILoggerCollector) -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/tests/test_batching.py
r11949 r11952 30 30 from zope.component.interfaces import IFactory 31 31 from zope.interface import Interface, implements, verify 32 from waeup.ikoba.app import University32 from waeup.ikoba.app import Institution 33 33 from waeup.ikoba.interfaces import ( 34 34 ICSVExporter, IBatchProcessor, IExportJobContainer, IJobManager, … … 137 137 138 138 # Setup a sample site for each test 139 app = University()139 app = Institution() 140 140 self.dc_root = tempfile.mkdtemp() 141 141 app['datacenter'].setStoragePath(self.dc_root) … … 597 597 def test_active_site(self): 598 598 # we get the datafinder if one is installed and site set 599 self.getRootFolder()['app'] = University()599 self.getRootFolder()['app'] = Institution() 600 600 finder = getUtility(IExportContainerFinder) 601 601 setSite(self.getRootFolder()['app']) … … 606 606 def test_broken_site(self): 607 607 # if the current site has no ExportContainer, we get None 608 self.getRootFolder()['app'] = University()608 self.getRootFolder()['app'] = Institution() 609 609 app = self.getRootFolder()['app'] 610 610 del app['datacenter'] # datacenter _is_ the export container -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/tests/test_converters.py
r11949 r11952 32 32 Interface, implements, invariant, Invalid, implementedBy, verify) 33 33 34 from waeup.ikoba.app import University34 from waeup.ikoba.app import Institution 35 35 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 36 36 from waeup.ikoba.interfaces import ( … … 155 155 156 156 # Setup a sample site for each test 157 app = University()157 app = Institution() 158 158 self.dc_root = tempfile.mkdtemp() 159 159 app['datacenter'].setStoragePath(self.dc_root) -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/tests/test_logger.py
r11949 r11952 25 25 from zope.component.hooks import setSite, clearSite 26 26 from zope.interface.verify import verifyClass, verifyObject 27 from waeup.ikoba.app import University27 from waeup.ikoba.app import Institution 28 28 from waeup.ikoba.testing import FunctionalLayer, FunctionalTestCase 29 29 … … 49 49 super(LoggersTests, self).setUp() 50 50 # Setup a sample site for each test 51 app = University()51 app = Institution() 52 52 self.dc_root = tempfile.mkdtemp() 53 53 self.dc_root2 = None … … 223 223 224 224 # Setup a sample site for each test 225 app = University()225 app = Institution() 226 226 self.dc_root = tempfile.mkdtemp() 227 227 app['datacenter'].setStoragePath(self.dc_root) … … 281 281 super(LoggerCollectorTests, self).setUp() 282 282 # Setup a sample site for each test 283 app = University()283 app = Institution() 284 284 self.dc_root = tempfile.mkdtemp() 285 285 app['datacenter'].setStoragePath(self.dc_root) … … 377 377 super(LogfileChangeTests, self).setUp() 378 378 # Setup a sample site for each test 379 app = University()379 app = Institution() 380 380 self.dc_root = tempfile.mkdtemp() 381 381 self.dc_root_new = None -
main/waeup.kofa/branches/henrik-regista/src/waeup/ikoba/utils/utils.py
r11949 r11952 136 136 } 137 137 138 DISABLE_PAYMENT_GROUP_DICT = {139 'sf_all': 'School Fee - All Students',140 }141 142 138 APP_CATS_DICT = { 143 139 'basic': 'Basic Application', … … 267 263 268 264 ${b} 269 Student Registration and Information Portal of265 Application and Registration Portal of 270 266 ${c}. 271 267
Note: See TracChangeset for help on using the changeset viewer.