Commit 0c7c3af9 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Add catalogTranslationList and deleteTranslationList.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4809 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39135e58
......@@ -668,6 +668,20 @@ class ZCatalog(Folder, Persistent, Implicit):
destination_catalog.deleteRecordedObjectList([uid]) # Prevent this object from being replayed.
destination_catalog.uncatalogObject(uid)
def catalogTranslationList(self, object_list, sql_catalog_id=None):
"""Catalog translations.
"""
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
catalog.catalogTranslationList(object_list)
def deleteTranslationList(self, sql_catalog_id=None):
"""Delete translations.
"""
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
catalog.deleteTranslationList()
def uniqueValuesFor(self, name, sql_catalog_id=None):
""" returns the unique values for a given FieldIndex """
catalog = self.getSQLCatalog(sql_catalog_id)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment