#33 — Preserve order in VDEX vocabularies.

by Jean Jordaan last modified Jan 08, 2009 01:48 PM
State Resolved
Version: 1.1
Area Functionality
Issue type Patch
Severity Medium
Submitted by Jean Jordaan
Submitted on Jan 19, 2007
Responsible Jens W. Klein
Target release:


VdexTermHandlerMixin.getVocabularyDict uses nested dicts to represent the vocabulary. These are also used when building the DisplayLists for selection widgets. Consequently the order of terms is not preserved. Here's a patch that uses an ordered dictionary implementation from
  http://aspn.activestate.com/[…]/496761
to keep the order.

There are more recipes at:
  http://aspn.activestate.com/[…]/438823
  http://aspn.activestate.com/[…]/107747
Attached:
ATVocabularyManager-trunk-OrderedDictionary.patch — differences between files, 1 kB (1673 bytes)
Added by Jens W. Klein on Mar 02, 2007 08:54 AM
Issue state: unconfirmedresolved
Responsible manager: (UNASSIGNED)jensens
added preserve-order of vdex, but by using Products.Archetypes.utils.OrderdDict

No responses can be added.