media_id -> to_media
[mir.git] / source / mircoders / module / ModuleSchwerpunkt.java
index 4f2330d..3cab0fe 100755 (executable)
@@ -9,16 +9,16 @@ import javax.servlet.http.*;
 
 import freemarker.template.*;
 
-import webdb.servlet.*;
-import webdb.module.*;
-import webdb.entity.*;
-import webdb.misc.*;
-import webdb.storage.*;
-
+import mir.servlet.*;
+import mir.module.*;
 import mir.entity.*;
+import mir.misc.*;
 import mir.storage.*;
+
+import mir.entity.*;
+import mircoders.storage.*;
 /*
- *  SchwerpunktObjekt -
+ *  Feature -
  *
  *
  * @author RK
@@ -33,12 +33,17 @@ public class ModuleSchwerpunkt extends AbstractModule
                        this.theStorage = theStorage;
 
        if (theLog == null)
-       theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Module.Schwerpunkt.Logfile"));
+       theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Module.Schwerpunkt.Logfile"));
 
                }
 
-               public SimpleList getSchwerpunktAsSimpleList() {
-                       return ((DatabaseFeature)theStorage).getPopupData();
+               public SimpleList getSchwerpunktAsSimpleList()
+      throws ModuleException {
+      try {
+                         return ((DatabaseFeature)theStorage).getPopupData();
+      } catch (StorageObjectException e) {
+        throw new ModuleException(e.toString());
+      }
                }
 }