<gh_stars>1-10
import settings
from handler import Handler
from models import JpFamily
import util
from handler import select_font


# page to layout all blogs
class Distance(Handler):
    @select_font
    def get(self):
        # insert font to en database
        select_lang = self.latest
        if select_lang == 'jp':
            select_font = self.jp
        elif select_lang == 'en':
            select_font = self.en
        else:
            select_font = self.jp
        intro = self.get_intro()
        view = 'distance'
        fonts = util.get_distance_list(select_font, select_lang)
        select_font = util.get_selected_font(self.jp, self.en)
        # self.response.out.write(select_font)
        self.render("distance.html", ref_font=fonts[0], fonts=fonts[1], intro=intro, view=view,
                    en_lang=settings.EN, jp_lang=settings.JP, jp_font=select_font[0],
                    en_font=select_font[1], sitename=settings.SITENAME)


import settings
from handler import Handler
from models import JpFamily
import util
from handler import select_font


# page to layout all blogs
class Distance(Handler):
    @select_font
    def get(self):
        # insert font to en database
        select_lang = self.latest
        if select_lang == 'jp':
            select_font = self.jp
        elif select_lang == 'en':
            select_font = self.en
        else:
            select_font = self.jp
        intro = self.get_intro()
        view = 'distance'
        fonts = util.get_distance_list(select_font, select_lang)
        select_font = util.get_selected_font(self.jp, self.en)
        # self.response.out.write(select_font)
        self.render("distance.html", ref_font=fonts[0], fonts=fonts[1], intro=intro, view=view,
                    en_lang=settings.EN, jp_lang=settings.JP, jp_font=select_font[0],
                    en_font=select_font[1], sitename=settings.SITENAME)
# page to layout all blogs # insert font to en database # self.response.out.write(select_font)