code: def _adjustSectionAlignment(self, value, fileAlignment, sectionAlignment):
          
          if fileAlignment < consts.DEFAULT_FILE_ALIGNMENT:
              if fileAligment != sectionAlignment:
                  print "FileAlignment does not match SectionAlignment."
          
          if sectionAlignment < consts.DEFAULT_PAGE_SIZE:
              sectionAlignment = fileAlignment
              
          if sectionAlignment and value % sectionAlignment:
              return sectionAlignment * ((value / sectionAlignment) + 1)
          return value
docs: Align a value to C{SectionAligment}.
          
          @type value: int
          @param value: The value to be aligned. 
          
          @type fileAlignment: int
          @param fileAlignment: The value to be used as C{FileAlignment}.
          
          @type sectionAlignment: int
          @param sectionAlignment: The value to be used as C{SectionAlignment}.
          
          @rtype: int
          @return: The aligned value.