Hi folks,

I'm having a bit of mental blank.

I'm trying to create a validator in the model for a postcode entry in
SQLFORM to strip all spaces and non-alphanumeric characters like this:

db.data.postcode.requires=[IS_NOT_EMPTY(), CLEANUP([48-57,65-90,97-122])]

I'm getting the following error:

<type 'exceptions.TypeError'>(unhashable type: 'list')

What am I doing wrong? :-S

Thanks

Chris

Reply via email to