Index: /WAeUP_SRP/trunk/WAeUPTables.py
===================================================================
--- /WAeUP_SRP/trunk/WAeUPTables.py	(revision 833)
+++ /WAeUP_SRP/trunk/WAeUPTables.py	(revision 834)
@@ -41,11 +41,11 @@
         setattr(ob, key, value)
     return ob
-        
+
 
 class WAeUPTable(ZCatalog):
-    
+
     implements(IWAeUPTable)
     security = ClassSecurityInfo()
-        
+
     def addRecord(self, **data):
         # The uid is the same as "bed".
@@ -56,9 +56,9 @@
         self.catalog_object(dict2ob(data), uid=uid)
         return uid
-    
+
     def deleteRecord(self, uid):
         #import pdb;pdb.set_trace()
         self.uncatalog_object(uid)
-    
+
     def searchAndSetRecord(self, **data):
         raise NotImplemented
@@ -100,8 +100,8 @@
         current = DateTime.DateTime().strftime("%d-%m-%y_%H_%M_%S")
         open("%s/import/%s-%s.csv" % (i_home,self.getId(),current),"w+").write('\n'.join(csv))
-        
-            
+
+
 class AccommodationTable(WAeUPTable):
-    
+
     meta_type = 'WAeUP Accommodation Tool'
     name = "accommodation"
@@ -114,18 +114,18 @@
         if len(records) > 0:
             return -1,"Student with Id %s already booked bed %s" % (student_id,records[0].bed)
-            
+
         records = [r for r in self.searchResults({'bed_type' : bed_type}) if not r.student]
         #import pdb;pdb.set_trace()
         if len(records) == 0:
-            return -1,"no bed of this type available"
+            return -1,"No bed of this type available"
         rec = records[0]
         self.modifyRecord(bed=rec.bed,student=student_id)
         return 1,rec.bed
-        
+
 
 InitializeClass(AccommodationTable)
 
 class PinTable(WAeUPTable):
-    
+
     meta_type = 'WAeUP Pin Tool'
     name = "pins"
@@ -140,5 +140,5 @@
         if len(records) > 0:
             for r in records:
-                if r.pin != uid and r.prefix_batch.startswith(prefix): 
+                if r.pin != uid and r.prefix_batch.startswith(prefix):
                     return -2
         records = self.searchResults({"%s" % self.key : uid})
