Submitted by : nd51 at: 2006-07-04T06:20:45+00:00 (11 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

Plone 2.5 looks to have broken ZWiki's metadata tab. ZWiki says 'page not found' when you click the metadata tab.

Platform Debian This works on python2.3.5/zope2.8.5/plone2.1.3 it breaks on python2.4.3/zope2.9.3/plone2.5

plone.demo.zwiki.org --EmmaLaurijssens, Wed, 05 Jul 2006 07:27:38 -0700 reply

On plone.demo.zwiki.org I get a login screen when I click on the metadata tab. The error message is actually 'Unauthorized: Not authorized to access binding: context'.

same for me --finrod, Tue, 25 Jul 2006 10:10:32 -0700 reply

I have the same issue. Here's my config:

Plone 2.5, Zope (Zope 2.9.2, python 2.4.2, win32), Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)]?, PIL 1.1.5

finrod

plone.demo.zwiki.org --simon, Wed, 02 Aug 2006 17:40:59 -0700 reply

Frank: when do you see a metadata tab at plone.demo.zwiki.org ? I see it only if I log in.

metadata tab page not found with 2.5 --simon, Wed, 02 Aug 2006 17:47:22 -0700 reply

I'll need someone with plone 2.5 to investigate this or contact me on IRC. As a matter of interest does un/reinstalling Zwiki in the site fix it ?

metadata tab page not found with 2.5 --Richard Smith, Wed, 02 Aug 2006 21:21:35 -0700 reply

I just tried it with Plone 2.5. Error message as reported. Tried un/reinstalling Zwiki .55 - no change.

Here is the error: Our apologies... The item you requested does not exist on this server or cannot be served.

Please double check the web address or use the search function on this page to find what you are looking for.

If you know you have the correct web address but are encountering an error, please contact the Site Administration.

Thank you.

404 Not Found

Demopage created --EmmaLaurijssens, Wed, 02 Aug 2006 23:36:55 -0700 reply

I've created a demopage on plone.demo.zwiki.org, http://plone.demo.zwiki.org/MetaDataTabBroken. On the frontpage, the tab is missing, but on any other page, the tab is there.

But this poses an interesting question: should the tab be there when you're not logged in?

metadata tab --nd51, Thu, 03 Aug 2006 01:41:42 -0700 reply

The metadata tab is not there when you're not logged in, because that is the way Plone normally works. It probably should not be there when you're not logged in, unless you're allowing anonymous editing of pages and even then it doesn't make total sense or fit in with the existing model in Plone. The metadata tab has been renamed "Properties" in , I think Plone 2.1, because it actually allows more to be set than just metadata.

I suspect this may be broken because it relies on stuff in an older version of Plone.

It may be simplest to just get rid of that tab entirely. Certainly our users are not setting metadata of Wiki pages.

metadata tab --simon, Thu, 03 Aug 2006 08:08:53 -0700 reply

With Richard's help, I see that the /metadata_edit_form url has changed to /properties. So the workaround is to change this in the metadata action in portal_types -> Wiki Page -> Actions.

Also I see that (for wiki pages) the metadata tab's visibility is controlled by 'Zwiki: Edit pages' permission. So that explains that.

If we want to keep the metadata tab for wiki pages, it means enhancing the Zwiki installation code - it needs to check the plone version and install the appropriate action - and telling people to re-install Zwiki when they upgrade to Plone 2.5.

Personally I'm all for hiding the darn thing by default. Who out there uses the metadata/properties tab on wiki pages ?

(Reviews previous discussion at http://zwiki.org/1140HowShouldWikiPagesSupportCmfPloneMetadata)

fixed for 0.56 --simon, Sat, 02 Sep 2006 10:44:33 -0700 reply

Status: open => closed

Phew. This was a time eater. Here's how I resolved it:

Upgrade notes

    Wiki pages in Plone (or CMF) will no longer show the metadata tab;
    if you are upgrading, be sure to re-install Zwiki in your plone
    site's Add/Remove Products to make the tab go away.

    If you do need the metadata/properties tab, you can enable it by
    checking its visible box in ZMI -> portal_types -> Wiki Page ->
    actions (you'll need to do this again any time you re-install
    Zwiki in the site). Also, if you have upgraded Plone past 2.5 be
    sure to re-install Zwiki once to convert the old metadata tab to a
    new-style properties tab.

damn --simon, Sat, 02 Sep 2006 12:28:12 -0700 reply

After further testing in plone 2.5, it appears that we just can't support the metadata tab there; the old metadata_edit_form used by non-Archetypes is gone. So I'm just dropping it entirely. This work on compatibility and upgrades was a waste of time!

update --simon, Sat, 02 Sep 2006 13:33:40 -0700 reply

The old form is gone only if you migrate a plone site to some 2.5.x versions; this will be fixed for 2.5.1. So metadata form support could be revisited. But I have so moved on.

effort for a "Plone Keywords" plugin --Kees Hink, Tue, 17 Jun 2008 08:50:38 -0700 reply

I am creating a plugin that adds a "Subject" field for use with Plone.

My efforts so far have yielded - an extra form on the edit tab where you can select a keyword from those available in the site - you can search the catalog (Plone's portal catalog) for specific keywords, and you get the keywords in the brains

The first TODO's, the first one is rather critical:

I'd be happy to put my code some place public, and would especially enjoy any hints about the catalog issue. Is anyone here also interested in getting this thing to work?

effort for a "Plone Keywords" plugin --betabug, Wed, 18 Jun 2008 07:56:58 -0700 reply

Hi Kees! Wonderful, code! First off, if you need help, join us on #zwiki on irc.freenode.net - I'm online most working days from ~ 9:00-18:00 GMT+2. I would have to look at your code to see why the catalog doesn't get updated, but I guess that probably the edit method checks if anything has changed before reindexing - and maybe it doesn't know about your "subject" field, so it doesn't "see" that change.

To make your code public, a public darcs repository would be preferred - you don't need darcs installed on a server to do this, just create your darcs repo locally and mirror it on the server where apache can serve it as static files. I think CodeRepos has a bit of info about getting started with darcs.

effort for a "Plone Keywords" plugin --Kees Hink, Mon, 23 Jun 2008 00:59:20 -0700 reply

I published the code at http://www.nb72.nl/kees/ZWiki/. (This server has a slow upload connection, sorry.) If i did it well, i guess darcs should be able to tell you that the only changes are in Defaults.py, skins/zwiki/editform.pt, and of course the new directory plugins/keyword.

catalog update after Subject field change --Kees Hink, Mon, 23 Jun 2008 01:51:39 -0700 reply

The catalog only gets updated when the "Save" button is used on the edit form. Currently the Subject field is a different form on the same page (to keep it separate from the core ZWiki, like a true plugin). So after modifying the keywords, you still have to click "Save".