From: mj Date: Wed, 26 Sep 2001 02:34:33 +0000 (+0000) Subject: Java base dupecheck deinstalled because the dupecheck is now implemented X-Git-Tag: prexmlproducerconfig~423 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=ff19ba99e0ad81d4ecde3ae8479c975b64c580a6;p=mir.git Java base dupecheck deinstalled because the dupecheck is now implemented as a trigger in the database. --- diff --git a/source/mircoders/servlet/ServletModuleOpenIndy.java b/source/mircoders/servlet/ServletModuleOpenIndy.java index 1c765e04..5a63164b 100755 --- a/source/mircoders/servlet/ServletModuleOpenIndy.java +++ b/source/mircoders/servlet/ServletModuleOpenIndy.java @@ -98,15 +98,15 @@ public class ServletModuleOpenIndy extends ServletModule withValues.put("is_published","1"); // Dupe detection - EntityList com = mainModule.getByWhereClause("description='"+req.getParameter("description")+"' AND to_media='"+aid+"' AND creator='"+req.getParameter("creator")+"'", 0); - if (com.getCount() > 0) { - theLog.printDebugInfo("Comment dupe dropped for article "+aid); - deliver(req, res, (TemplateModelRoot) null, commentFormDupeTemplate); - } else { +// EntityList com = mainModule.getByWhereClause("description='"+req.getParameter("description")+"' AND to_media='"+aid+"' AND creator='"+req.getParameter("creator")+"'", 0); +// if (com.getCount() > 0) { +// theLog.printDebugInfo("Comment dupe dropped for article "+aid); +// deliver(req, res, (TemplateModelRoot) null, commentFormDupeTemplate); +// } else { // inserting into database String id = mainModule.add(withValues); - + // producing new page new ProducerContent().handle(null, null, true, false, aid); @@ -118,7 +118,7 @@ public class ServletModuleOpenIndy extends ServletModule // should implement back to article SimpleHash mergeData = new SimpleHash(); deliver(req, res, mergeData, commentFormDoneTemplate); - } +// } } catch (StorageObjectException e) { throw new ServletModuleException(e.toString());} catch (ModuleException e) { throw new ServletModuleException(e.toString());}