Re: Access request object in model's hooks and display methods

2005-11-20 Thread rotmer
Adrian Holovaty wrote: Seems like its not possible to access request object in hooks like pre_save and display methods(those are listed in list_display) ? Is it supposed to be like this by design ? If so then hardly its very convinient to use in real applications. Yes, this is by design. Model

Re: Access request object in model's hooks and display methods

2005-11-17 Thread Ian Holsman
couldn't we do something similar to get_active_site() call on the sites table? that way people who need the 'request' object could just call it and it wouldn't impact the api of anything else? On 11/18/05, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 11/17/05, plisk <[EMAIL PROTECTED]> wrot

Re: Access request object in model's hooks and display methods

2005-11-17 Thread Adrian Holovaty
On 11/17/05, plisk <[EMAIL PROTECTED]> wrote: > Seems like its not possible to access request object in hooks like > pre_save and display methods(those are listed in list_display) ? Is it > supposed to be like this by design ? If so then hardly its very > convinient to use in real applications. Y

Re: Access request object in model's hooks and display methods

2005-11-17 Thread plisk
limodou wrote: > 2005/11/17, plisk <[EMAIL PROTECTED]>: > > > > Hi there. > > > > Seems like its not possible to access request object in hooks like > > pre_save and display methods(those are listed in list_display) ? Is it > > supposed to be like this by design ? If so then hardly its very > > co

Re: Access request object in model's hooks and display methods

2005-11-17 Thread limodou
2005/11/17, plisk <[EMAIL PROTECTED]>: > > Hi there. > > Seems like its not possible to access request object in hooks like > pre_save and display methods(those are listed in list_display) ? Is it > supposed to be like this by design ? If so then hardly its very > convinient to use in real applica

Access request object in model's hooks and display methods

2005-11-17 Thread plisk
Hi there. Seems like its not possible to access request object in hooks like pre_save and display methods(those are listed in list_display) ? Is it supposed to be like this by design ? If so then hardly its very convinient to use in real applications. For example, i would like to get server addre