コード例 #1
0
ファイル: lostfound.py プロジェクト: MoriEdan/sheltermanager
def update_match_report(dbo):
    """
    Updates the latest version of the lost/found match report in the dbfs
    """
    al.debug("updating lost/found match report", "lostfound.update_match_report", dbo)
    s = match_report(dbo)
    dbfs.put_string_filepath(dbo, "/reports/daily/lost_found_match.html", s)
コード例 #2
0
def update_match_report(dbo):
    """
    Updates the latest version of the lost/found match report in the dbfs
    """
    al.debug("updating lost/found match report",
             "lostfound.update_match_report", dbo)
    s = match_report(dbo)
    dbfs.put_string_filepath(dbo, "/reports/daily/lost_found_match.html", s)
コード例 #3
0
ファイル: person.py プロジェクト: MoriEdan/sheltermanager
def update_lookingfor_report(dbo):
    """
    Updates the latest version of the looking for report in the dbfs
    """
    al.debug("updating lookingfor report", "person.update_lookingfor_report", dbo)
    s = lookingfor_report(dbo)
    dbfs.put_string_filepath(dbo, "/reports/daily/lookingfor.html", s)
    configuration.lookingfor_last_match_count(dbo, lookingfor_last_match_count(dbo))
コード例 #4
0
ファイル: person.py プロジェクト: MoriEdan/sheltermanager
def update_lookingfor_report(dbo):
    """
    Updates the latest version of the looking for report in the dbfs
    """
    al.debug("updating lookingfor report", "person.update_lookingfor_report",
             dbo)
    s = lookingfor_report(dbo)
    dbfs.put_string_filepath(dbo, "/reports/daily/lookingfor.html", s)
    configuration.lookingfor_last_match_count(dbo,
                                              lookingfor_last_match_count(dbo))
コード例 #5
0
ファイル: test_dbfs.py プロジェクト: tgage/asm3
 def test_file_exists(self):
     content = "123test"
     dbfs.put_string_filepath(base.get_dbo(), "/reports/test.txt", content)
     assert dbfs.file_exists(base.get_dbo(), "test.txt")
コード例 #6
0
ファイル: test_dbfs.py プロジェクト: tgage/asm3
 def test_put_string_filepath(self):
     content = "123test"
     dbfs.put_string_filepath(base.get_dbo(), "/reports/test.txt", content)
     assert content == dbfs.get_string_filepath(base.get_dbo(),
                                                "/reports/test.txt")
     dbfs.delete_filepath(base.get_dbo(), "/reports/test.txt")
コード例 #7
0
ファイル: test_dbfs.py プロジェクト: tgage/asm3
 def setUp(self):
     dbfs.put_string_filepath(base.get_dbo(), "/reports/nopic.jpg",
                              "fake_jpg_image_data")
コード例 #8
0
ファイル: test_dbfs.py プロジェクト: magul/asm3
 def test_put_string_filepath(self):
     content = "123test"
     dbfs.put_string_filepath(base.get_dbo(), "/reports/test.txt", content)
     assert content == dbfs.get_string_filepath(base.get_dbo(), "/reports/test.txt")
     dbfs.delete_filepath(base.get_dbo(), "/reports/test.txt")