Back to index

moin  1.9.0~rc2
Public Member Functions
fckcommands.GetFoldersCommandMixin Class Reference
Inheritance diagram for fckcommands.GetFoldersCommandMixin:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def getFolders

Detailed Description

Definition at line 39 of file fckcommands.py.


Member Function Documentation

def fckcommands.GetFoldersCommandMixin.getFolders (   self,
  resourceType,
  currentFolder 
)
Purpose: command to recieve a list of folders

Reimplemented in zope.FCKeditorConnectorZope.

Definition at line 40 of file fckcommands.py.

00040 
00041        def getFolders(self, resourceType, currentFolder):
00042               """
00043               Purpose: command to recieve a list of folders
00044               """
00045               # Map the virtual path to our local server
00046               serverPath = mapServerFolder(self.userFilesFolder,currentFolder)
00047               s = """<Folders>"""   # Open the folders node
00048               for someObject in os.listdir(serverPath):
00049                      someObjectPath = mapServerFolder(serverPath, someObject)
00050                      if os.path.isdir(someObjectPath):
00051                             s += """<Folder name="%s" />""" % (
00052                                           convertToXmlAttribute(someObject)
00053                                           )
00054               s += """</Folders>""" # Close the folders node
00055               return s

Here is the call graph for this function:


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