Index: /main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py
===================================================================
--- /main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py	(revision 6965)
+++ /main/waeup.sirp/trunk/src/waeup/sirp/hostels/browser.py	(revision 6966)
@@ -116,5 +116,5 @@
 
     # It's quite dangerous to remove entire hostels with its content (beds).
-    # Thus, this removed should be combined with an archiving function.
+    # Thus, this remove method should be combined with an archiving function.
     @grok.action('Remove selected')
     def delHostels(self, **data):
@@ -123,5 +123,6 @@
             deleted = []
             child_id = form['val_id']
-            child_id = [child_id]
+            if not isinstance(child_id, list):
+                child_id = [child_id]
             for id in child_id:
                 deleted.append(id)
@@ -152,5 +153,9 @@
         self.applyData(hostel, **data)
         hostel.hostel_id = data['hostel_name'].lower().replace(' ','_')
-        self.context.addHostel(hostel)
+        try:
+            self.context.addHostel(hostel)
+        except KeyError:
+            self.flash('The hostel already exists.')
+            return
         self.flash('Hostel created.')
         write_log_message(self, 'added: % s' % data['hostel_name'])
