Ignore:
Timestamp:
13 Jul 2015, 07:53:26 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove non-implemented methods.

Add methods to hostel section interfaces.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/hostels
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/container.py

    r9197 r13165  
    3535        super(HostelsContainer, self).__init__()
    3636        return
    37 
    38     def archive(self, id=None):
    39         raise NotImplementedError()
    40 
    41     def clear(self, id=None, archive=True):
    42         raise NotImplementedError()
    4337
    4438    def addHostel(self, hostel):
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/interfaces.py

    r10683 r13165  
    3131class IHostelsContainer(IKofaObject):
    3232    """A container for all kind of hostel objects.
    33 
    3433    """
     34
     35    expired = Attribute('True if current datetime is in application period.')
    3536
    3637    startdate = schema.Datetime(
     
    6667        """
    6768
     69    def addHostel(hostel):
     70        """Add a hostel.
     71        """
     72
     73    def logger_info(ob_class, target, comment=None):
     74        """Get the logger's info method.
     75        """
     76
    6877class IHostel(IKofaObject):
    6978    """A base representation of hostels.
    70 
    7179    """
    7280
     
    205213class IBed(IKofaObject):
    206214    """A base representation of beds.
    207 
    208215    """
    209216
  • main/waeup.kofa/trunk/src/waeup/kofa/hostels/tests.py

    r12981 r13165  
    8787        container = HostelsContainer()
    8888        hostel = Hostel()
    89         self.assertRaises(
    90             NotImplementedError, container.archive)
    91         self.assertRaises(
    92             NotImplementedError, container.clear)
    9389        # We cannot add arbitrary objects
    9490        department = Department()
Note: See TracChangeset for help on using the changeset viewer.