Re: ArchGenXML: issues/32 patch

Reinout van Rees <[email protected]> Tue, 11 Jul 2006 21:13:59 +0200
Newsgroups gmane.comp.web.zope.plone.archetypes.devel
Organization Zest software
Message-ID <[email protected]>
Bill de hÓra wrote:
> Hi,
> 
> I just submited a patch that stop the insertion of a term called 
> "default" against this ticket, "ATVocabulary vocabularies generated in 
> code get unwanted default entry":
> 
> http://plone.org/products/archgenxml/issues/32
> 
> the insertion is caused by this piece of code in template/Install.py
> 
> [[[ 
> atvm[vocabname].invokeFactory(vocabmap[vocabname][1],'default')
> atvm[vocabname]['default'].setTitle('Default term, replace it by your 
> own stuff')
> ]]]
> 
> that arrives in the product's Install.py and gets run against each vocab 
> unless it is a VdexVocabulary.
> 
> As far as I can tell, ATVocabularyManager doesn't support marking a 
> vocabulary with a default term. If default term support ever lands 
> ATVocabularyManager a "vocabulary_default_term" can be added to support it.

I just applied the patch. Start screaming if the patch breaks something.

Reinout

-- 
Reinout van Rees                       r.van.rees @ zestsoftware.nl
http://vanrees.org/weblog/                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers build targets."



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642