Ignore:
Timestamp:
1 Nov 2011, 08:25:10 (13 years ago)
Author:
Henrik Bettermann
Message:

Remove unused clear method which was even wrong.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/university
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.py

    r6811 r6979  
    3535        self[department.code] = department
    3636
    37     def clear(self):
    38         """Remove all departments from faculty.
    39         """
    40         keys = self.keys()
    41         for key in keys:
    42             del self[key]
    43 
    4437    def longtitle(self):
    4538        try:
  • main/waeup.sirp/trunk/src/waeup/sirp/university/faculty.txt

    r5140 r6979  
    6969        [(u'DP', <waeup.sirp.university.department.Department object at 0x...>)]
    7070
    71    .. method:: clear()
    72 
    73       Remove all departments from this faculty:
    74 
    75         >>> myfac.clear()
    76         >>> list(myfac.items())
    77         []
    7871
    7972   .. attribute:: title
  • main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.py

    r6575 r6979  
    1616        self[faculty.code] = faculty
    1717        return
    18 
    19     def clear(self):
    20         keys = self.keys()
    21         for key in keys:
    22             del self[key]
    2318
    2419class FacultyContainerFactory(grok.GlobalUtility):
  • main/waeup.sirp/trunk/src/waeup/sirp/university/facultycontainer.txt

    r5140 r6979  
    6767        [(u'FP', <waeup.sirp.university.faculty.Faculty object at 0x...>)]
    6868
    69    .. method:: clear()
    70 
    71       Remove all departments from this faculty:
    72 
    73         >>> mycontainer.clear()
    74         >>> list(mycontainer.items())
    75         []
    7669
    7770
Note: See TracChangeset for help on using the changeset viewer.