Luca Verardi ha scritto:
> On Jul 6, 1:09 pm, Glauco <[email protected]> wrote:
>   
>> Luca Verardi ha scritto:
>>
>>     
>>> Thanks for the answer but i don't want hidden it but delete it.
>>> I check my query with SA and i see that i don't write this more query
>>> in my code.
>>>       
>> This is because your application has the identity facility enabled...
>> So every time you get from a controller decorated with @identity...
>> tg do all stuff for you.
>>
>> seehttp://docs.turbogears.org/1.0/Identity
>>
>>     
>
> I see your link but i didn't found any reference how to stop this
> query's behaviour.
> I want that TG takes in memory the login and stop to ask the database
> the credential for the autentications
>   

Seems, TG executes the same query every time you try to access a 
controller's function.
Perhaps, what you need is a way to configure identity to keep in mind 
any authentication to decrease
database access.
For example if you access, is say, http://pippo/pluto
TG identity checks if you have the credentials to access pluto,
if so, you expect that TG saves in cache this authentication in such way
the next time you access: http://pippo/pluto, the credential is already 
in cache and
TG avoid another access to DB.
I don't know if there's a way to configure identity in economy way.

j
 
 


> >
>   


-- 
Jose Soares
Sferacarta Net 
Via Bazzanese 69
40033 Casalecchio di Reno
Bologna - Italy
Ph  +39051591054
fax +390516131537
web:www.sferacarta.com

Le informazioni contenute nella presente mail ed in ogni eventuale file 
allegato sono riservate e, comunque, destinate esclusivamente alla persona o 
ente sopraindicati, ai sensi del decreto legislativo 30 giugno 2003, n. 196. La 
diffusione, distribuzione e/o copiatura della mail trasmessa, da parte di 
qualsiasi soggetto diverso dal destinatario, sono vietate. La correttezza, 
l'integrità e la sicurezza della presente mail non possono essere garantite. Se 
avete ricevuto questa mail per errore, Vi preghiamo di contattarci 
immediatamente e di eliminarla. Grazie.
 
This communication is intended only for use by the addressee, pursuant to 
legislative decree 30 June 2003, n. 196. It may contain confidential or 
privileged information. You should not copy or use it to disclose its contents 
to any other person. Transmission cannot be guaranteed to be error-free, 
complete and secure. If you are not the intended recipient and receive this 
communication unintentionally, please inform us immediately and then delete 
this message from your system. Thank you.

 


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to