X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fproducer%2FProducerStartPage.java;h=80309598a607efd79e04c03062b4b77e35aec1b7;hb=c60a95adcf91d0ca0705a1b781ee239df8e901fb;hp=1a836b124d25155b2f0c5711156c30c092754d78;hpb=52183ff24543440c1a0e5d7377c81879d268124a;p=mir.git diff --git a/source/mircoders/producer/ProducerStartPage.java b/source/mircoders/producer/ProducerStartPage.java index 1a836b12..80309598 100755 --- a/source/mircoders/producer/ProducerStartPage.java +++ b/source/mircoders/producer/ProducerStartPage.java @@ -77,7 +77,7 @@ public class ProducerStartPage extends Producer { Database mediaStorage=null; String tinyIcon; String iconAlt; - Logfile theLog = Logfile.getInstance(MirConfig.getProp("Home") + MirConfig.getProp("Producer.Logfile")); + Logfile theLog = Logfile.getInstance(MirConfig.getProp("Home") + "/" +MirConfig.getProp("Producer.Logfile")); SimpleList mediaList; SimpleHash contentHash; @@ -154,6 +154,7 @@ public class ProducerStartPage extends Producer { theLog.printError("Producer.StartPage error id: " + currentContent.getId() + ", skipping"+e.toString()); } } + theLog.printDebugInfo("############### got newswire"); // get the startarticle and the related images whereClause="is_published=true AND to_article_type=4"; @@ -223,12 +224,15 @@ public class ProducerStartPage extends Producer { } } //enf for featurueList.size.. + theLog.printDebugInfo("############### got startitems"); + // get the breaking news // only the first 5 // todo: the number of breaking_news items have to be configurable ModuleBreaking breakingModule = new ModuleBreaking(DatabaseBreaking.getInstance()); entityList = breakingModule.getByWhereClause(null,"webdb_create desc",0,5); SimpleList breakingList = HTMLTemplateProcessor.makeSimpleList(entityList); + theLog.printDebugInfo("############### got breaking"); // get the articles whereClause="is_published=true AND to_article_type=2"; @@ -280,7 +284,7 @@ public class ProducerStartPage extends Producer { contentHash.put("to_media_video", mediaListVideo); contentHash.put("to_media_other", mediaListOther); } //end if currentMediaList != null - + //convert to html if ( ((SimpleScalar)contentHash.get("is_html")).getAsString().equals("0") ) { SimpleScalar tempScalar = (SimpleScalar)contentHash.get("description"); @@ -294,6 +298,7 @@ public class ProducerStartPage extends Producer { theLog.printError("Producer.StartPage error id: " + currentContent.getId() + ", skipping"+e.toString()); } } //enf for featurueList.size.. + theLog.printDebugInfo("############### got featurelist"); // Zusaetzlich Informationen startPageModel = new SimpleHash();