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/students
Files:
3 edited

Legend:

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

    r8737 r13165  
    6565        return new_id
    6666
    67     def archive(self, id=None):
    68         raise NotImplementedError()
    69 
    70     def clear(self, id=None, archive=True):
    71         raise NotImplementedError()
    72 
    7367    def addStudent(self, student):
    7468        """Add a student with subcontainers.
  • main/waeup.kofa/trunk/src/waeup/kofa/students/interfaces.py

    r13125 r13165  
    145145        """
    146146
    147     def archive(id=None):
    148         """Create on-dist archive of students.
    149 
    150         If id is `None`, all students are archived.
    151 
    152         If id contains a single id string, only the respective
    153         students are archived.
    154 
    155         If id contains a list of id strings all of the respective
    156         students types are saved to disk.
    157         """
    158 
    159     def clear(id=None, archive=True):
    160         """Remove students of type given by 'id'.
    161 
    162         Optionally archive the students.
    163 
    164         If id is `None`, all students are archived.
    165 
    166         If id contains a single id string, only the respective
    167         students are archived.
    168 
    169         If id contains a list of id strings all of the respective
    170         student types are saved to disk.
    171 
    172         If `archive` is ``False`` none of the archive-handling is done
    173         and respective students are simply removed from the
    174         database.
    175         """
    176 
    177147    unique_student_id = Attribute("""A unique student id.""")
    178148
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_container.py

    r7811 r13165  
    7272        # We cannot call the fundamental methods of a base in that case
    7373        container = StudentsContainer()
    74         self.assertRaises(
    75             NotImplementedError, container.archive)
    76         self.assertRaises(
    77             NotImplementedError, container.clear)
    7874        # We cannot add arbitrary objects
    7975        department = Department()
Note: See TracChangeset for help on using the changeset viewer.