Show
Ignore:
Timestamp:
05/31/08 22:01:20 (22 months ago)
Author:
JensDiemer
Message:
  • add a few test for the new plugin models
  • unittest: test plugin would be copied to the normal plugins. So this plugin would be auto installed with all other plugins.
  • Bugfix in lucidTag.py: 1 should not be converted to True ;)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/template_addons/lucidTag.py

    r1365 r1612  
    116116            # method Keywords must be Strings 
    117117            key = key.encode(settings.DEFAULT_CHARSET) 
    118             if value in ("True", "true", "on", "ON", "1"): 
     118            value_lower = value.lower() 
     119            if value_lower in ("true", "on"): 
    119120                value = True 
    120             elif value in ("False", "false", "off", "OFF", "0"): 
     121            elif value_lower in ("false", "off"): 
    121122                value = False 
    122123            method_kwargs[key] = value