On 2/20/06, coulix <[EMAIL PROTECTED]> wrote:
#Validator
def isValideImageWeight(self, field_data, all_data):
        print field_data
        if len(field_data["content"] > 100000 ) : # 500,000 bytes (100kB)
                raise validators.ValidationError, "Le fichier ne dois pas depasser
100kb"

Typo?

--
Amit Upadhyay
Blog: http://www.rootshell.be/~upadhyay
+91-9867-359-701
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to