Home | Trees | Indices | Help |
|
---|
|
a rule system for ewa, used to determine what files should appear before or after a main mp3 file in a composite mp3.
Rules are callables that take a single "filename" parameter and return None or a generator that yields mp3 filenames (or equivalent designations) in sequence.
A RuleList is a rule with a list of subrules, optionally with a condition (matched against the filename). When the RuleList is called, if the condition does not exist, or if it matches, each subrule is called on the filename until one returns something, which is the return value.
Rules can be marshalled to and from JSON, and from (but currently not to) the ewa rule configuration format implemented in ewa.ruleparser.
|
|||
_template | |||
OriginalName | |||
_jsonable | |||
RuleList | |||
DefaultRule this may be useful as the last rule in a rule-list; it yields the filename passed and nothing else |
|||
MatchRule | |||
And | |||
Or | |||
Not | |||
RegexMatcher | |||
GlobMatcher | |||
CurrentTimeMatch returns true if the current time falls within a datetime range |
|||
FileTimeMatch returns true if a date encoded in a string falls within a date range |
|||
FileRule |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
_json_registry =
|
|||
__package__ =
|
|
_json_registry
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 27 15:42:13 2010 | http://epydoc.sourceforge.net |