Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
kss.demo.simplecontent.SimpleContent Class Reference
Inheritance diagram for kss.demo.simplecontent.SimpleContent:
Inheritance graph
[legend]
Collaboration diagram for kss.demo.simplecontent.SimpleContent:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getValue
def setValue
def direct

Public Attributes

 id
 title
 mapping

Static Public Attributes

string meta_type = 'KssDemo SimpleContent'
tuple security = ClassSecurityInfo()
tuple manage_options

Detailed Description

Definition at line 34 of file simplecontent.py.


Constructor & Destructor Documentation

def kss.demo.simplecontent.SimpleContent.__init__ (   self,
  id,
  title 
)

Definition at line 44 of file simplecontent.py.

00044 
00045     def __init__(self, id, title):
00046         self.id = id
00047         self.title = title
00048         self.mapping = PersistentMapping()

Here is the caller graph for this function:


Member Function Documentation

Should be able to traverse directly to this as there is no view.

Definition at line 60 of file simplecontent.py.

00060 
00061     def direct(self):
00062         """Should be able to traverse directly to this as there is no view.
00063         """
00064         return "Direct traversal worked"
00065 
00066 InitializeClass(SimpleContent)

def kss.demo.simplecontent.SimpleContent.getValue (   self,
  name,
  default = None 
)

Definition at line 49 of file simplecontent.py.

00049 
00050     def getValue(self, name, default=None):
00051         result = self.mapping.get(name, default)
00052         if not result or result == default:
00053             result = default
00054             self.setValue(name, result)
00055         return result

Here is the call graph for this function:

Here is the caller graph for this function:

def kss.demo.simplecontent.SimpleContent.setValue (   self,
  name,
  value 
)

Definition at line 56 of file simplecontent.py.

00056 
00057     def setValue(self, name, value):
00058         self.mapping[name] = value

Here is the caller graph for this function:


Member Data Documentation

Definition at line 45 of file simplecontent.py.

Initial value:
(
        {'label':'Demos', 'action':''},
        )

Definition at line 40 of file simplecontent.py.

Definition at line 47 of file simplecontent.py.

Definition at line 37 of file simplecontent.py.

tuple kss.demo.simplecontent.SimpleContent.security = ClassSecurityInfo() [static]

Definition at line 38 of file simplecontent.py.

Definition at line 46 of file simplecontent.py.


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