[Zope-CMF] Plone - Metadata Subject list out of order

alan runyan alan runyan" <runyaga@runyaga.com
Tue, 20 Aug 2002 18:38:41 -0500


Brad,

global contentSubjects here/Subject;
global allowedSubjects
python:container.portal_metadata.listAllowedSubjects(here);
global previousSubjects
python:container.portal_catalog.uniqueValuesFor('Subject');

tal:repeat="subject python:here.unique(allowedSubjects+previousSubjects)"

unique is timbots unique sequence script.  its a python script sitting in
plone_scripts
if you just said tal:repeat=subjec allowedSubjects it would act like normal
CMF.

~runyaga


----- Original Message -----
From: "Brad Clements" <bkc@murkworks.com>
To: <zope-cmf@zope.org>
Sent: Tuesday, August 20, 2002 6:06 PM
Subject: [Zope-CMF] Plone - Metadata Subject list out of order


> Just trying out alpha3 on CMF 1.3
>
> One thing I noticed is that, in stock CMF 1.3 the Subject list stays in
the order in which
> the vocabulary list box shows it.
>
> But in Plone, the metadata-edit subject list seems to be in a weird order
.. like it's
> dumped from .keys() or something.
>
> Is this a javascript issue or in the server. I'd like to "fix it", so that
it's either in the list
> order as specified, or in alphabetical order.
>
> Brad Clements,                bkc@murkworks.com   (315)268-1000
> http://www.murkworks.com                          (315)268-9812 Fax
> AOL-IM: BKClements
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>