Package StagingAddOn :: Module patches
[hide private]
[frames] | no frames]

Module patches



Define StagingAddOn monkey-patches for CMFUid and Archetypes.

$Id: patches.py 29050 2006-08-21 10:18:36Z dbaty $



Functions [hide private]
  manage_afterClone(self, item)
When an item is copy and pasted, we have to make sure that it does not contain any staging informations
  queryBrain(self, uid, default=None, extra_criteria=None)
See IUniqueIdBrainQuery.
  _queryBrain(self, uid, searchMethodName, default=None, extra_criteria=None)
This helper method does the "hard work" of querying the catalog and interpreting the results.
  interface_queryBrain(self, uid, default=None, extra_criteria=None)

Variables [hide private]
  addendum = """ 'extra_criteria' is transferred to the catalog. ...

Function Details [hide private]

manage_afterClone(self, item)

 

When an item is copy and pasted, we have to make sure that it does not contain any staging informations

See http://plone.org/products/stagingaddon/issues/7

queryBrain(self, uid, default=None, extra_criteria=None)

 
See IUniqueIdBrainQuery.

_queryBrain(self, uid, searchMethodName, default=None, extra_criteria=None)

 

This helper method does the "hard work" of querying the catalog and interpreting the results.

'extra_criteria' is transferred to the catalog. For example, it can be used in Plone to disable the (standard) filtering of inactive items, with 'extra_criteria={'show_inactive': True}'.

interface_queryBrain(self, uid, default=None, extra_criteria=None)

 
None

Variables Details [hide private]

addendum

None
Value:
"""
'extra_criteria' is transferred to the catalog. For example, it can be
used in Plone to disable the (standard) filtering of inactive items,
with 'extra_criteria={'show_inactive': True}'.
"""