Parent Directory | Revision Log | Patch
revision 1.11 by lalo, Fri Feb 21 23:29:40 2003 UTC | revision 1.12 by lalo, Thu Feb 27 19:04:50 2003 UTC | |
---|---|---|
# | Line 204 class PlacelessTranslationService: | Line 204 class PlacelessTranslationService: |
204 | for string in to_replace: | for string in to_replace: |
205 | var = _get_var_regex.findall(string)[0] | var = _get_var_regex.findall(string)[0] |
206 | value = get(mapping, var) | value = get(mapping, var) |
207 | if callable(value): | try: |
208 | value = value() | value = value() |
209 | except (TypeError, AttributeError): | |
210 | pass | |
211 | if value is None: | if value is None: |
212 | value = string | value = string |
213 | if type(value) not in (StringType, UnicodeType): | if type(value) not in (StringType, UnicodeType): |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |