예제 #1
0
def complete_game_file_url(fileurl):
    assert fileurl
    abs_prefixes = ["http://", "https://", "/"]
    for pref in abs_prefixes:
        if fileurl.startswith(pref):
            return fileurl # URL SHALL NOT BE MODIFIED
    from pychronia_game.common import game_file_url
    return game_file_url(fileurl) # url starting with / and containing security token
예제 #2
0
 def url(self, name):
     return game_file_url(name)
예제 #3
0
파일: storage.py 프로젝트: NouryG/pychronia
 def url(self, name):
     return game_file_url(name)