gdritter repos lektor / ab09566
Some doc changes Getty Ritter 8 years ago
1 changed file(s) with 7 addition(s) and 4 deletion(s). Collapse all Expand all
105105 - `id`: The URI which identifies the entry. This will often be a
106106 URL at which the resource corresponding to the entry is available,
107107 but may also be an opaque identifier.
108 - `content`: **TBD**
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.
109111 - `feed`: A directory that contains all the information about the
110112 source `feed`. This will generally be a soft link to the relevant
111113 `feed` directory, but programs should not assume that it is.
151153 and adding new entries the `lektor-dir` according to the following process:
152154
153155 - The fetcher `chdir()`s to the `lektor-dir` directory.
154 - The fetcher `stat()`s the name `tmp/$feed/$time.$pid.$host`, where
156 - The fetcher `stat()`s the name `tmp/$feed/$time.$uniq.$host`, where
155157 `$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.
158161 - If `stat()` returned anything other than `ENOENT`, the program sleeps
159162 for two seconds, updates `$time`, and tries the `stat()` again, a limited
160163 number of times.