Part of lp.services.webapp.vhosts View In Hierarchy
Method | __init__ | Undocumented |
Static Method | _hostnameStrToList | Return list of hostname strings given a string of 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(' ') []