Re: creating a metadata set

Guido Wesdorp <[email protected]>
Newsgroups gmane.comp.web.zope.silva.devel
Message-ID <[email protected]>
Andy wrote:

>Hi All,
>
>I'm trying to create a new metadata.  I want to extend Silva Documents so they 
>can be integrated into our knowledgebase.  I've created the metadata set 
>through the metadata service in the zmi.  I added the metadata elements to 
>the set, and configured their formulator fields.  I then made the set 
>editable, and added the content type -> metadata mapping for Silva Document 
>Version.  
>
>  
>
While it should be entirely possible to add a metadata set this way, I 
would advise to create one on the filesystem, like we do in the Silva 
core (see doc/silva-extra.xml for an example, and install.py for an 
example of how to load it into the ZODB), this greatly improves 
management (allows you to do checkins into a revision control system, 
etc.)...

>The metadata set displays correct in the properties tab, but it doesn't save 
>what I enter  (however the silva-content and silva-extra sets do save).  The 
>fields I'm using are MultiListFields, indexed with a type of FieldIndex.  
>Ideally, I want to pull the [Items] for the fields from our knowledgebase 
>(which works), but whether the items are dynamic or entered on the 'Edit' 
>tab, Silva doesn't save the metadata.
>
>I've also tried creating a metadata set with just a StringField.  That also 
>doesn't save.
>
>  
>
Hmmm... Weird, I created a couple of sets and they worked just fine. Of 
course I built them in XML on the filesystem, perhaps (although 
unlikely) that gives some extra options or something?

>The catalog service says the indexes for my metadata set are in the catalog.
>
>Any ideas why my set won't save?
>
>  
>
None whatsoever, however I'm not all that familiar with the system, 
especially not concerning creation via the ZMI. Perhaps you can try to 
create one on the fs and send us the XML if the problem persists? 
(Another option would obviously be that someone with some more insight 
would answer this question... ;)

Cheers,

Guido
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.