Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

View: New views
6 Messages — Rating Filter:   Alert me  

Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Chris Seberino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Purpose of data/ directory? Is it for sessions somehow?

Why TG1 didn't need special dir for sessions?

Sessions are saved in RAM...so why is info saved on the hard drive?

Possible not to use like in TG1?

cs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Christopher Arndt :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Chris Seberino wrote:
> Why TG1 didn't need special dir for sessions?
>
> Sessions are saved in RAM...

I think you answered your own question here. Or did you mean to ask
another question?


Chris

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Mike C. Fletcher-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Chris Seberino wrote:
> Purpose of data/ directory? Is it for sessions somehow?
>
> Why TG1 didn't need special dir for sessions?
>
> Sessions are saved in RAM...so why is info saved on the hard drive?
>
> Possible not to use like in TG1?
>  
TG2 uses the Beaker framework to manage sessions (and cache).  Beaker
provides for any of:

    * memory
    * flat-file
    * DBM file
    * SQLAlchemy DB
    * memcached

storage.  It also does locking (using a file-based locks) of the
sessions.  The various back-ends allow for e.g. sharing sessions among
multiple processes.  You normally will specify that directory this uses
as something like /var/local/myapp/... for production use, the
%(here)s/data directory is simply a convenient location for development
boxes.  As for turning it off, I don't know myself.

HTH,
Mike

--
________________________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://www.vrplumber.com
  http://blog.vrplumber.com


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Chris Seberino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




On Nov 1, 5:10 pm, "Mike C. Fletcher" <mcfle...@...> wrote:
> You normally will specify that directory this uses
> as something like /var/local/myapp/... for production use, the
> %(here)s/data directory is simply a convenient location for development
> boxes.  As for turning it off, I don't know myself.

Thanks.  That answered my question.  I assume if you wanted Beaker to
store your session in RAM that you would not even need to specify
*any* directory for Beaker?

cs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Chris Seberino :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message




On Nov 1, 3:40 pm, Christopher Arndt <chris.ar...@...> wrote:

> > Sessions are saved in RAM...

> I think you answered your own question here. Or did you mean to ask
> another question?

I confusingly was trying to ask why a directory needs to be specified
at all if sessions are stored in RAM.

cs
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Purpose of data/ directory? Why TG1 didn't need special dir for sessions?

by Jorge Vargas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Mon, Nov 2, 2009 at 8:38 PM, Chris Seberino <cseberino@...> wrote:

>
>
>
> On Nov 1, 3:40 pm, Christopher Arndt <chris.ar...@...> wrote:
>
>> > Sessions are saved in RAM...
>
>> I think you answered your own question here. Or did you mean to ask
>> another question?
>
> I confusingly was trying to ask why a directory needs to be specified
> at all if sessions are stored in RAM.
>
As Mike pointed out. The sessions in beaker are by default in the
filesystem not RAM.

> cs
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbogears@...
To unsubscribe from this group, send email to turbogears+unsubscribe@...
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---