Index: WAeUP_SRP/trunk/skins/waeup_academics/getCourseInfo.py
===================================================================
--- WAeUP_SRP/trunk/skins/waeup_academics/getCourseInfo.py	(revision 1380)
+++ WAeUP_SRP/trunk/skins/waeup_academics/getCourseInfo.py	(revision 1380)
@@ -0,0 +1,26 @@
+## Script (Python) "getCourseInfo"
+##bind container=container
+##bind context=context
+##bind namespace=
+##bind script=script
+##bind subpath=traverse_subpath
+##parameters=code
+##title=
+##
+# $Id$
+"""
+return course-data from courses_catalog
+"""
+cat = context.courses_catalog
+d = {}
+res = cat(code=code)
+if res:
+    course = res[0]
+    for field in cat.schema():
+        d[field] = getattr(course,field)
+else:
+    for field in cat.schema():
+        d[field] = "-"
+    d['title'] = "unknown"
+    d['code'] = code
+return d
