You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/11/02 14:33:54 UTC
svn commit: r330248 -
/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java
Author: michi
Date: Wed Nov 2 05:33:50 2005
New Revision: 330248
URL: http://svn.apache.org/viewcvs?rev=330248&view=rev
Log:
getChildFileName fixed such that one is forced to upgrade the creators because of the DocumentIdToPathMapper bug
Modified:
lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java
Modified: lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java
URL: http://svn.apache.org/viewcvs/lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java?rev=330248&r1=330247&r2=330248&view=diff
==============================================================================
--- lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java (original)
+++ lenya/branches/BRANCH_1_2_X/src/webapp/lenya/pubs/blog/java/src/org/apache/lenya/cms/authoring/NewBlogEntryCreator.java Wed Nov 2 05:33:50 2005
@@ -36,6 +36,11 @@
import java.util.Map;
import java.util.Date;
+import org.apache.lenya.cms.publication.Publication;
+
+/**
+ * Create a blog entry
+ */
public class NewBlogEntryCreator extends DefaultBranchCreator {
private static Category log = Category.getInstance(NewBlogEntryCreator.class);
@@ -65,9 +70,9 @@
/**
*
*/
- protected String getChildFileName(File parentDir, String childId, String language) {
- String newFilename = parentDir + File.separator + "entries" + File.separator + year + File.separator + month + "/" + day + "/" + childId + "/index.xml";
- log.debug(".getChildFileName(): " + newFilename);
+ protected String getChildFileName(Publication publication, String area, String parentId, String childId, String language) {
+ String newFilename = publication.getPathMapper().getFile(publication, area, "eentries" + File.separator + year + File.separator + month + "/" + day + "/" + childId + "/index", null).getAbsolutePath();
+ log.debug(newFilename);
return newFilename;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org