Package Products :: Package zms :: Module ZMSMetadictManager :: Class ZMSMetadictManager
[frames] | no frames]

Class ZMSMetadictManager

Instance Methods
 
importMetadictXml(self, xml, REQUEST=None, zms_system=0, createIfNotExists=1)
 
getMetadictAttrs(self, meta_type=None)
 
getMetadictAttr(self, key)
 
delMetadictAttr(self, id)
string
setMetadictAttr(self, oldId, newId, newAcquired, newName='', newType='', newMandatory=0, newMultilang=1, newRepetitive=0, newCustom='', newKeys=[], zms_system=0)
Set/add meta-attribute with specified values.
 
moveMetadictAttr(self, attr, pos)
 
manage_changeMetaProperties(self, btn, lang, REQUEST, RESPONSE=None)
MetadictManager.manage_changeMetaProperties
Method Details

setMetadictAttr(self, oldId, newId, newAcquired, newName='', newType='', newMandatory=0, newMultilang=1, newRepetitive=0, newCustom='', newKeys=[], zms_system=0)

 

Set/add meta-attribute with specified values.

Parameters:
  • oldId (string) - Old id
  • newId (string) - New id
  • newAcquired (int: 0 or 1) - Acquired
  • newName (string) - (Display-)Name
  • newType (string) - Type
Returns: string
New id