toName (
aName,
nameClass=CompoundName,
acceptURL=1,
)
Convert aName to a Name object
If aName is already a Name , return it. If it's a string or
Unicode object, attempt to parse it. Returns an OpaqueURL if
acceptURL is set and the string is a URL (per RFC 1738). Otherwise,
use nameClass to construct a Name object from the string.
If aName is neither a Name nor a string/Unicode object, an
exceptions.InvalidName is raised.
|