Package aquarium :: Package urlscheme :: Module RelativeScriptName :: Class RelativeScriptName
[show private | hide private]
[frames | no frames]

Class RelativeScriptName

AquariumClass --+        
  QueryParameters --+    
           ScriptName --+

Like aquarium.urlscheme.ScriptName, but without the server name.

This is like the ScriptName except that it doesn't include the full server name and port, which ScriptName may not figure out correctly in some environments (such as glass behind mod_proxy).

Method Summary
  getRootUrl(self, secure)
Return '/', the relative root of your web server.
    Inherited from ScriptName
  screen(self, screen, vars, secure)
Return a dynamic URL for the given screen.
Which screen does the user want to view?
    Inherited from QueryParameters
  __init__(self, ctx)
Extend __init__ to handle proxying.
  addSid(self, vars)
Add the sid to a given dictionary of vars, if appropriate.
  addVars(self, url, vars)
Add the given vars to the url and return it.
Return the default scheme, either http:// or https://.
  getPort(self, scheme)
Given a scheme, return the port string, as appropriate.
  getScheme(self, secure)
Return http:// or https://.
  hiddenFormFields(self, screen, vars)
Return necessary hidden form fields.
  img(self, img, secure)
Return an URL to an image.
  static(self, file, secure)
Return an URL for something relative to the root URL.

Method Details

getRootUrl(self, secure=-1)

Return '/', the relative root of your web server.

The "secure" flag is ignored.


Generated by Epydoc 2.1 on Mon Jan 1 16:34:19 2007