media handling fixes, gotten rid of StorageObject, set the default method for blots...
[mir.git] / source / mircoders / module / ModuleComment.java
index a66d4cc..d850cfa 100755 (executable)
@@ -57,7 +57,7 @@ public class ModuleComment extends AbstractModule
 
   public void deleteById (String anId) throws ModuleExc, ModuleFailure {
     try {
-      Entity theEntity = storage.selectById((String)anId);
+      Entity theEntity = database.selectById((String)anId);
       if (theEntity != null)
         DatabaseContent.getInstance().setUnproduced("id=" + theEntity.getFieldValue("to_media"));
 
@@ -78,7 +78,7 @@ public class ModuleComment extends AbstractModule
 
   public String set(Map theValues) throws ModuleExc, ModuleFailure {
     try {
-      Entity theEntity = storage.selectById((String)theValues.get("id"));
+      Entity theEntity = database.selectById((String)theValues.get("id"));
       if (theEntity == null)
          throw new ModuleExc("No Object in the database with id " + theValues.get("id"));
       DatabaseContent.getInstance().setUnproduced("id=" + theEntity.getFieldValue("to_media"));