Em Sábado 22 Abril 2006 11:18, Steve Bergman escreveu: > Jorge Godoy wrote: > >You might want to remove this constraint and send a patch to Trac. I > > believe that having it allowing NULLs wouldn't break something (and it is > > easier to add a constraint that it is to remove it). > > It just occurred to me... If I extend TG_User, will SQLObject's > inheritance allow me to actually override the emailaddress column > definition, or can I only add fields?
I haven't tried it... But since you'll end up with 2 classes and hence 2 tables, I believe it will still require that. What you may try is inheriting from TG_User and then writing a setter to duplicate some information -- such as user_name -- into this unwanted field... There's no validation at SQLObject level so if you respect the type of the field it all should be OK. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

