>> I do not really see the problem? validators? Date format for sqlobject?
>>     
>
> jour = DateCol(alternateID=True)
>
> is your problem. It implies a unique-constraint on the DB.
Not exactly. I understand this constraint and I want it.
The problem is that

        try:
            day = Jour.byJour(Date)
            day.texte = Texte
        except SQLObjectNotFound:
            Jour(classe="", jour=Date, texte=Texte)


does not work, even if the date is already in the database, it goes to
the except part....


Mike


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to