Actually on another note: http://pylonshq.com/docs/en/0.9.7/sessions/ - suggests that the default backend is dbm, when the beaker code sets the default to be file if a data_dir is specified. Does pylons override this somewhere, or are the docs out of date?
from the doc: ========== type Accepts: string Default: dbm Type of storage used for the session, current types are “dbm”, “file”, “memcached”, “database”, and “memory”. The storage uses the Container API that is also used by the cache system. ============ Cheers, Damian On Dec 5, 5:04 pm, Damian <[email protected]> wrote: > Hey Jonathan, > > Thanks for that - I seem to have had my brain switched off - the > sessions are not (nessecarily) stored as bdb, i just realised that > what I am using is the default backend for beaker sessions in pylons. > So, I don't actually know if it's file or dbm (which I think/thought > uses bdb?). If it's file based, deleting is safe, if its bdb I'll > have to do some other magic. > > Ok, so I went and checked the beaker code: > In Session's __init__: > if not type: > if data_dir: > self.type = 'file' > else: > self.type = 'memory' > else: > self.type = type > > so this probably means I am using file based as I have a data_dir > defined and don't explicitly specify a type, therefore deleting should > be ok... > > Sorry for the confusion and thanks for all the responses, much > appreciated! > Damian > > On Dec 4, 10:34 pm, Jonathan Vanasco <[email protected]> wrote: > > > > > sorry, clears out old bdb entries. not files. within bdb clear out > > the entries -- do not delete files in the fs. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
