Package common :: Module xmpp_stringprep :: Class NamePrep
[hide private]
[frames] | no frames]

Class NamePrep

Implements preparation of internationalized domain names.

This class implements preparing internationalized domain names using the rules defined in RFC 3491, section 4 (Conversion operations).

We do not perform step 4 since we deal with unicode representations of domain names and do not convert from or to ASCII representations using punycode encoding. When such a conversion is needed, the L{idna} standard library provides the C{ToUnicode()} and C{ToASCII()} functions. Note that L{idna} itself assumes UseSTD3ASCIIRules to be false.

The following steps are performed by C{prepare()}:

Instance Methods [hide private]
 
check_prohibiteds(self, string)
 
nameprep(self, label)
 
prepare(self, string)
Class Variables [hide private]
  n = 127
  prohibiteds = [u'', u'', u'', u'', u'', u'', u'', u'',...
Method Details [hide private]

check_prohibiteds(self, string)

 

nameprep(self, label)

 

prepare(self, string)

 

Class Variable Details [hide private]

n

Value:
127

prohibiteds

Value:
[u'',
 u'',
 u'',
 u'',
 u'',
 u'',
 u'',
 u'',
...