Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.script.migration._conv160a.Attachment Class Reference

List of all members.

Public Member Functions

def __init__
def copy

Public Attributes

 request
 path
 name

Detailed Description

a single attachment 

Definition at line 238 of file _conv160a.py.


Constructor & Destructor Documentation

def MoinMoin.script.migration._conv160a.Attachment.__init__ (   self,
  request,
  attach_dir,
  attfile 
)

Definition at line 240 of file _conv160a.py.

00240 
00241     def __init__(self, request, attach_dir, attfile):
00242         self.request = request
00243         self.path = opj(attach_dir, attfile)
00244         self.name = attfile.decode('utf-8', 'replace')


Member Function Documentation

def MoinMoin.script.migration._conv160a.Attachment.copy (   self,
  attach_dir 
)
copy attachment file from orig path to new destination 

Definition at line 245 of file _conv160a.py.

00245 
00246     def copy(self, attach_dir):
00247         """ copy attachment file from orig path to new destination """
00248         attfile = self.name.encode('utf-8')
00249         dest = opj(attach_dir, attfile)
00250         copy_file(self.path, dest)
00251 

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 243 of file _conv160a.py.

Definition at line 242 of file _conv160a.py.

Definition at line 241 of file _conv160a.py.


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