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);
//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
* 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");
}
//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));
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);