Back to index

plone3  3.1.7
Public Member Functions
ResourceRegistries.interfaces.registries.IResourceRegistry Class Reference
Inheritance diagram for ResourceRegistries.interfaces.registries.IResourceRegistry:
Inheritance graph
[legend]
Collaboration diagram for ResourceRegistries.interfaces.registries.IResourceRegistry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def registerResource
def getEvaluatedResources
def unregisterResource
def getResource
def renameResource
def moveResource
def getResourcePosition
def moveResourceUp
def moveResourceDown
def moveResourceToTop
def moveResourceToBottom
def moveResourceBefore
def moveResourceAfter
def getResourceIds
def getResources

Detailed Description

A tool for registering and evaluating resource linkage.

Definition at line 4 of file registries.py.


Member Function Documentation

Get the evaluated resource links and inline styles appropriate
to the context for rendering.

Definition at line 10 of file registries.py.

00010 
00011     def getEvaluatedResources(context):
00012         """Get the evaluated resource links and inline styles appropriate
00013         to the context for rendering.
00014         """

Get resource object by id.

If any property of the resource is changed, then cookResources of the
registry must be called.

Definition at line 18 of file registries.py.

00018 
00019     def getResource(id):
00020         """Get resource object by id.
00021         
00022         If any property of the resource is changed, then cookResources of the
00023         registry must be called."""

Return the ids of all resources.

Definition at line 51 of file registries.py.

00051 
00052     def getResourceIds():
00053         """Return the ids of all resources."""

Here is the caller graph for this function:

Get the position (order) of a resource given its id.

Definition at line 30 of file registries.py.

00030 
00031     def getResourcePosition(id):
00032         """Get the position (order) of a resource given its id."""

Here is the caller graph for this function:

Get the resource objects.

For use in management screens.

Definition at line 54 of file registries.py.

00054 
00055     def getResources():
00056         """Get the resource objects.
00057 
00058         For use in management screens.
00059         """

Here is the caller graph for this function:

Move a registered resource to the given position.

Definition at line 27 of file registries.py.

00027 
00028     def moveResource(id, position):
00029         """Move a registered resource to the given position."""

Here is the caller graph for this function:

Move the resource after the resource with dest_id.

Definition at line 48 of file registries.py.

00048 
00049     def moveResourceAfter(id, dest_id, REQUEST=None):
00050         """Move the resource after the resource with dest_id."""

Move the resource before the resource with dest_id.

Definition at line 45 of file registries.py.

00045 
00046     def moveResourceBefore(id, dest_id, REQUEST=None):
00047         """Move the resource before the resource with dest_id."""

def ResourceRegistries.interfaces.registries.IResourceRegistry.moveResourceDown (   id,
  steps = 1,
  REQUEST = None 
)
Move the resource down 'steps' number of steps.

Definition at line 36 of file registries.py.

00036 
00037     def moveResourceDown(id, steps=1, REQUEST=None):
00038         """Move the resource down 'steps' number of steps."""

Move the resource to the last position.

Definition at line 42 of file registries.py.

00042 
00043     def moveResourceToBottom(id, REQUEST=None):
00044         """Move the resource to the last position."""

Move the resource to the first position.

Definition at line 39 of file registries.py.

00039 
00040     def moveResourceToTop(id, REQUEST=None):
00041         """Move the resource to the first position."""

def ResourceRegistries.interfaces.registries.IResourceRegistry.moveResourceUp (   id,
  steps = 1,
  REQUEST = None 
)
Move the resource up 'steps' number of steps.

Definition at line 33 of file registries.py.

00033 
00034     def moveResourceUp(id, steps=1, REQUEST=None):
00035         """Move the resource up 'steps' number of steps."""

def ResourceRegistries.interfaces.registries.IResourceRegistry.registerResource (   id,
  expression = '',
  enabled = 1 
)
Register a resource.

Definition at line 7 of file registries.py.

00007 
00008     def registerResource(id, expression='', enabled=1):
00009         """Register a resource."""

Change the id of a registered resource.

Definition at line 24 of file registries.py.

00024 
00025     def renameResource(old_id, new_id):
00026         """Change the id of a registered resource."""

Unregister a registered resource.

Definition at line 15 of file registries.py.

00015 
00016     def unregisterResource(id):
00017         """Unregister a registered resource."""

Here is the caller graph for this function:


The documentation for this class was generated from the following file: