You are not logged in Log in Join
You are here: Home » Members » rbickers » SSLAbsoluteURL » swpackage_view

Log in
Name

Password

 
 

SSLAbsoluteURL

This product changes the behavior of absolute_url() so that it looks for a boolean property called SSL and changes the http prefix to https if it is set, or https to http if it is not set. The property is acquired, so if you want an entire tree to be SSL protected, a single SSL property in the top folder will do the job.

If the boolean property SSLForceOn is set on, all acquired SSL settings are ignored and all URL references will use SSL (https). If the boolean property SSLForceOff is set on, all acquired SSL settings are ignored and all URL references will use non-SSL (http).

This is useful for supporting secure pages for browsers, and unsecured pages for devices that don't support SSL (such as mobile phones) with the same Zope tree. For example:

  • Root Folder Secure has SSL=1 - Root Folder Mobile has SSLForceOff=1

When Folder Secure is accessed as /Secure, URLs use SSL, but when accessed as /Moblile/Secure, URLs will be forced to non-SSL. The content of Secure is acquired, but the SSLForceOff setting in Mobile overrides the SSL setting in Secure.

This product only works with Zope later than 2.2. The latest version tested is 2.3.2.

See How-To: Managing http/https URL Links for more info.

Latest Release: 1.0.0
Last Updated: 2001-05-30 15:11:10
Author: rbickers
Categories: Patches, Server
Maturity: Stable

Available Releases

Version Maturity Platform Released
1.0.0 Stable   2001-05-30 15:11:10
  SSLAbsoluteURL-1.0.0.tgz (1 K) All md5
0.0.1 Stable   2001-01-23 00:06:05
  SSLAbsoluteURL-0.0.1.tgz (1 K) All md5