pymongo_formatter/formatter.py
def printCursor(self, fieldnames=None, datemap=None, time_format=None):
        '''
        Output a cursor to a filename or stdout if filename is "-".
        fmt defines whether we output CSV or JSON.
        '''

        if self._format == 'csv':
            count = self.printCSVCursor(fieldnames, datemap, time_format)
        else:
            count = self.printJSONCursor( fieldnames, datemap, time_format)

        return count
def printCursor(self, fieldnames=None, datemap=None, time_format=None):
        '''
        Output a cursor to a filename or stdout if filename is "-".
        fmt defines whether we output CSV or JSON.
        '''

        if self._format == 'csv':
            count = self.printCSVCursor(fieldnames, datemap, time_format)
        else:
            count = self.printJSONCursor( fieldnames, datemap, time_format)

        return count
def printCursor ( self , fieldnames = None , datemap = None , time_format = None ) : if self . _format == 'csv' : count = self . printCSVCursor ( fieldnames , datemap , time_format ) else : count = self . printJSONCursor ( fieldnames , datemap , time_format ) return count
Output a cursor to a filename or stdout if filename is "-".
        fmt defines whether we output CSV or JSON.
Output a cursor to a filename or stdout if filename is - . fmt defines whether we output CSV or JSON .