def setField(self,name):
        """ Create if nessessary or get the existing datafield object with name 'name' and return it. """
        f=self.getField(name)
        if f: return f
        return self.addChild(node=DataField(name))
 Create if nessessary or get the existing datafield object with name 'name' and return it. 
chrome-cordova/gcmServer/xmpp/protocol.py