Exemple #1
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)
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)
Exemple #3
0
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))
Exemple #4
0
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))
Exemple #5
0
 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")
Exemple #6
0
 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")
Exemple #7
0
 def setUp(self):
     dbfs.put_string_filepath(base.get_dbo(), "/reports/nopic.jpg",
                              "fake_jpg_image_data")
Exemple #8
0
 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")