Resources

<= Previous Change | Next Change =>

Diff Summary
Title
Date 2007-10-11 00:24 2007-10-11 00:31
Editor Andrew Plotkin (zarf) Andrew Plotkin (zarf)

2007-10-11 00:24 by Andrew Plotkin
2007-10-11 00:31 by Andrew Plotkin
n1Resources are any readable files in a [package]. Tn1A Resource is any feature provided by a [package].
>ypically, these are sound files, but other resourc> Resources currently include sound (sample) files 
>e types may come along in the future. >and Boodler agents. Other resource types may come 
 >along in the future.
22
3Resources should be listed in a file called `Resou3Resources should be listed in a file called `Resou
>rces`, in the package directory. (See [package for>rces`, in the package directory. (See [package for
>mat].) Resources do not have to be listed, but the>mat].) Resources do not have to be listed, but the
> `Resources` listing is how package management too> `Resources` listing is how package management too
>ls know about them.>ls know about them.
44
5## Resources file format5## Resources file format
66
7The file is divided into sections, one for each re7The file is divided into sections, one for each re
>source. A section begins with a line that begins w>source. A section begins with a line that begins w
>ith a colon:>ith a colon:
88
9    :resourcename9    :resourcename
1010
n11A resource name must be a valid Python identifier n11A resource name must be a valid Python identifier 
>(possibly including dots). For example: `resname` >(possibly including dots). For example: `resname` 
>or `modname.resname`.>or `modname.resname`. This identifier is where the
 > resource can be found in its root module.
1212
13The resource name is followed by the resource's me13The resource name is followed by the resource's me
>tadata; zero or more lines defining key-value pair>tadata; zero or more lines defining key-value pair
>s. These have the same format as in the [Metadata]>s. These have the same format as in the [Metadata]
> file.> file.
1414
15## Resource metadata15## Resource metadata
1616
17Dublin Core metadata terms may be used to describe17Dublin Core metadata terms may be used to describe
> the title of a resource, its author, and so on. S> the title of a resource, its author, and so on. S
>ee the [Metadata] page for details.>ee the [Metadata] page for details.
1818
19Besides those, Boodler pays special attention to t19Besides those, Boodler pays special attention to t
>he following terms:>he following terms:
2020
tt21* `boodler.use` : The purpose this resource serves
 >. The uses currently defined are `sound` and `agen
 >t`.
21* `boodler.filename` : The filename, for a file re22* `boodler.filename` : The filename, for a resourc
>source. This must be in universal format: relative>e stored in a data file. This must be in universal
> to the module root, and written with forward slas> format: relative to the module root, and written 
>hes, not backslashes.>with forward slashes, not backslashes.
Resources - last changed 2007-10-11 00:35 by Andrew Plotkin (zarf)