gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / cssutils / settings.py @ 475
History | View | Annotate | Download (556 Bytes)
1 |
"""Experimental settings for special stuff."""
|
---|---|
2 |
|
3 |
def set(key, value): |
4 |
"""Call to enable special settings:
|
5 |
|
6 |
('DXImageTransform.Microsoft', True)
|
7 |
enable support for parsing special MS only filter values
|
8 |
|
9 |
Clears the tokenizer cache which holds the compiled productions!
|
10 |
"""
|
11 |
if key == 'DXImageTransform.Microsoft' and value == True: |
12 |
import cssproductions |
13 |
import tokenize2 |
14 |
tokenize2._TOKENIZER_CACHE.clear() |
15 |
cssproductions.PRODUCTIONS.insert(1, cssproductions._DXImageTransform)
|