Some doc changes
Getty Ritter
9 years ago
105 | 105 | - `id`: The URI which identifies the entry. This will often be a |
106 | 106 | URL at which the resource corresponding to the entry is available, |
107 | 107 | but may also be an opaque identifier. |
108 |
- `content`: |
|
108 | - `content`: Some kind of content. If no `type` element is present, | |
109 | then the `content` is assumed to be plain text; otherwise, the | |
110 | `type` element will dictate the format of the content. | |
109 | 111 | - `feed`: A directory that contains all the information about the |
110 | 112 | source `feed`. This will generally be a soft link to the relevant |
111 | 113 | `feed` directory, but programs should not assume that it is. |
151 | 153 | and adding new entries the `lektor-dir` according to the following process: |
152 | 154 | |
153 | 155 | - The fetcher `chdir()`s to the `lektor-dir` directory. |
154 |
- The fetcher `stat()`s the name `tmp/$feed/$time.$ |
|
156 | - The fetcher `stat()`s the name `tmp/$feed/$time.$uniq.$host`, where | |
155 | 157 | `$feed` is the hash of the feed's `id` value, `$time` |
156 | is the number of seconds since the beginning of 1970 GMT, `$pid` is the | |
157 | program's process ID, and `$host` is its host name. | |
158 | is the number of seconds since the beginning of 1970 GMT, `$uniq` is a | |
159 | combination of unique elements possibly including the process `pid` or | |
160 | various sequence numbers, and `$host` is its host name. | |
158 | 161 | - If `stat()` returned anything other than `ENOENT`, the program sleeps |
159 | 162 | for two seconds, updates `$time`, and tries the `stat()` again, a limited |
160 | 163 | number of times. |