fixed / clean ups
[mir.git] / source / mircoders / localizer / basic / MirBasicArticlePostingHandler.java
index 0e0c391..26a5b65 100755 (executable)
@@ -104,15 +104,15 @@ public class MirBasicArticlePostingHandler extends MirBasicPostingSessionHandler
 
   public void finalizeArticle(Request aRequest, Session aSession, EntityContent anArticle) throws SessionExc, SessionFailure {
     try {
-      anArticle.setValueForProperty("is_published", "1");
-      anArticle.setValueForProperty("is_produced", "0");
-      anArticle.setValueForProperty("date", StringUtil.date2webdbDate(new GregorianCalendar()));
-      anArticle.setValueForProperty("is_html", "0");
-      anArticle.setValueForProperty("publish_path", StringUtil.webdbDate2path(anArticle. getValue("date")));
+      anArticle.setFieldValue("is_published", "1");
+      anArticle.setFieldValue("is_produced", "0");
+      anArticle.setFieldValue("date", StringUtil.date2webdbDate(new GregorianCalendar()));
+      anArticle.setFieldValue("is_html", "0");
+      anArticle.setFieldValue("publish_path", StringUtil.webdbDate2path(anArticle. getFieldValue("date")));
 
       ModuleArticleType module = new ModuleArticleType(DatabaseArticleType.getInstance());
-      anArticle.setValueForProperty("to_article_type", module.articleTypeIdForName(configuration.getString("Localizer.OpenSession.article.DefaultArticleType")));
-      anArticle.setValueForProperty("to_publisher", "1");
+      anArticle.setFieldValue("to_article_type", module.articleTypeIdForName(configuration.getString("Localizer.OpenSession.article.DefaultArticleType")));
+      anArticle.setFieldValue("to_publisher", "1");
     }
     catch (Throwable t) {
       throw new SessionFailure(t);