X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Flocalizer%2Fbasic%2FMirBasicArticlePostingHandler.java;fp=source%2Fmircoders%2Flocalizer%2Fbasic%2FMirBasicArticlePostingHandler.java;h=26a5b659ce5d6ee858e16eca48df36dea3a08b6c;hb=d1fe8297d584e69a5d2bed84cc979d8bdd13cb31;hp=0e0c391ddb1583bf2e8f39bed3f808bbd307db34;hpb=06b9a796be74c75d1297bfa6959a4ce193932a57;p=mir.git diff --git a/source/mircoders/localizer/basic/MirBasicArticlePostingHandler.java b/source/mircoders/localizer/basic/MirBasicArticlePostingHandler.java index 0e0c391d..26a5b659 100755 --- a/source/mircoders/localizer/basic/MirBasicArticlePostingHandler.java +++ b/source/mircoders/localizer/basic/MirBasicArticlePostingHandler.java @@ -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);