Logo Search packages:      
Sourcecode: zope-backtalk version File versions

PUT_factory.py

from string import find, lower
from Products.BackTalk.BackTalk import BackTalkDocument

def PUT_factory(self, name, typ, body):
    if find(lower(typ), 'text') != -1:
        return BackTalkDocument(body, __name__=name)

Generated by  Doxygen 1.6.0   Back to index