Index: WAeUP_SRP/branches/uli/WAeUPTool.py
===================================================================
--- WAeUP_SRP/branches/uli/WAeUPTool.py	(revision 1545)
+++ WAeUP_SRP/branches/uli/WAeUPTool.py	(revision 1550)
@@ -478,4 +478,58 @@
     ###)
 
+    security.declareProtected(ModifyPortalContent,'getLogfileLines') ###(
+    def getLogfileLines(self,filename="event.log",numlines=20):
+        """Get last NUMLINES lines of logfile FILENAME.
+    
+        Return last lines' of a file in the instances logfile directory as
+        a list. The number of returned lines equals `numlines' or less. If
+        less than `numlines' lines are available, the whole file ist
+        returned. If the file can not be opened or some other error
+        occurs, empty list is returend.
+        """
+        result = []
+        lines_hit = 0
+
+        # We only handle files in instances' log directory...
+        logpath = os.path.join(i_home, "log")
+        filename = str(os.path.abspath( os.path.join( logpath, filename )))
+        if not filename.startswith( logpath ):
+            # Attempt to access file outside log-dir...
+            return []
+        
+        try:
+            fd = file( filename, "rb" )
+        except IOError:
+            return []
+        if not fd:
+            return []
+    
+        if os.linesep == None:
+            linesep = '\n'
+        else:
+            linesep = os.linesep
+    
+        # Try to find 'numlines' times a lineseparator, searching from end
+        # and moving to the beginning of file...
+        fd.seek( 0, 2) # Move to end of file...
+        while lines_hit < numlines:
+            if fd.read(1) == linesep[-1]: # This moves filedescriptor
+                                          # one step forward...
+                lines_hit += 1
+            try:
+                fd.seek( -2, 1) # Go two bytes back from current pos...
+            except IOError:
+                # We cannot go back two bytes. Maybe the file is too small...
+                break
+        fd.seek(2,1)
+
+        # Read all lines from current position...
+        result = fd.readlines()
+        # Remove line endings...
+        result = [x.strip() for x in result]
+        fd.close()    
+        return result
+    ###)
+
 
 InitializeClass(WAeUPTool)
Index: WAeUP_SRP/branches/uli/profiles/default/schemas/import_student.xml
===================================================================
--- WAeUP_SRP/branches/uli/profiles/default/schemas/import_student.xml	(revision 1545)
+++ WAeUP_SRP/branches/uli/profiles/default/schemas/import_student.xml	(revision 1550)
@@ -15,4 +15,3 @@
  <field name="verdict" meta_type="CPS String Field"/>
  <field name="address" meta_type="CPS String Field"/>
- <field name="" meta_type="CPS String Field"/>
 </object>
