On Mon, 2006-01-16 at 18:39 +0100, Joern Nettingsmeier wrote:
> another small gotcha:
> 
> when i try to create a new language version of a document i just created
> after applying your patch, i get this (url is
> http://localhost:8888/UniDuE-Design/authoring/index.html?&lenya.usecase=site.createLanguage&lenya.exitUsecase=tab.overview&;):
> 

There is a known bug about creation of new language versions:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36960

As a temporary workaround, you could apply the following diff:

Index: src/java/org/apache/lenya/cms/site/usecases/CreateLanguage.java
===================================================================
--- src/java/org/apache/lenya/cms/site/usecases/CreateLanguage.java
(revision 369707)
+++ src/java/org/apache/lenya/cms/site/usecases/CreateLanguage.java
(working copy)
@@ -142,4 +142,15 @@
         return this.documentTypeName;
     }

+    /**
+     * Get the visibility attribute.
+     */
+    protected boolean getVisibleInNav() {
+        // FIXME: should not need this method because the visibility
+        // should be stored only once for all language versions of
+        // a document.
+        // Could be fixed by using the new repo interfaces
+        // (Always return true as a workaround)
+        return true;
+    }
 }

Would it make sense to commit this to svn?

Josias

> Document ID:          [<-- this is not a form field, it is blank]
> (No whitespace, no special characters)
> Navigation Title*:    
> Language*:    
> Creator:      
> Subject:      
> Publisher:    
> Date:         2006-01-16 06:28:53
> Rights:       
> 
> after hitting "create" (url
> http://localhost:8888/UniDuE-Design/authoring/index.html?lenya.continuation=6b1380632e0f516e31353412632b2264315a6468&lenya.usecase=site.createLanguage&title=Home&language=en&creator=webmaster&subject=Home+page+of+the+design+template&publisher=Uni+Duisburg-Essen&rights=All+rights+reserved.&submit=Create),
> it barfs:
> 
> Error calling continuation at
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecases.js:251:-1
> at <map:call> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecase.xmap:90:39
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecase.xmap:56:128
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/global-sitemap.xmap:299:105
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/sitemap.xmap:536:106
> 
> org.apache.cocoon.ProcessingException: Error calling continuation at
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecases.js:251:-1
> at <map:call> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecases/usecase.xmap:90:39
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/lenya/usecase.xmap:56:128
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/global-sitemap.xmap:299:105
> at <map:mount> -
> file:/local/lenya-build/lenya_1_4_X/build/lenya/webapp/sitemap.xmap:536:106
> 
> 
> Andreas Hartmann wrote:
> > Joern Nettingsmeier wrote:
> > 
> > [...]
> > 
> >> second try: i start with an empty publication and open it. lenya
> >> correctly detects that "/index" does not exist and allows me to create
> >> it with this url:
> >>
> >> http://localhost:8888/UniDuE-Design/authoring/index.html?lenya.usecase=site.create&documentId=/index
> >>
> >>
> >> but when i submit the form, it complains "The document ID may not
> >> contain any special characters." which is a bugger, since i cannot
> >> change this field (it is not even a form element, only text).
> > 
> > This was a bug, it should be fixed now. Thanks for reporting!
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to