Back to index

obnam  1.1
Public Member Functions | Public Attributes
obnamlib.hooks_tests.Base64Filter Class Reference

List of all members.

Public Member Functions

def __init__
def filter_read
def filter_write

Public Attributes

 tag
 args
 kwargs
 wasread

Detailed Description

Definition at line 90 of file hooks_tests.py.


Constructor & Destructor Documentation

Definition at line 92 of file hooks_tests.py.

00092 
00093     def __init__(self):
00094         self.tag = "base64"


Member Function Documentation

def obnamlib.hooks_tests.Base64Filter.filter_read (   self,
  data,
  args,
  kwargs 
)

Definition at line 95 of file hooks_tests.py.

00095 
00096     def filter_read(self, data, *args, **kwargs):
00097         self.args = args
00098         self.kwargs = kwargs
00099         self.wasread = True
00100         return base64.b64decode(data)

Here is the caller graph for this function:

def obnamlib.hooks_tests.Base64Filter.filter_write (   self,
  data,
  args,
  kwargs 
)

Definition at line 101 of file hooks_tests.py.

00101 
00102     def filter_write(self, data, *args, **kwargs):
00103         self.args = args
00104         self.kwargs = kwargs
00105         self.wasread = False
00106         return base64.b64encode(data)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 96 of file hooks_tests.py.

Definition at line 97 of file hooks_tests.py.

Definition at line 93 of file hooks_tests.py.

Definition at line 98 of file hooks_tests.py.


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