Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.filter.EXIF.Ratio Class Reference

List of all members.

Public Member Functions

def __init__
def __repr__
def reduce_size

Public Attributes

 num
 den

Detailed Description

Definition at line 1102 of file EXIF.py.


Constructor & Destructor Documentation

def MoinMoin.filter.EXIF.Ratio.__init__ (   self,
  num,
  den 
)

Definition at line 1103 of file EXIF.py.

01103 
01104     def __init__(self, num, den):
01105         self.num = num
01106         self.den = den


Member Function Documentation

Definition at line 1107 of file EXIF.py.

01107 
01108     def __repr__(self):
01109         self.reduce_size()
01110         if self.den == 1:
01111             return str(self.num)
01112         return '%d/%d' % (self.num, self.den)

Here is the call graph for this function:

Definition at line 1113 of file EXIF.py.

01113 
01114     def reduce_size(self):
01115         div = gcd(self.num, self.den)
01116         if div > 1:
01117             self.num = self.num / div
01118             self.den = self.den / div
01119 
# for ease of dealing with tags

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 1105 of file EXIF.py.

Definition at line 1104 of file EXIF.py.


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