Mercurial > libervia-backend
annotate MANIFEST.in @ 2109:85f3e12e984d
core (memory/cache): file caching handling, first draft:
instead of having file caching handled individually by plugins, a generic module has been added in memory.
- Cache can be global or associated to a profile. In the later case, client.cache can be used.
- Cache are managed with unique ids (which can be any unique unicode, hash uuid, or something else).
- To know if a file is in cache, getFilePath is used: if the file is in cache, its absolute path is returned, else None is returned.
- To cache a file, cacheData is used with at list the source of cache (most of time plugin import name), and unique id. The method return file opened in binary writing mode (so cacheData can - and should - be used with "with" statement).
- 2 files will be created: a metadata file (named after the unique id), and the actual file.
- each file has a end of life time, after it, the cache is invalidated and the file must be requested again.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 05 Jan 2017 20:23:38 +0100 |
parents | b47492e8af0c |
children | 26edcf3a30eb |
rev | line source |
---|---|
1196
268278d9aef2
misc: forgotten to change distribute_setup.py to ez_setup.py in MANIFEST.in
Goffi <goffi@goffi.org>
parents:
373
diff
changeset
|
1 include MANIFEST.in ez_setup.py |
268
7111b98c58b3
distribute: manifest now include all .py and .ini files
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
2 global-include *.py |
7111b98c58b3
distribute: manifest now include all .py and .ini files
Goffi <goffi@goffi.org>
parents:
235
diff
changeset
|
3 global-include *.ini |
229 | 4 global-include *.po *.mo |
5 global-include CHANGELOG COPYING* INSTALL README* | |
6 global-include *.sh | |
7 include src/sat.* | |
2001
b47492e8af0c
installation (MANIFEST): added misc directory
Goffi <goffi@goffi.org>
parents:
1999
diff
changeset
|
8 include misc |
1291
0db0013c59dd
remove remaining references to Wix
souliane <souliane@mailoo.org>
parents:
1196
diff
changeset
|
9 include frontends/src/jp/jp frontends/src/primitivus/primitivus |
273
3b5e856b3a32
Bridge: added mediawiki constructor in bridge constructor, usefull for documentation purpose
Goffi <goffi@goffi.org>
parents:
270
diff
changeset
|
10 include src/bridge/bridge_constructor/mediawiki_template.tpl |
1999
30e83614af48
fixed exclusion of vim's undo file in MANIFEST.in
Goffi <goffi@goffi.org>
parents:
1291
diff
changeset
|
11 global-exclude *.un~ |
270
4005bf3ce35d
updated MANIFEST.in to exclude bridge_constructor's generated dir
Goffi <goffi@goffi.org>
parents:
268
diff
changeset
|
12 prune src/bridge/bridge_constructor/generated |