'SecurityOptions.allowTypes(typeString): Allow a particular type, by its
name.'

def allowTypes(self, *types):

    for typ in types:
        if isinstance(typ, unicode):
            typ = typ.encode('utf-8')
        if (not isinstance(typ, bytes)):
            typ = qual(typ)
        self.allowedTypes[typ] = 1
