-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

You should use db.tables instead:

for table in db.tables:
  (...)

Em 23-09-2012 12:56, Hassan Alnatour escreveu:
> Dear ALL , 
> 
> i am getting  this error 
> 
> 
>         'DAL' object has no attribute 'keys'
> 
> 
> when using this code :
> 
> for table in db.keys():
>   if not (table.startswith('_') or table in badmin_tables):
>     if db[table] and not table in badmin_exclude_tables:
>       if isinstance(db[table],db.Table):
>           if table == "auth_user" :
>             badmin_tables[table]={
>               #'columns':db[table].fields[:3],
>               'columns':['first_name','last_name','Country','Age','email'],
>               'filters':['first_name','Country','Age'],
>             }
>           else:
>               
>             badmin_tables[table]={
>               'columns':db[table].fields[:3],
>               'filters':[],
>             }
> 
> 
> whey cant i use db.keys now ? how can i fix this 
> 
> Best Regards,
> 
> -- 
>  
>  
>  


- -- 
Com os melhores cumprimentos,

Carlos Correia
=========================
MEMÓRIA PERSISTENTE
Tel.: 219 291 591 - GSM:  917 157 146 / 967 511 762
e-mail: ge...@memoriapersistente.pt - URL: http://www.memoriapersistente.pt
Jabber: m...@jabber.org
GnuPG: wwwkeys.eu.pgp.net
URL Suporte: https://ky.m16e.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBfFQUACgkQ90uzwjA1SJV2MgCgsDp8Lc1OFdQnmadf9ujPwPsc
CTAAoNf60JBOaz2SKnkLUQFj3R9kbPsc
=Z4bK
-----END PGP SIGNATURE-----

-- 



Reply via email to