If the doc pages on SO in TG and SO had big fat red messages at the top of them 
warning about this, 
then yes, perhaps, but as it stands they don't. Also, an ex-manual SQL 
developer coming to TG would 
not probably think about the problems associated with using reserved keywords, 
as he/she's used to 
escaping them and would probably (and not unreasonably) assume that his ORM 
dealt with escaping 
fields properly anyway.

IMO, if I were using SQL itself I wouldn't have a problem with reserved 
keywords. However TG 
strongly recommends MVC with an ORM, and as such, should at least provide some 
contextual warning 
about reserved keywords - if not at least on "tg-admin sql create". As has been 
pointed out - "if kw 
in dict" is a very efficient operation in Python. In fact python has one of the 
most efficient 
hashtable lookup algorithms in the known universe.

-Rob

Jorge Godoy wrote:
> Just because it doesn't fly it can't run?  ;-)  I don't believe that we have 
> to make things worse to protect the developer from shooting himself, after 
> all, as you said, such listings are freely available.
> 

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to