[Zope3-dev] Re: zwiki and skin
Derrick Hudson
dman at dman13.dyndns.org
Mon Feb 21 21:32:01 EST 2005
On Sun, Feb 20, 2005 at 04:21:44PM +0000, jürgen Kartnaller wrote:
| Derrick Hudson wrote:
| >On Sun, Feb 20, 2005 at 09:52:33AM +0000, jürgen Kartnaller wrote:
| >| Derrick Hudson wrote:
| >| >On Sat, Feb 19, 2005 at 03:07:57PM +0000, jürgen Kartnaller wrote:
| >| >| Jim Fulton wrote:
| >| >| >jürgen Kartnaller wrote:
| >| >| >
| >| >| >>There is a problem in the trunk with the wiki skin.
| >| >| >>If the wiki skin is selected you get an empty page.
| >| >| >>
| >| >| >>This happens if you don't specify the default layer for a skin.
| >| >| >
| >| >| >A skin has only those layers it says it has.
| >| >|
| >| >| But then, why is it not possible to use the wiki skin like :
| >| >|
| >| >| http://localhost:8080/++skin++wiki
| >| >
| >| >You can. However the root object isn't a Wiki or a WikiPage, so the
| >| >wiki skin doesn't provide a very useful view of that object. The wiki
| >| >skin is only intended for displaying the objects defined by the wiki.
| >| >It is not intended as an alternative general-purpose ZMI skin.
| >|
| >| Sure it makes no sense and is not usefull but it also do not work inside
| >| a wiki folder.
| >|
| >| This is the original entry for the wiki skin :
| >| <browser:skin name="wiki" layers="wiki zope.app.rotterdam.rotterdam ">
| >| http://localhost:8080/++skin++wiki/wiki/@@toc.html ---> empty page
| >|
| >| The I change it :
| >| <browser:skin name="wiki" layers="wiki zope.app.rotterdam.rotterdam
| >| default">
| >| http://localhost:8080/++skin++wiki/wiki/@@toc.html ---> wiki front page
| >
| >Hmm. I will look into this. I didn't write the wiki, but I have been
| >using it for some time now.
|
| It is not only related to the wiki it's the same for all skins (tracker,
| my own skins, ...).
Here is what I discovered :
$ svn diff -rPREV:HEAD src/zwiki/browser/skin/configure.zcml Index: src/zwiki/browser/skin/configure.zcml
===================================================================
--- src/zwiki/browser/skin/configure.zcml (revision 27628)
+++ src/zwiki/browser/skin/configure.zcml (revision 29237)
@@ -4,7 +4,7 @@
i18n_domain="zope"
>
<browser:layer name="wiki" />
-<browser:skin name="wiki" layers="wiki rotterdam default" />
+<browser:skin name="wiki" layers="wiki zope.app.rotterdam.rotterdam " />
The version of the wiki that I am using includes "default" in its
layers. Since Stephan made that change ('svn blame'), I think we
should ask him if removing default was intended or an oversight. I
don't actually know what the default layer contains.
-D
--
What can I do with Python that I can't do with C#?
You can go home on time at the end of the day.
-- Daniel Klein
www: http://dman13.dyndns.org/~dman/ jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope3-dev/attachments/20050221/67ae6cf4/attachment.bin
More information about the Zope3-dev
mailing list