Index: /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py	(revision 10447)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/accesscode.py	(revision 10448)
@@ -344,8 +344,8 @@
         """Get next unused num for given prefix.
         """
-        # School fee, clearance and hostel application batches start with 0.
-        # These batches are being emptily created during initialization of the
-        # university instance.
-        if prefix in ('CLR', 'SFE', 'HOS'):
+        # School fee, clearance, hostel application and transcript 
+        # batches start with 0.These batches are being emptily 
+        # created during initialization of the university instance.
+        if prefix in ('CLR', 'SFE', 'HOS', 'TSC'):
             num = 0
         else:
@@ -450,5 +450,6 @@
         site['accesscodes'] = basecontainer
         logger.info('Installed container for access code batches.')
-        # Create empty school fee, clearance and hostel application AC
+        # Create empty school fee, clearance, hostel application
+        # and transcript AC
         # batches during initialization of university instance.
         cost = 0.0
@@ -462,5 +463,7 @@
         basecontainer.createBatch(creation_date, creator,
             'HOS', cost, entry_num)
-        logger.info('Installed empty SFE, CLR and HOS access code batches.')
+        basecontainer.createBatch(creation_date, creator,
+            'TSC', cost, entry_num)
+        logger.info('Installed empty SFE, CLR, HOS and TSC access code batches.')
         return
 
@@ -475,4 +478,8 @@
                 'AccessCodePlugin: Updating site at %s: Nothing to do.' % (
                     site_name, ))
+        if not 'TSC' in site['accesscodes']:
+            site['accesscodes'].createBatch(datetime.utcnow(), 'system',
+                'TSC', 0.0, 0)
+            logger.info('Empty TSC access code batch added.')
         return
 
Index: /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py	(revision 10447)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py	(revision 10448)
@@ -354,4 +354,8 @@
         assert verifyObject(IAccessCodeBatchContainer, accesscodes)
         assert verifyClass(IAccessCodeBatchContainer, AccessCodeBatchContainer)
+
+    def test_existing_batches(self):
+        self.assertEqual(sorted(self.app['accesscodes'].keys()),
+            [u'BAR-1', u'CLR-0', u'HOS-0', u'SFE-0', u'TSC-0'])
 
     def test_csv_import(self):
Index: /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_batching.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_batching.py	(revision 10447)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_batching.py	(revision 10448)
@@ -107,5 +107,5 @@
             self.csv_file, BATCH_HEADER_FIELDS)
         self.assertEqual(num_warns,0)
-        self.assertEqual(len(self.app['accesscodes'].keys()), 7)
+        self.assertEqual(len(self.app['accesscodes'].keys()), 8)
         self.assertEqual(self.app['accesscodes']['CLR-1'].num,1)
         logcontent = open(self.logfile).read()
