Index: /waeup/branches/ulif-layout/src/waeup/hostel/hostelcontainer.py
===================================================================
--- /waeup/branches/ulif-layout/src/waeup/hostel/hostelcontainer.py	(revision 4685)
+++ /waeup/branches/ulif-layout/src/waeup/hostel/hostelcontainer.py	(revision 4686)
@@ -3,5 +3,4 @@
 from zope.interface import implementedBy
 from waeup.interfaces import IHostelContainer, IHostel
-from waeup.viewlets import MainArea, Index, Add, FormWrapMixin
 
 class HostelContainer(grok.Container):
@@ -36,32 +35,2 @@
     def getInterfaces(self):
         return implementedBy(HostelContainer)
-
-
-class AddHostelForm(grok.AddForm):
-    grok.context(IHostelContainer)
-    form_fields = grok.AutoFields(IHostel)
-    label = 'Add a hostel'
-
-    @grok.action('Add hostel')
-    def addHostel(self, **data):
-        hostel = getUtility(IHostel)
-        self.applyData(hostel, **data)
-        try:
-            self.context.addHostel(hostel)
-        except DuplicationError:
-            self.status = Invalid('The name chosen already exists '
-                                  'in the database')
-            return
-        self.redirect(self.url(self.context))
-
-class AddHostel(FormWrapMixin, grok.Viewlet):
-    """A viewlet that wraps the `AddHostelForm`.
-    """
-    grok.viewletmanager(MainArea)
-    grok.context(IHostelContainer)
-    grok.view(Add)
-    grok.require('waeup.manageUniversity')
-
-    formview_name = 'addhostelform' # The name of the formview we want
-                                    # to be rendered in this viewlet.
-
