Changeset 2062

Show
Ignore:
Timestamp:
06/25/09 10:37:47 (9 months ago)
Author:
JensDiemer
Message:

bugfix: wrong renaming

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/apps/pylucid/fields.py

    r2060 r2062  
    3939    if not isinstance(value, basestring): 
    4040        raise exceptions.ValidationError(_("CSS color value is not a basestring!")) 
    41      
     41 
    4242    if len(value) not in (3, 6): 
    4343        raise exceptions.ValidationError(_("Wrong CSS color length (only 3 or 6 characters)")) 
    44      
     44 
    4545    if not CSS_VALUE_RE.match(value): 
    4646        raise exceptions.ValidationError(_("Error: %r is not a CSS hex color value") % value) 
     
    6969        """ validate the form data """ 
    7070        value = super(ColorValueFormField, self).clean(value) 
    71         validate_css_ColorValue_value(value) 
     71        validate_css_color_value(value) 
    7272        self.value = value 
    7373        return value 
     
    8383    def get_db_prep_save(self, value): 
    8484        "Returns field's value prepared for saving into a database." 
    85         validate_css_ColorValue_value(value) 
     85        validate_css_color_value(value) 
    8686        return value 
    8787 
    8888    def to_python(self, value): 
    89         validate_css_ColorValue_value(value) 
     89        validate_css_color_value(value) 
    9090        return value 
    9191