Last change
on this file since 3305 was
3296,
checked in by fenix, 13 years ago
|
Load Products.CacheSetup?-1.2.1 into vendor/Products.CacheSetup?/current.
|
-
Property svn:eol-style set to
native
|
File size:
1017 bytes
|
Line | |
---|
1 | from zope.interface import Interface |
---|
2 | from Interface import Interface as OldInterface |
---|
3 | |
---|
4 | class ICacheTool(Interface): |
---|
5 | """Just a marker interface for genericsetup now.""" |
---|
6 | |
---|
7 | class ICachePolicy(OldInterface): |
---|
8 | """ marker interface for cache policy folders """ |
---|
9 | |
---|
10 | class ICacheRule(OldInterface): |
---|
11 | """ marker interface for cache rules """ |
---|
12 | |
---|
13 | class ICacheToolFolder(OldInterface): |
---|
14 | """ marker interface for cache tool folders """ |
---|
15 | |
---|
16 | |
---|
17 | class IPurgeUrls(Interface): |
---|
18 | """Return PURGE Urls for an object.""" |
---|
19 | |
---|
20 | def getRelativeUrls(): |
---|
21 | """Return a list of relative URLs that should be purged. |
---|
22 | |
---|
23 | URLs returned by this list will be rewritten based on the |
---|
24 | CacheSetup proxy configuration. |
---|
25 | """ |
---|
26 | |
---|
27 | def getAbsoluteUrls(relative_urls): |
---|
28 | """Return a list of absolute URLs that should be purged. |
---|
29 | |
---|
30 | URLs returned by this list will not be rewritten and passed |
---|
31 | as-is to the proxy server(s). |
---|
32 | |
---|
33 | The list of relative URLs is passed in and should not be modified. |
---|
34 | """ |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.