r13656 - in Products.ATVocabularyManager/trunk: . Products/ATVocabularyManager

"Wouter Vanden Hove" <[email protected]> Sat, 28 May 2011 15:22:59 +0000
Newsgroups gmane.comp.web.zope.plone.archetypes.cvs
Message-ID <[email protected]>
Author: WouterVH
Date: Sat May 28 15:22:59 2011
New Revision: 13656

Modified:
   Products.ATVocabularyManager/trunk/CHANGES.txt
   Products.ATVocabularyManager/trunk/Products/ATVocabularyManager/namedvocabulary.py
Log:
- Avoid breaking the import of *.zexp-files when an vocabularies don't exist
  anymore, but instantiated object still exist in the import-file.
 [WouterVH]

Modified: Products.ATVocabularyManager/trunk/CHANGES.txt
==============================================================================
--- Products.ATVocabularyManager/trunk/CHANGES.txt	(original)
+++ Products.ATVocabularyManager/trunk/CHANGES.txt	Sat May 28 15:22:59 2011
@@ -5,7 +5,9 @@
 1.6.2 (unreleased)
 ------------------
 
-- Nothing changed yet.
+- Avoid breaking the import of *.zexp-files when an vocabularies don't exist
+  anymore, but instantiated object still exist in the import-file.
+  [WouterVH]
 
 
 1.6.1 (2011-05-02)

Modified: Products.ATVocabularyManager/trunk/Products/ATVocabularyManager/namedvocabulary.py
==============================================================================
--- Products.ATVocabularyManager/trunk/Products/ATVocabularyManager/namedvocabulary.py	(original)
+++ Products.ATVocabularyManager/trunk/Products/ATVocabularyManager/namedvocabulary.py	Sat May 28 15:22:59 2011
@@ -31,7 +31,7 @@
     # Add a class variable to avoid migration issues
     display_parents = 'tree'
 
-    def __init__(self, vocabname, display_parents='tree'):
+    def __init__(self, vocabname=None, display_parents='tree'):
         self.vocab_name = vocabname
         self.display_parents = display_parents
 

------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1