Ejemplo n.º 1
0
    def dump_pdt(self):
        if not os.path.exists(self.pdt_target):
            self.m_pdt = self.staging_pdt
            self.staging_pdt = Pages()
        else:
            self.staging_pdt.flush()

        pdt_file = open(self.pdt_target, "w")
        pdt_file.write(json.write(self.m_pdt.get()))

        pdt_file.close()
Ejemplo n.º 2
0
    def dump_pdt(self):
        if not os.path.exists(self.pdt_target):
            self.m_pdt = self.staging_pdt
            self.staging_pdt = Pages()
        else:
            self.staging_pdt.flush()

        pdt_file = open(self.pdt_target, "w")
        pdt_file.write(json.write(self.m_pdt.get()))
        
        pdt_file.close()
Ejemplo n.º 3
0
    def dump_pdt_bkt(self):
        if not os.path.exists(self.pdt_bkt_target):
            self.m_pdt_bkt = self.staging_pdt_bkt
            self.staging_pdt_bkt = Pages()
        else:
            self.staging_pdt_bkt.flush()

        pdt_bkt_file = open(self.pdt_bkt_target, "w")

        # Magic string to tell server we are delivering bucketed PDT
        pdt_bkt_file.write("BUCKETED")

        x = self.m_pdt_bkt.get()
        pdt_bkt_file.write(json.write(x))

        pdt_bkt_file.close()
Ejemplo n.º 4
0
    def dump_pdt_bkt(self):
        if not os.path.exists(self.pdt_bkt_target):
            self.m_pdt_bkt = self.staging_pdt_bkt
            self.staging_pdt_bkt = Pages()
        else:
            self.staging_pdt_bkt.flush()

        pdt_bkt_file = open(self.pdt_bkt_target, "w")

        # Magic string to tell server we are delivering bucketed PDT
        pdt_bkt_file.write("BUCKETED");

        x = self.m_pdt_bkt.get()
        pdt_bkt_file.write(json.write(x))
        
        pdt_bkt_file.close()
Ejemplo n.º 5
0
        set['wt'] = wt
        set['organism'] = organism
        set['At#'] = ati
        set['salk'] = salk_id
        all['%s' % set_id] = set

        # if set_id == 497:
        # ....print set
    # print all

    sys.exit(0)

    # ##################

    all_js = pyjson.write(all)

    # print all_js

    tmpl = \
        """

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Plot Generating Test</title>
    <link href="layout.css" rel="stylesheet" type="text/css"></link>
    <!--[if IE]><script language="javascript" type="text/javascript" src="excanvas.pack.js"></script><![endif]-->
    <script language="javascript" type="text/javascript" src="jquery.js"></script>
    <script language="javascript" type="text/javascript" src="jquery.flot.js"></script>