first commit of new persistence layer. needed libraries
[mir.git] / source / default.properties
index 3455052..3f92e20 100755 (executable)
@@ -44,9 +44,19 @@ Mir.Public-email.address=mir-coders@lists.indymedia.org
 Mir.Public-email.name=mir-coders mailinglist
 
 Mir.Version=1.1beta
-StandardLanguage=de
 DirectOpenposting=yes
 
+# The name of the abuse config file (relative to the WEB-INF dir)
+Abuse.Config=abuse.properties
+# The name of the cookie that can be used to thwart trolls
+#    (The name is deliberately misleading)
+Abuse.CookieName=SessionIdentifier
+
+# The time the cookie will remain active in hours
+#   168 = 1 week
+Abuse.CookieMaxAge=168
+
+
 #where to put the lucene index
 IndexPath=/tmp/index
 
@@ -65,7 +75,12 @@ Mir.Localizer.ProducerConfigFile=etc/producer/producers.xml
 # If the default language is left empty, it will set the accept-language of
 # the client browser as the default.
 Mir.Login.DefaultLanguage=en
-Mir.Login.Languages=en;nl;de;qu;tr;ay;es;eu
+
+# The available languages in the login form:
+Mir.Login.Languages=en;de;fr;nl;es;pt;eu;sv;tr;zh;gz
+
+# For missing values, the FallbackLanguage is used as default
+Mir.Admin.FallbackLanguage=en
 
 
 # the templates
@@ -78,6 +93,29 @@ Mir.Localizer.OpenPosting.GeneratorLibrary= default=freemarker(etc/open/)
 # 0 = links, 1 = checkboxes, 2 = a listbox
 Mir.Localizer.Admin.ListOperationsFlavor=1
 
+# How should the topics be presented on the article edit page?
+# 0 = in a multiselect list box, 1 = checkboxes
+Mir.Localizer.Admin.TopicListFlavor=1
+
+# For the checkboxes flavour, how many columns should there be?
+Mir.Localizer.Admin.TopicListColumns=3
+
+# In which order should the topic appear?
+Mir.Localizer.Admin.TopicListOrder=title
+
+# enable deletion of comments/articles?
+Mir.Localizer.Admin.AllowDeleteComment=1
+Mir.Localizer.Admin.AllowDeleteArticle=1
+
+# Article Preview Link URL (Link to produced articles from within admin)
+ContentList.ArticleLink=http://production.indy.code-foo.org/en/${date.formatted.yyyy}/${date.formatted.MM}/${id}.shtml
+CommentList.ArticleLink=http://production.indy.code-foo.org/en/${co_content.date.formatted.yyyy}/${to_content.date.formatted.MM}/${to_content.id}.shtml
+
+# enable deletion of comments/articles?
+Mir.Localizer.Admin.AdministerOperations= \
+   comments:module=Comment&do=list
+
+
 # Which producers need to be called after an article (resp. a comment) is posted
 Mir.Localizer.OpenPosting.ContentProducers= media.new;articles.changed;startpage.generate;synchronization.run
 Mir.Localizer.OpenPosting.CommentProducers= articles.changed;synchronization.run
@@ -88,13 +126,10 @@ Mir.Localizer.Producer.AllNewProducers= media.new;articles.changed;startpage.run
 
 #note that you can't make pdf's without making fo's
 #this is actually now set in producers.xml
-#but these summarize what is said in there for the benefit of OpenMir 
+#but these summarize what is said in there for the benefit of OpenMir
 GenerateFO=yes
 GeneratePDF=yes
 
-#on-time-password-protection
-PasswdProtection=no
-
 #use rsync to mirror the website to a remote-host
 Rsync=no
 Rsync.Script.Path=/var/www/bin/rsync-copy
@@ -117,15 +152,20 @@ ServletModule.OpenIndy.DefaultMediaUploadItems=1
 # the url of the static site
 Producer.ProductionHost=http://indy.code-fu.de
 
+# the url of the public site
+Producer.PublicationHost=http://indy.code-fu.de
+
 # Produrce.StorageRoot is the directory, in which
 # the generated HTML pages will be stored
 Producer.StorageRoot=/pub/Dokumente/Indymedia/de-tech/Mir/produced
 
-# for FileEdit module
-#
-# where do we find the files? absolute path
-ServletModule.FileEdit.FileDirectory=/pub/Dokumente/Indymedia/de-tech/Mir/produced
-ServletModule.FileEdit.ExtFilter=inc
+# FileEdit module
+#   a list of directories to edit
+#   format: 
+#      <name>:<path>:<file filter>:<0|1 (recursion off or on)> [, ....]
+
+ServletModule.FileEdit.Configuration= \
+  includes:/pub/Dokumente/Indymedia/de-tech/Mir/produced/inc:.*\\.inc:1
 
 #
 #
@@ -173,6 +213,14 @@ Producer.Image.MaxSize = 640
 # icons will be generated so that the size (both width and height) are below:
 Producer.Image.MaxIconSize = 120
 
+# descaling will only occur if at least the following percentage of either
+#  the width or the height needs to be removed:
+Producer.Image.MinDescalePercentage=10
+
+# descaling will only occur if at least the following number of pixels needs
+#  to be removed from either the width or the height:
+Producer.Image.MinDescaleReduction=10
+
 
 # media specific storage directories
 # absolute directory, where the media files are saved
@@ -200,8 +248,84 @@ Producer.Icon.BigVideo=video_big.gif
 Producer.Icon.BigText=text_big.gif
 
 #the style sheet used to turn html into xsl:fo
-Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl 
+Producer.HTML2FOStyleSheet=/some/dir/mir/etc/producer/html2fo.xsl
+
+# the following lines are used to construct PDFs on the fly from one or more articles
+# for the moment, if you want to change anything else about your pdfs, you 
+# will have to learn some java!
+#
+# keep in mind that there may not be enough room for all the text you enter as the 
+# value of one these options, if text doesn't appear, the only easy thing to do is 
+# use less text!
+#
+# also, be sure to adjust the corresponding line height if you change a font size...
+# this may require some trial and error to get right
+#
+# Available font families are helvetica, courier, and times
+#
+
+
+# a single line of big text which will appear at the top of the first page of all generated pdfs
+
+PDF.Title.String=INDYMEDIA SOMEWHERE
+PDF.Title.FontSize=24
+PDF.Title.LineHeight=28
+PDF.Title.FontFamily=courier
+
+# footer is about two lines of small text which will appear at the bottom of every page 
+
+PDF.Footer.String=Indymedia does blah.  Content is good, and free to use for non-commercial purposes under the Open Content license. if you have questions, email someone.
+PDF.Footer.Height=54
+PDF.Footer.FontSize=12
+PDF.Footer.FontFamily=helvetica 
+
+# how to format the index, i.e. the newsletter table of contents
+
+PDF.Index.FontSize=12
+PDF.Index.LineHeight=16
+PDF.Index.FontFamily=helvetica
 
+# how to format the meta-data, i.e. title, author, date
+
+PDF.Meta.Height=36
+PDF.Meta.FontSize=14
+PDF.Meta.FontFamily=helvetica 
+
+# how to format the article description
+
+PDF.Description.FontSize=12
+PDF.Description.LineHeight=16
+PDF.Description.FontFamily=helvetica
+
+# how to format the article content
+
+PDF.Content.FontSize=10
+PDF.Content.LineHeight=16
+PDF.Content.FontFamily=helvetica
+
+# the formatting for images in gallery mode
+
+PDF.BigImageCaption.FontSize=16
+PDF.BigImageCaption.FontFamily=helvetica
+
+# the formatting for the article source
+
+PDF.Source.FontSize=12
+PDF.Source.LineHeight=16
+PDF.Source.FontFamily=courier
+
+
+
+
+#
+# the size paper your target audience will likely have in their printers.  pick one of A4 or LETTER
+#
+
+PDF.PageSize=A4
+
+# the number of Objects which can fit in your MRUCache
+
+Global.Cache.Items=15
 
 #
 # edit with caution below this line
@@ -238,12 +362,6 @@ Adaptor.PostgreSQL.URL=jdbc:postgresql://localhost:5432/Mir
 Adaptor.PostgreSQL.Driver=org.postgresql.Driver
 
 #
-# should be explained .)
-#
-
-HTMLTemplateProcessor.Dir=
-
-#
 # Servlet / Module configurations
 #
 
@@ -253,112 +371,137 @@ HTMLTemplateProcessor.Dir=
 # also used for the HTML charset meta tag.
 Mir.DefaultEncoding=UTF8
 
+# this encoding is used for the HTML charset meta tag.
+# it must be the html charset equivalent of the Java encoding above
+# don't change this unless...
+Mir.DefaultHTMLCharset=UTF-8
+
+
+
+
+Localizer.OpenSession.article.EditTemplate = editarticle.template
+Localizer.OpenSession.article.DupeTemplate = dupearticle.template
+Localizer.OpenSession.article.DoneTemplate = donearticle.template
+Localizer.OpenSession.article.UnsupportedMediaTemplate = unsupportedmediatype.template
+Localizer.OpenSession.comment.EditTemplate = editcomment.template
+Localizer.OpenSession.comment.DupeTemplate = dupecomment.template
+Localizer.OpenSession.comment.DoneTemplate = donecomment.template
+Localizer.OpenSession.comment.UnsupportedMediaTemplate = unsupportedmediatype.template
+Localizer.OpenSession.ErrorTemplate = sessionerror.template
+
+
 
 
 #
 # config used for OpenIndy
-ServletModule.OpenIndy.CommentTemplate=etc/open/comment.template
-ServletModule.OpenIndy.CommentDoneTemplate=etc/open/comment_done.template
-ServletModule.OpenIndy.CommentDupeTemplate=etc/open/comment_dupe.template
-ServletModule.OpenIndy.PostingTemplate=etc/open/posting.template
-ServletModule.OpenIndy.PostingDoneTemplate=etc/open/posting_done.template
-ServletModule.OpenIndy.PostingDupeTemplate=etc/open/posting_dupe.template
-ServletModule.OpenIndy.SearchResultsTemplate=etc/open/search_results.template
-ServletModule.OpenIndy.PrepareMailTemplate=etc/open/prepare_mail.template
-ServletModule.OpenIndy.SentMailTemplate=etc/open/sent_mail.template
+
+ServletModule.OpenIndy.CommentTemplate=comment.template
+ServletModule.OpenIndy.CommentDoneTemplate=comment_done.template
+ServletModule.OpenIndy.CommentDupeTemplate=comment_dupe.template
+ServletModule.OpenIndy.PostingTemplate=posting.template
+ServletModule.OpenIndy.PostingDoneTemplate=posting_done.template
+ServletModule.OpenIndy.PostingDupeTemplate=posting_dupe.template
+ServletModule.OpenIndy.PostingDisabledTemplate=posting_disabled.template
+ServletModule.OpenIndy.SearchResultsTemplate=search_results.template
+ServletModule.OpenIndy.PrepareMailTemplate=prepare_mail.template
+ServletModule.OpenIndy.SentMailTemplate=sent_mail.template
+ServletModule.OpenIndy.MailableArticleTemplate=email_article.template
 ServletModule.OpenIndy.EmailIsFrom=mailer@somewhere.org
 ServletModule.OpenIndy.SMTPServer=localhost
-ServletModule.OpenIndy.ErrorTemplate=etc/open/error.template
-ServletModule.OpenIndy.UserErrorTemplate=etc/open/usererror.template
+ServletModule.OpenIndy.ErrorTemplate=error.template
+ServletModule.OpenIndy.UserErrorTemplate=usererror.template
+
 
 
+Mir.TemplateDir=templates/admin/
 
-Mir.LoginTemplate=templates/admin/login.template
+Mir.LoginTemplate=login.template
+Mir.StartTemplate=start_admin.template
 
-Mir.ErrorTemplate=templates/error.template
-Mir.UserErrorTemplate=templates/usererror.template
+Mir.ErrorTemplate=error.template
+Mir.UserErrorTemplate=usererror.template
 
-ServletModule.Themen.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Themen.ObjektTemplate=templates/admin/topic.template
-ServletModule.Themen.ListTemplate=templates/admin/topiclist.template
+ServletModule.Themen.ConfirmTemplate=confirm.template
+ServletModule.Themen.ObjektTemplate=topic.template
+ServletModule.Themen.ListTemplate=topiclist.template
 
-ServletModule.LinksImcs.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.LinksImcs.ObjektTemplate=templates/admin/linksimcs.template
-ServletModule.LinksImcs.ListTemplate=templates/admin/linksimcslist.template
+ServletModule.LinksImcs.ConfirmTemplate=confirm.template
+ServletModule.LinksImcs.ObjektTemplate=linksimcs.template
+ServletModule.LinksImcs.ListTemplate=linksimcslist.template
 
-ServletModule.Users.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Users.ObjektTemplate=templates/admin/user.template
-ServletModule.Users.ListTemplate=templates/admin/userlist.template
+ServletModule.Users.ConfirmTemplate=confirm.template
+ServletModule.Users.ObjektTemplate=user.template
+ServletModule.Users.ListTemplate=userlist.template
 
-ServletModule.Images.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Images.ObjektTemplate=templates/admin/image.template
-ServletModule.Images.ListTemplate=templates/admin/imagelist.template
+ServletModule.Images.ConfirmTemplate=confirm.template
+ServletModule.Images.ObjektTemplate=image.template
+ServletModule.Images.ListTemplate=imagelist.template
 
-ServletModule.Audio.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Audio.ObjektTemplate=templates/admin/audio.template
-ServletModule.Audio.ListTemplate=templates/admin/audiolist.template
+ServletModule.Audio.ConfirmTemplate=confirm.template
+ServletModule.Audio.ObjektTemplate=audio.template
+ServletModule.Audio.ListTemplate=audiolist.template
 
-ServletModule.Video.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Video.ObjektTemplate=templates/admin/video.template
-ServletModule.Video.ListTemplate=templates/admin/videolist.template
+ServletModule.Video.ConfirmTemplate=confirm.template
+ServletModule.Video.ObjektTemplate=video.template
+ServletModule.Video.ListTemplate=videolist.template
 
-ServletModule.OtherMedia.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.OtherMedia.ObjektTemplate=templates/admin/media.template
-ServletModule.OtherMedia.ListTemplate=templates/admin/medialist.template
+ServletModule.OtherMedia.ConfirmTemplate=confirm.template
+ServletModule.OtherMedia.ObjektTemplate=media.template
+ServletModule.OtherMedia.ListTemplate=medialist.template
 
-ServletModule.Content.ConfirmTemplate=templates/admin/confirm.template
+ServletModule.Content.ConfirmTemplate=confirm.template
 ServletModule.Content.ObjektTemplate=content.template
 ServletModule.Content.ListTemplate=contentlist.template
 
-ServletModule.Mediafolder.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Mediafolder.ObjektTemplate=templates/admin/mediafolder.template
-ServletModule.Mediafolder.ListTemplate=templates/admin/mediafolderlist.template
+ServletModule.Mediafolder.ConfirmTemplate=confirm.template
+ServletModule.Mediafolder.ObjektTemplate=mediafolder.template
+ServletModule.Mediafolder.ListTemplate=mediafolderlist.template
 
 #
 # config for ServletModuleComment - browsing/editing/deleting comments
-ServletModule.Comment.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Comment.ObjektTemplate=templates/admin/comment.template
-ServletModule.Comment.ListTemplate=templates/admin/commentlist.template
+ServletModule.Comment.ConfirmTemplate=confirm.template
+ServletModule.Comment.ObjektTemplate=comment.template
+ServletModule.Comment.ListTemplate=commentlist.template
 
 #
 # config for ServletModuleHidden - lists all hidden articles of one month
-ServletModule.Hidden.ListTemplate=templates/admin/hiddenlist.template
+ServletModule.Hidden.ListTemplate=hiddenlist.template
 
 #
 # config for Breaking - browsing/editing/deleting breaking news
-ServletModule.Breaking.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Breaking.ObjektTemplate=templates/admin/breaking.template
-ServletModule.Breaking.ListTemplate=templates/admin/breakinglist.template
+ServletModule.Breaking.ConfirmTemplate=confirm.template
+ServletModule.Breaking.ObjektTemplate=breaking.template
+ServletModule.Breaking.ListTemplate=breakinglist.template
 
 #
 # config for Breaking - editing text files
-ServletModule.FileEdit.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.FileEdit.ObjektTemplate=templates/admin/fileedit.template
-ServletModule.FileEdit.ListTemplate=templates/admin/fileeditlist.template
+ServletModule.FileEdit.ConfirmTemplate=confirm.template
+ServletModule.FileEdit.ObjektTemplate=fileedit.template
+ServletModule.FileEdit.ListTemplate=fileeditlist.template
 
 #
 # config for messages - browsing/editing/deleting internal messages
-ServletModule.Messages.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Messages.ObjektTemplate=templates/admin/message.template
-ServletModule.Messages.ListTemplate=templates/admin/messagelist.template
+ServletModule.Messages.ConfirmTemplate=confirm.template
+ServletModule.Messages.ObjektTemplate=message.template
+ServletModule.Messages.ListTemplate=messagelist.template
 
 #
 # config for languages - browsing/editing/deleting languages
-ServletModule.Language.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.Language.ObjektTemplate=templates/admin/language.template
-ServletModule.Language.ListTemplate=templates/admin/languagelist.template
+ServletModule.Language.ConfirmTemplate=confirm.template
+ServletModule.Language.ObjektTemplate=language.template
+ServletModule.Language.ListTemplate=languagelist.template
 
 #
 # config for article type
-ServletModule.ArticleType.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.ArticleType.EditTemplate=templates/admin/articletype.template
-ServletModule.ArticleType.ListTemplate=templates/admin/articletypelist.template
+ServletModule.ArticleType.ConfirmTemplate=confirm.template
+ServletModule.ArticleType.EditTemplate=articletype.template
+ServletModule.ArticleType.ListTemplate=articletypelist.template
 
 #
 # config for comment status
-ServletModule.CommentStatus.ConfirmTemplate=templates/admin/confirm.template
-ServletModule.CommentStatus.EditTemplate=templates/admin/commentstatus.template
-ServletModule.CommentStatus.ListTemplate=templates/admin/commentstatuslist.template
+ServletModule.CommentStatus.ConfirmTemplate=confirm.template
+ServletModule.CommentStatus.EditTemplate=commentstatus.template
+ServletModule.CommentStatus.ListTemplate=commentstatuslist.template
 
 #
 # producer-related configs below
@@ -368,3 +511,8 @@ Producer.ExtLinkName=extlink.gif
 Producer.IntLinkName=intlink.gif
 Producer.MailLinkName=maillink.gif
 
+#objectstore
+StoreContainer.EntityDefaultSize=45
+StoreContainer.EntityListDefaultSize=15
+StorableObjectEntity.Entity.DefaultSize=5000
+StorableObjectEntity.EntityList.DefaultSize=400