Back to index

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

List of all members.

Public Member Functions

def __init__
def seek
def tell
def read

Public Attributes

 filename
 headers

Static Public Attributes

string filename = 'dummy.txt'
 data = TEXT
dictionary headers = {}

Static Private Attributes

int __allow_access_to_unprotected_subobjects__ = 1

Detailed Description

Dummy upload object
   Used to fake uploaded files.

Definition at line 72 of file dummy.py.


Constructor & Destructor Documentation

def CMFPlone.tests.dummy.File.__init__ (   self,
  filename = None,
  data = None,
  headers = None 
)

Definition at line 82 of file dummy.py.

00082 
00083     def __init__(self, filename=None, data=None, headers=None):
00084         if filename is not None:
00085             self.filename = filename
00086         if data is not None:
00087             self.data = data
00088         if headers is not None:
00089             self.headers = headers


Member Function Documentation

def CMFPlone.tests.dummy.File.read (   self,
  args 
)

Definition at line 92 of file dummy.py.

00092 
00093     def read(self, *args): return self.data
00094 

Here is the caller graph for this function:

def CMFPlone.tests.dummy.File.seek (   self,
  args 
)

Definition at line 90 of file dummy.py.

00090 
    def seek(self, *args): pass
def CMFPlone.tests.dummy.File.tell (   self,
  args 
)

Definition at line 91 of file dummy.py.

00091 
    def tell(self, *args): return 1

Member Data Documentation

Definition at line 77 of file dummy.py.

Reimplemented in CMFPlone.tests.dummy.Image.

Definition at line 79 of file dummy.py.

string CMFPlone.tests.dummy.File.filename = 'dummy.txt' [static]

Reimplemented in CMFPlone.tests.dummy.Image.

Definition at line 78 of file dummy.py.

Reimplemented in CMFPlone.tests.dummy.Image.

Definition at line 84 of file dummy.py.

dictionary CMFPlone.tests.dummy.File.headers = {} [static]

Definition at line 80 of file dummy.py.

Definition at line 88 of file dummy.py.


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