source: products/quintagroup.mobileextender/trunk/quintagroup/mobileextender/handlers.py @ 777

Last change on this file since 777 was 777, checked in by chervol, 14 years ago

new tag 0.5.2

File size: 298 bytes
Line 
1from zope.interface import alsoProvides
2from interfaces import IMobile
3
4def markAsMobile(object, event):
5    mobfield = object.Schema().get('mobile_content',None)
6    if mobfield and mobfield.get(object):
7        alsoProvides(object, IMobile)
8        object.reindexObject(idxs=['object_provides'])
Note: See TracBrowser for help on using the repository browser.