Index: /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py
===================================================================
--- /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 10019)
+++ /main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py	(revision 10020)
@@ -222,17 +222,19 @@
         table_data = []
         for viewlet in fm.viewlets:
-            f_label = Paragraph(trans(viewlet.label, lang), ENTRY1_STYLE)
-            img_path = getattr(getUtility(IExtFileStore).getFileByContext(
-                view.context, attr=viewlet.download_name), 'name', None)
-            f_text = Paragraph(trans(_('(not provided)'),lang), ENTRY1_STYLE)
-            if img_path is None:
-                pass
-            elif not img_path[-4:] in ('.jpg', '.JPG'):
-                # reportlab requires jpg images, I think.
-                f_text = Paragraph('%s (not displayable)' % (
-                    viewlet.title,), ENTRY1_STYLE)
-            else:
-                f_text = Image(img_path, width=2*cm, height=1*cm, kind='bound')
-            table_data.append([f_label, f_text])
+            if viewlet.file_exists:
+                # Show viewlet only if file exists
+                f_label = Paragraph(trans(viewlet.label, lang), ENTRY1_STYLE)
+                img_path = getattr(getUtility(IExtFileStore).getFileByContext(
+                    view.context, attr=viewlet.download_name), 'name', None)
+                #f_text = Paragraph(trans(_('(not provided)'),lang), ENTRY1_STYLE)
+                if img_path is None:
+                    pass
+                elif not img_path[-4:] in ('.jpg', '.JPG'):
+                    # reportlab requires jpg images, I think.
+                    f_text = Paragraph('%s (not displayable)' % (
+                        viewlet.title,), ENTRY1_STYLE)
+                else:
+                    f_text = Image(img_path, width=2*cm, height=1*cm, kind='bound')
+                table_data.append([f_label, f_text])
         if table_data:
             # safety belt; empty tables lead to problems.
