本文整理匯總了Python中plone.app.contenttypes.behaviors.collection.ICollection.selectedViewFields方法的典型用法代碼示例。如果您正苦於以下問題:Python ICollection.selectedViewFields方法的具體用法?Python ICollection.selectedViewFields怎麽用?Python ICollection.selectedViewFields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類plone.app.contenttypes.behaviors.collection.ICollection
的用法示例。
在下文中一共展示了ICollection.selectedViewFields方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: selectedViewFields
# 需要導入模塊: from plone.app.contenttypes.behaviors.collection import ICollection [as 別名]
# 或者: from plone.app.contenttypes.behaviors.collection.ICollection import selectedViewFields [as 別名]
def selectedViewFields(self):
"""Returns a list of all metadata fields from the catalog that were
selected.
"""
context = aq_inner(self.context)
wrapped = ICollection(context)
return wrapped.selectedViewFields()
示例2: tabular_fields
# 需要導入模塊: from plone.app.contenttypes.behaviors.collection import ICollection [as 別名]
# 或者: from plone.app.contenttypes.behaviors.collection.ICollection import selectedViewFields [as 別名]
def tabular_fields(self):
"""Returns a list of all metadata fields from the catalog that were
selected.
"""
context = aq_inner(self.context)
wrapped = ICollection(context)
fields = wrapped.selectedViewFields()
fields = [field[0] for field in fields]
return fields