Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 237214
Collapse All | Expand All

(-)Cheetah-0.9.18-orig/src/NameMapper.py (-6 / +6 lines)
Lines 1-6 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
# $Id: NameMapper.py,v 1.28 2005/01/03 19:05:49 tavis_rudd Exp $
2
# $Id: NameMapper.py,v 1.28 2005/01/03 19:05:49 tavis_rudd Exp $
3
3
4
from __future__ import generators
5
import types
6
from types import StringType, InstanceType, ClassType, TypeType
7
from pprint import pformat
8
import inspect
9
4
"""This module supports Cheetah's optional NameMapper syntax.
10
"""This module supports Cheetah's optional NameMapper syntax.
5
11
6
Overview
12
Overview
Lines 143-154 Link Here
143
             "\nChuck Esterbrook <echuck@mindspring.com>"
149
             "\nChuck Esterbrook <echuck@mindspring.com>"
144
__revision__ = "$Revision: 1.28 $"[11:-2]
150
__revision__ = "$Revision: 1.28 $"[11:-2]
145
151
146
from __future__ import generators
147
import types
148
from types import StringType, InstanceType, ClassType, TypeType
149
from pprint import pformat
150
import inspect
151
152
_INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False
152
_INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False
153
_ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True
153
_ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True
154
__all__ = ['NotFound',
154
__all__ = ['NotFound',
(-)Cheetah-0.9.18-orig/src/Tests/NameMapper.py (-6 / +7 lines)
Lines 1-5 Link Here
1
#!/usr/bin/env python
1
#!/usr/bin/env python
2
# $Id: NameMapper.py,v 1.10 2005/01/03 20:11:13 tavis_rudd Exp $
2
# $Id: NameMapper.py,v 1.10 2005/01/03 20:11:13 tavis_rudd Exp $
3
4
from __future__ import generators
5
import sys
6
import types
7
import os
8
import os.path
9
3
"""NameMapper Tests
10
"""NameMapper Tests
4
11
5
Meta-Data
12
Meta-Data
Lines 12-23 Link Here
12
__author__ = "Tavis Rudd <tavis@damnsimple.com>"
19
__author__ = "Tavis Rudd <tavis@damnsimple.com>"
13
__revision__ = "$Revision: 1.10 $"[11:-2]
20
__revision__ = "$Revision: 1.10 $"[11:-2]
14
21
15
from __future__ import generators
16
import sys
17
import types
18
import os
19
import os.path
20
21
import unittest_local_copy as unittest
22
import unittest_local_copy as unittest
22
from Cheetah.NameMapper import NotFound, valueForKey, \
23
from Cheetah.NameMapper import NotFound, valueForKey, \
23
     valueForName, valueFromSearchList, valueFromFrame, valueFromFrameOrSearchList
24
     valueForName, valueFromSearchList, valueFromFrame, valueFromFrameOrSearchList

Return to bug 237214