Package oort :: Module sitebase :: Class ResourceViewer
[hide private]
[frames] | no frames]

Class ResourceViewer

source code

        object --+    
                 |    
ResourceViewerBase --+
                     |
                    ResourceViewer

Use for simple apps where all URIs in the graph share the same base URI (set resourceBase to that).

Nested Classes [hide private]

Inherited from ResourceViewerBase: __metaclass__

Instance Methods [hide private]
 
__init__(self, *args) source code
 
resource_from(self, pathArgs) source code
 
resource_to_app_path(self, resource) source code
 
__super(type)
super(type, obj) -> bound super object; requires isinstance(obj, type)...
source code

Inherited from ResourceViewerBase: __call__, app_url_for, prepared_display

Inherited from ResourceViewerBase (private): _default_redirect

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Methods [hide private]

Inherited from ResourceViewerBase: app_factory

Class Variables [hide private]
  resourceBase = None
  trailSep = '/'

Inherited from ResourceViewerBase: RESOURCE_QUERY_KEY, VARIANT_SEP, defaultDisplay, displayClasses, langOrder

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args)
(Constructor)

source code 
Overrides: ResourceViewerBase.__init__

resource_from(self, pathArgs)

source code 
Overrides: ResourceViewerBase.resource_from

resource_to_app_path(self, resource)

source code 
Overrides: ResourceViewerBase.resource_to_app_path

__super(type)

source code 
super(type, obj) -> bound super object; requires isinstance(obj, type)
super(type, type2) -> bound super object; requires issubclass(type2, type)
Typical use to call a cooperative superclass method:
class C(B):
    def meth(self, arg):
        super(C, self).meth(arg)

Returns:
unbound super object