Searched refs:storage_dir (Results 1 – 4 of 4) sorted by relevance
/external/chromium-trace/catapult/third_party/WebOb/docs/comment-example-code/ |
D | example.py | 11 def __init__(self, app, storage_dir): argument 13 self.storage_dir = storage_dir 14 if not os.path.exists(storage_dir): 15 os.makedirs(storage_dir) 55 return os.path.join(self.storage_dir, urllib.quote(url, ''))
|
/external/chromium-trace/catapult/third_party/WebOb/docs/wiki-example-code/ |
D | example.py | 57 def __init__(self, storage_dir): argument 58 self.storage_dir = os.path.abspath(os.path.normpath(storage_dir)) 78 path = os.path.join(self.storage_dir, path) 82 if not path.startswith(self.storage_dir):
|
/external/chromium-trace/catapult/third_party/WebOb/docs/ |
D | comment-example.txt | 37 def __init__(self, app, storage_dir): 39 self.storage_dir = storage_dir 40 if not os.path.exists(storage_dir): 41 os.makedirs(storage_dir) 48 app = Commenter(app, storage_dir='./comments') 106 def __init__(self, app, storage_dir): 108 self.storage_dir = storage_dir 109 if not os.path.exists(storage_dir): 110 os.makedirs(storage_dir) 159 return os.path.join(self.storage_dir, urllib.quote(url, ''))
|
D | wiki-example.txt | 43 def __init__(self, storage_dir): 44 self.storage_dir = os.path.abspath(os.path.normpath(storage_dir)) 193 path = os.path.join(self.storage_dir) 197 if not path.startswith(self.storage_dir): 207 under our ``self.storage_dir`` with ``if not 208 path.startswith(self.storage_dir): raise exc.HTTPBadRequest("Bad
|