twisted / mantissa

Divmod Mantissa is an application server with a web interface built using Axiom and Nevow.
MIT License
5 stars 10 forks source link

`xmantissa.web.SiteConfiguration` doesn't work with `StringEndpointPort` #54

Open mithrandi opened 8 years ago

mithrandi commented 8 years ago

SiteConfiguration specifically looks for TCPPort to find an unsecured port, and SSLPort to find a secured port. If you only have StringEndpointPorts in your site, it'll never be able to generate absolute URIs.

glyph commented 8 years ago

This is kind of unsolvable in the general case; StringEndpoint may well result in something that there's no way to generate a proper HTTP URL for.

glyph commented 8 years ago

Instead of inferring from a TCPPort object, perhaps we should have an explicit NetLoc object?

mithrandi commented 6 years ago

See #67.