예제 #1
0
def convert_metadata(metadata):
    return {
        "name": metadata.name,
        "path_lower": metadata.path_lower,
        "last_modified":
        date_helpers.to_datetime_str(metadata.server_modified),
        "rev": metadata.rev
    }
예제 #2
0
def get_metadata(path):
  return {"name": path, "last_modified": date_helpers.to_datetime_str(files[path]["last_modified"]), "rev": 1}
예제 #3
0
def convert_metadata(metadata):
  return {"name": metadata.name, "path_lower": metadata.path_lower, "last_modified": date_helpers.to_datetime_str(metadata.server_modified), "rev": metadata.rev}