Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes
CMFPlone.tests.dummy.DefaultPage Class Reference
Inheritance diagram for CMFPlone.tests.dummy.DefaultPage:
Inheritance graph
[legend]
Collaboration diagram for CMFPlone.tests.dummy.DefaultPage:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def set_default
def has_key

Public Attributes

 keys
 isPrincipiaFolderish
 default_page
 id
 title

Static Public Attributes

string id = 'dummy'
string meta_type = 'Dummy Item'

Detailed Description

Helper for browserDefault tests

Definition at line 142 of file dummy.py.


Constructor & Destructor Documentation

def CMFPlone.tests.dummy.DefaultPage.__init__ (   self,
  default = ['test'],
  keys = ['index_html'] 
)

Definition at line 145 of file dummy.py.

00145 
00146     def __init__(self, default=['test'], keys=['index_html']):
00147         self.keys = keys
00148         self.isPrincipiaFolderish = 1 # fake a folder
00149         self.set_default(default)


Member Function Documentation

def CMFPlone.tests.dummy.DefaultPage.has_key (   self,
  key 
)

Definition at line 157 of file dummy.py.

00157 
00158     def has_key(self, key):
00159         return key in self.keys
00160 

Here is the caller graph for this function:

def CMFPlone.tests.dummy.DefaultPage.set_default (   self,
  default,
  has_key = 0 
)

Definition at line 150 of file dummy.py.

00150 
00151     def set_default(self, default, has_key=0):
00152         self.default_page = default
00153         if has_key:
00154             if type(default) == type(''):
00155                 self.keys = [default]
00156             self.keys = default


Member Data Documentation

Definition at line 151 of file dummy.py.

string CMFPlone.tests.dummy.Item.id = 'dummy' [static, inherited]

Definition at line 41 of file dummy.py.

Definition at line 47 of file dummy.py.

Definition at line 147 of file dummy.py.

Definition at line 146 of file dummy.py.

string CMFPlone.tests.dummy.Item.meta_type = 'Dummy Item' [static, inherited]

Definition at line 42 of file dummy.py.

Reimplemented in CMFPlone.tests.dummy.ImageComputedProps.

Definition at line 49 of file dummy.py.


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