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

setObjectAttrs.py

import string

def setObjectAttrs(self, object, attrs):
    attrList = []
    for k in attrs.keys():
        if hasattr(object, k):
            setattr(object, k, attrs[k])
            attrList.append(k)

    return "Updated attributes " + string.join(attrList, ',') + "." + " Orig attrs: " + `attrs` + "."





            
            

    

Generated by  Doxygen 1.6.0   Back to index