Table of Contents

Module: names ./src/peak/naming/names.py
Imported modules   
from __future__ import generators
from arithmetic import *
from interfaces import *
from peak.api import *
from peak.binding.interfaces import IComponentKey
from peak.binding.once import Make
from peak.util.imports import importObject
import re
from syntax import *
from types import StringTypes
from urllib import unquote
Functions   
crossesBoundaries
isBoundary
toName
  crossesBoundaries 
crossesBoundaries ( name )

  isBoundary 
isBoundary ( name )

  toName 
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.

Exceptions   
exceptions.InvalidName( aName )
Classes   

AbstractName

CompositeName

A name whose parts may belong to different naming systems

CompoundName

A multi-part name with all parts in the same naming system

Indirect

Indirect lookup via another IComponentKey

LinkRef

Symbolic link

NNS_Reference

Next Naming System reference

NameClass

Support for name subclasses to adapt from strings

Reference


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:05 2024 by HappyDoc version 2.1