Using FS mtime to reload non recursive cache.
[pyTivo.git] / Cheetah / Tools / RecursiveNull.py
blob4897d805fba51fb4dac02583311424e60fc0ed25
1 #!/usr/bin/env python
2 """Nothing, but in a friendly way. Good for filling in for objects you want to
3 hide. If $form.f1 is a RecursiveNull object, then
4 $form.f1.anything["you"].might("use") will resolve to the empty string.
6 This module was contributed by Ian Bicking.
7 """
9 class RecursiveNull:
10 __doc__ = __doc__ # Use the module's docstring for the class's docstring.
11 def __getattr__(self, attr):
12 return self
13 def __getitem__(self, item):
14 return self
15 def __call__(self, *vars, **kw):
16 return self
17 def __str__(self):
18 return ''
19 def __repr__(self):
20 return ''
21 def __nonzero__(self):
22 return 0