cleanup
authormh <mh>
Sun, 17 Feb 2002 12:59:55 +0000 (12:59 +0000)
committermh <mh>
Sun, 17 Feb 2002 12:59:55 +0000 (12:59 +0000)
source/mir/misc/MpRequest.java
source/mircoders/servlet/ServletModuleOpenIndy.java

index fc191e2..4bd9019 100755 (executable)
@@ -11,7 +11,8 @@ public class MpRequest{
   String fileName=null;
   String fileContentType=null;
   
-  public MpRequest(byte[] i_uploadData, String i_fileName, String i_contentType){
+  public MpRequest(byte[] i_uploadData, String i_fileName,
+                   String i_contentType){
     setFilename(i_fileName);
     setContentType(i_contentType);
     setMedia(i_uploadData);
index ae502b5..66031a3 100755 (executable)
@@ -247,8 +247,7 @@ public class ServletModuleOpenIndy extends ServletModule
                        if (to_topicsArr != null && to_topicsArr.length > 0) {
         try{
           DatabaseContentToTopics.getInstance().setTopics(cid,to_topicsArr);
-               setTopic = true;
-                                       theLog.printError("setting content_x_topic success");
+          setTopic = true;
         } catch (Exception e) {
           theLog.printError("setting content_x_topic failed");
           contentModule.deleteById(cid);
@@ -267,7 +266,7 @@ public class ServletModuleOpenIndy extends ServletModule
         //sends us. (the "Oreilly method")
         String contentType = mpReq.getContentType();
 
-        theLog.printError("FROM BROWSER: "+contentType);
+        theLog.printInfo("FROM BROWSER: "+contentType);
 
         //if the client browser sent us unknown (text/plain is default)
         //or if we got application/octet-stream, it's possible that
@@ -289,17 +288,15 @@ public class ServletModuleOpenIndy extends ServletModule
              * sure that it is in this file -mh
              */
             contentType = FileUtil.guessContentTypeFromName(fileName);
-            theLog.printError("tYPE: "+contentType);
             if (contentType==null)
                 contentType = "text/plain"; // rfc1867 says this is the default
         }
         HashMap mediaValues = new HashMap();
 
-        theLog.printError("CONTENT TYPE IS: "+contentType);
+        theLog.printInfo("CONTENT TYPE IS: "+contentType);
         
         if (contentType.equals("text/plain") ||
             contentType.equals("application/octet-stream")) {
-          System.err.println("IN HERE");
           throw new ServletModuleUserException("One or more files of unrecognized types");
         }
 
@@ -335,7 +332,7 @@ public class ServletModuleOpenIndy extends ServletModule
           //get the class names from the media_type table.
           mediaTypeId = mediaTypesList.elementAt(0).getId();
           try {
-            // ############### TODO: merge these and the getURL call into one
+            // ############### @todo: merge these and the getURL call into one
             // getURL helper call that just takes the Entity as a parameter
             // along with media_type
             mediaHandler = MediaHelper.getHandler(mediaTypesList.elementAt(0));
@@ -366,7 +363,6 @@ public class ServletModuleOpenIndy extends ServletModule
             mpReq=null;
               
             //we got this far, associate the media to the article
-            theLog.printError("ID"+mediaId);
             mediaEnt.setValueForProperty("is_published","1");
             mediaEnt.update();
             new ProducerMedia().handle(null,null,false,false,mediaId);