l.s.w.v.VirtualHostConfig : class documentation

Part of lp.services.webapp.vhosts View In Hierarchy

The configuration of a single virtual host.
Method __init__ Undocumented
Static Method _hostnameStrToList Return list of hostname strings given a string of althostnames.
def __init__(self, hostname, althostnames, rooturl, use_https):
Undocumented
@staticmethod
def _hostnameStrToList(althostnames):

Return list of hostname strings given a string of althostnames.

This is to parse althostnames from the launchpad.conf file.

Basically, it's a comma separated list, but we're quite flexible about what is accepted. See the examples in the following doctest.

>>> thismethod = VirtualHostConfig._hostnameStrToList
>>> thismethod('foo')
['foo']
>>> thismethod('foo,bar, baz')
['foo', 'bar', 'baz']
>>> thismethod('foo,,bar, ,baz ,')
['foo', 'bar', 'baz']
>>> thismethod('')
[]
>>> thismethod(' ')
[]
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.