On 11 Jul 2012, at 7:09 AM, hasan alnator wrote:
> Dear David,
> 
> the '&' is not supported when i use it i get this : 
> 
>  unsupported operand type(s) for &: 'str' and 'Field'
> 

video = db((db.Videos.Video_Type == "XXX") & (db.Videos.Teacher == 
"xx")).select(db.Videos.ALL)  


> On Wed, Jul 11, 2012 at 1:41 PM, David Marko <dma...@tiscali.cz> wrote:
> Should not this ...
> video = db(db.Videos.Video_Type == "XXX" and db.Videos.Teacher == 
> "xx").select(db.Videos.ALL) 
> 
> be rather like this? (see and  vs. &)
> video = db(db.Videos.Video_Type == "XXX" & db.Videos.Teacher == 
> "xx").select(db.Videos.ALL)  
> 


Reply via email to