Package Products :: Package ZenModel :: Package browser :: Module Autocompleters :: Class ComponentPaths
[hide private]
[frames] | no frames]

Class ComponentPaths

source code

              Acquisition.Explicit --+    
                                     |    
        zope.location.Location --+   |    
                                 |   |    
zope.publisher.browser.BrowserView --+    
                                     |    
              Five.browser.BrowserView --+
                                         |
                                        ComponentPaths

Get component paths and names associated with a given device or group of devices.

Adapts DeviceClasses.

Instance Methods [hide private]
"[('/path/to/comp1', 'comp1'), ...]"
__call__(self, deviceIds=())
Returns: A JSON representation of a list of tuples describing components under devices specified
source code

Inherited from zope.publisher.browser.BrowserView: __init__

Class Variables [hide private]

Inherited from zope.publisher.browser.BrowserView: __parent__

Method Details [hide private]

__call__(self, deviceIds=())
(Call operator)

source code 
Parameters:
  • deviceIds (str) - One ore more device ids under which components should be sought
Returns: "[('/path/to/comp1', 'comp1'), ...]"
A JSON representation of a list of tuples describing components under devices specified
Decorators:
  • @json
  • @formreq