## Script (Python) "get_entry_mode" ##bind container=container ##bind context=context ##bind namespace= ##bind script=script ##bind subpath=traverse_subpath ##parameters=sid ##title= ## # $Id: getFromData_entry_mode.py 1328 2007-01-19 18:16:32Z joachim $ """ return entry_mode from application-object. """ students = context.portal_url.getPortalObject().campus.students student = getattr(students,sid,None) if student is None: return None app = getattr(student,'application',None) if app is None: return None em = app.getContent().entry_mode if em: return em return "None"