It is valid if you assigned something to it. That's how Python works. 2010/11/26 António Ramos <ramstei...@gmail.com>: > I got no error when i save my model. > It sould give some error because > db.database.field.require is not valid > I think..... > António > 2010/11/26 Richard Vézina <ml.richard.vez...@gmail.com> >> >> And what will happen if we want to use require key word for an other >> purpose?? >> Are you mean require or requires messages each type I write a line of >> code? >> May be you need a IDE (eclispe with python plugin) that will try to >> complete the code you are typing... It may prevent some typo. >> >> >> Richard >> >> 2010/11/26 António Ramos <ramstei...@gmail.com> >>> >>> Hello i have a model and this line >>> >>> db.trabalhadores.empreiteiro.require=IS_IN_DB(db,'empreiteiros.id','%(empreiteiro)s') >>> it hapens that there is no error from web2py but when i insert a record i >>> got no dropdownlist for field empreiteiro. >>> After copy paste some examples i noticed that it is not require but >>> requires >>> Shouldn´t web2py warned me about the type error? >>> >>> I lost 15 minutes looking for the bug. >>> >>> Best regards >>> António > >
-- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio: http://www.flickr.com/photos/foxbunny/ Registered Linux user #438078 (http://counter.li.org/) I hang out on identi.ca: http://identi.ca/foxbunny Gimp Brushmakers Guild http://bit.ly/gbg-group