| Home | Trees | Index | Help |
|
|---|
| Package cheesecake :: Module cheesecake_index :: Class FilesIndex |
|
object--+ |Index--+ | FilesIndex
IndexRequiredFiles,
IndexSetupPy| Method Summary | |
|---|---|
Get only these of files_rules that didn't match during computation. | |
get_score(self,
name,
specs)
| |
Check if name matches given rule. | |
| Inherited from Index | |
| |
| |
Add information about index computation process, which will be visible with --verbose flag. | |
Add subindex. | |
Compute index value and return it. | |
Decide if this index should be computed. | |
| |
| |
| |
Print index name padded with dots, followed by value and details. | |
Remove subindex (refered by name). | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__repr__() <==> repr(x) | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Property Summary | |
|---|---|
| Inherited from Index | |
max_value | |
requirements | |
| Class Variable Summary | |
|---|---|
str |
name = 'FilesIndex'
|
| Inherited from Index | |
str |
details = ''
|
str |
info = ''
|
NoneType |
subindices = None |
int |
value = -1 |
| Method Details |
|---|
get_not_used(self, files_rules)Get only these of files_rules that didn't match during computation.
>>> rules = {
... Doc('readme'): 30,
... OneOf(Doc('license'), Doc('copying')): 30,
... 'demo': 10,
... }
>>> index = FilesIndex()
>>> index._used_rules.append('demo')
>>> map(lambda x: str(x), index.get_not_used(rules.keys()))
['license/license.html/license.txt/copying/copying.html/copying.txt', 'readme/readme.html/readme.txt']
|
match_filename(self, name, rule)Check if |
| Class Variable Details |
|---|
name
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Feb 9 02:15:12 2007 | http://epydoc.sf.net |