예제 #1
0
    def __init__(self):
        text_to_str = lambda x: x.encode('utf-8')
        date_to_str = lambda x: x.strftime('%m %d %Y %H:%M')

        Exporter.__init__(self, 'Article',
                          [('title', text_to_str, None),
                           ('description', text_to_str, None),
                           ('cut', text_to_str, None),
                           ('text', text_to_str, None),
                           ('modified', date_to_str, None)
                          ])
예제 #2
0
    def __init__(self):
        text_to_str = lambda x: x.encode('utf-8')
        date_to_str = lambda x: x.strftime('%m %d %Y %H:%M')

        Exporter.__init__(self, 'Uzver',
                          [('first_name', text_to_str, None),
                           ('last_name', text_to_str, None),
                           ('nick_name', text_to_str, None),
                           ('email', text_to_str, None),
                           ('password', text_to_str, None),
                           ('created', date_to_str, None)
                          ])