version 1.1, 2004/02/05 20:31:42
|
version 1.4, 2012/09/03 13:06:11
|
Line 33 class ZSQLMetadataMapping(SimpleItem):
|
Line 33 class ZSQLMetadataMapping(SimpleItem):
|
|
|
def getValue(self,fieldName): |
def getValue(self,fieldName): |
"""get md value""" |
"""get md value""" |
|
try: |
return getattr(self,"md_"+fieldName) |
return getattr(self,"md_"+fieldName) |
|
except: |
|
return "" |
|
|
def generateMappingHash(self): |
def generateMappingHash(self): |
"""erzeugen des Hash""" |
"""erzeugen des Hash""" |
Line 63 class ZSQLMetadataMapping(SimpleItem):
|
Line 66 class ZSQLMetadataMapping(SimpleItem):
|
|
|
|
|
def manage_addZSQLMetadataMappingForm(self): |
def manage_addZSQLMetadataMappingForm(self): |
"""interface for adding the OSAS_root""" |
"""interface for adding the Metadatamapping""" |
pt=PageTemplateFile('Products/ZSQLExtend/AddZSQLMetadataMapping.zpt').__of__(self) |
pt=PageTemplateFile('Products/ZSQLExtend/AddZSQLMetadataMapping.zpt').__of__(self) |
return pt() |
return pt() |
|
|
def manage_addZSQLMetadataMapping(self,idOfObject,titleOfObject,RESPONSE=None): |
def manage_addZSQLMetadataMapping(self,idOfObject,titleOfObject,RESPONSE=None): |
"""add the OSAS_root""" |
"""add the Metadatampapping""" |
|
|
argList={} |
argList={} |
for arg in self.REQUEST.form.keys(): |
for arg in self.REQUEST.form.keys(): |
Line 82 def manage_addZSQLMetadataMapping(self,i
|
Line 85 def manage_addZSQLMetadataMapping(self,i
|
|
|
|
|
class ZSQLMetadataMappingRoot(Persistent, Implicit, Folder): |
class ZSQLMetadataMappingRoot(Persistent, Implicit, Folder): |
"""Root ordner für Metadaten set""" |
"""Root ordner fuer Metadaten set""" |
|
|
meta_type='ZSQLMetadataMappingRoot' |
meta_type='ZSQLMetadataMappingRoot' |
|
|
Line 142 class ZSQLMetadataMappingRoot(Persistent
|
Line 145 class ZSQLMetadataMappingRoot(Persistent
|
return id |
return id |
|
|
def getStoredTypes(self): |
def getStoredTypes(self): |
"""Gebe gespeicherte typen zurück""" |
"""Gebe gespeicherte typen zurueck""" |
|
|
types=[] |
types=[] |
for dict in self.__dict__: |
for dict in self.__dict__: |
Line 180 def manage_addZSQLMetadataMappingRootFor
|
Line 183 def manage_addZSQLMetadataMappingRootFor
|
return pt() |
return pt() |
|
|
def manage_addZSQLMetadataMappingRoot(self,id,title,fields,RESPONSE=None): |
def manage_addZSQLMetadataMappingRoot(self,id,title,fields,RESPONSE=None): |
"""add the OSAS_root""" |
"""add the mapping root""" |
newObj=ZSQLMetadataMappingRoot(id,title,fields) |
newObj=ZSQLMetadataMappingRoot(id,title,fields) |
self._setObject(id,newObj) |
self._setObject(id,newObj) |
if RESPONSE is not None: |
if RESPONSE is not None: |