Re: Bug in inspectdb.py and changes in Firebird backend files?

2009-09-28 Thread Thomas Steinmaurer
Hi! >> I'm using Django with Firebird and Oracle as backends. When integrating >> with a legacy Firebird database using the inspectdb command, I guess I >> hit a bug in inspectdb.py (although I'm not entirely sure), which does >> affect extracting foreign key relationships. >> >> Starting in line

Combined sort order in admin area?

2009-09-28 Thread Thomas Steinmaurer
Hello, is there a way to have a combined sort order in a list in the admin area? For example ascending order by one field and descending order by another field? Thanks, Thomas --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

Templatetags and admin issues

2009-09-28 Thread CALdan
'adminmedia' is not a valid tag library: Could not load template library from django.templatetags.adminmedia, No module named adminmedia Hi! I'm getting the above error message when I try to access the admin module of Django. I also seem to be having a problem where django is only looking in si

Re: Setting tzinfo for DateTimeFields with Postgresql - workaround

2009-09-28 Thread George Song
Sounds about right to me. Hopefully I'll have more time after this month to pick this up again. On Aug 16, 6:24 pm, Ramiro Morales wrote: > Hi George, > > On Thu, May 21, 2009 at 7:56 PM, George Song wrote: > > > Hi Glenn, > > > When you get the chance can you review my proposal[1] for fixing >

Re: create author before adding a book - edit form

2009-09-28 Thread Rochak Neupane
Alright, perhaps my description of the problem was not very clear. Hadn't gone back to it, but using "initial" when creating form solved the problem. On Wed, Sep 2, 2009 at 1:56 PM, Rochak Neupane wrote: > Taking the Book and Author example from > http://docs.djangoproject.com/en/dev/topics/for

Re: Does the auto_now attribute do updates even if the same data is inserted?

2009-09-28 Thread Jani Tiainen
Iqbal Abdullah kirjoitti: > Hi guys, > > I have a quick question: > > I have set auto_now=True for one of my DateTimeFields. > > Lets say I have a model object like so: > >>> a = MyModel.objects.get(id="10") >>> print a.id >>> "10" >>> a.id = "10" >>> a.save() > Yes. Django doesn't have "di

Re: Cannot build psycopg2 in x86_64

2009-09-28 Thread Adam V.
If I remember correctly (and I might not be, and my 10.5 box is at work), the Python that comes with 10.5 does not have 64-bit support baked in, which basically means that extensions compiled against it won't either. You'll either need to build a custom Python w/ 64-bit support, or force the buil

Include multiple entries in Atom feed

2009-09-28 Thread peppergrower
I've read Django's documentation on its syndication framework, and it's mostly pretty thorough. I set up an Atom feed that seems to work just fine. However, I'd like to include the last several entries in my feed: how can I do this in Django? (I'm creating an Atom 1.0 feed, in case it matters.)

Cannot build psycopg2 in x86_64

2009-09-28 Thread Simon Lee
I am trying to deploy the django app that from the django development server to the Apache on Leopard. When I try to launch the app from my browser, I got a "Internal Server Error". I checked the error_log and here's the error: [Mon Sep 28 00:43:29 2009] [error] [client 127.0.0.1] ImproperlyConfi

Re: Does the auto_now attribute do updates even if the same data is inserted?

2009-09-28 Thread Matt Schinckel
On Sep 28, 11:27 pm, Iqbal Abdullah wrote: > Hi guys, > > I have a quick question: > > I have set auto_now=True for one of my DateTimeFields. > > Lets say I have a model object like so: > > >> a = MyModel.objects.get(id="10") > >> print a.id > >> "10" > >> a.id = "10" > >> a.save() > > will this

how to change the default subject of password reset mail?

2009-09-28 Thread lzhshen
Hi, Anyone know how to change the default subject of password reset mail? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com T

Re: Help on query

2009-09-28 Thread luismmontielg
Actually there it is, users = models.ManyToManyField(User, symmetrical=True) but I want to filter only the reports that contain only this user, or exclude the ones that do not have the user. Thanks again On 28 sep, 20:16, luismmontielg wrote: > sorry forgot to mention its a many to many rela

Re: Help on query

2009-09-28 Thread luismmontielg
sorry forgot to mention its a many to many relation so a report can have multiple users On Sep 28, 4:29 pm, Joshua Russo wrote: > On Mon, Sep 28, 2009 at 7:55 PM, luismmontielg wrote: > > > > > > > > > Hello, > > I have my models like this... > > > class Report(models.Model): > >    title = mode

uploading a photo fails

2009-09-28 Thread Nicolas Aggelidis
hi djangonaughts, i have the following problem: i have a Photo model, among other things it contains: [=== models.py ===] import os def get_image_path(instance, filename): return os.path.join('photos', filename) class Photo(models.Model): ... image = models.ImageField('im

Optional trailing slash in App URLs

2009-09-28 Thread Nuno Machado
Hello all, I really enjoy the default Django behaviour of handling URL trailing slashes. If one have: (r'^contact', views.contact), It doesn't matter if someone visits mywebsite.com/contact OR mywebsite.com/contact/. It'll work anyway! The problem is when including app urls, for instance: (r'

Recursion without breaking MVC!

2009-09-28 Thread Nuno Machado
Hi djangoers, I've a simple category Model: class Category(models.Model): name = models.CharField(max_length=63) children = models.ManyToManyField('self', symmetrical=False, related_name='parent') I need to create a webpage to display all the categories with proper indentation, somethin

Re: Any one knows equivalent non php plugin for this?

2009-09-28 Thread Sean Perry
On Mon Sep 28 15:04 , ydjango sent: > >http://www.frontpageslideshow.net/ > > >Anyone knows equivalent plugin of above which I can use in python/ >django site. > >The plugin above is in jquery and php. Most of the magic is in the javascript (they use jQuery) and CSS, integrating that with Dja

Any one knows equivalent non php plugin for this?

2009-09-28 Thread ydjango
http://www.frontpageslideshow.net/ Anyone knows equivalent plugin of above which I can use in python/ django site. The plugin above is in jquery and php. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django user

Testing feed generators doesn't load attribute templates?

2009-09-28 Thread Kyle MacFarlane
I extended django.utils.feedgenerator.Atom1Feed for my own needs and am trying to write some tests for it. It works fine from rusnserver and mod_wsgi. Basically, when feeds are accessed from the testrunner I'm running into these problems: 1) The item_title() and item_description() methods are ne

Re: Help on query

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 7:55 PM, luismmontielg wrote: > > Hello, > I have my models like this... > > class Report(models.Model): >title = models.CharField(max_length=50, blank=True) >users = models.ManyToManyField(User, symmetrical=True) >categories = models.ManyToManyField("Category",

Re: QuerySet hang

2009-09-28 Thread Michael
On Mon, Sep 28, 2009 at 2:38 AM, Waqas wrote: > > I have written an offline application. In this application, i have > written following code: > > rs = InqueuePing.objects.filter(processed = 0).order_by('-timestamp') > > if rs: >#bla bla bla here > > > The process is hanging on evaluating the

Help on query

2009-09-28 Thread luismmontielg
Hello, I have my models like this... class Report(models.Model): title = models.CharField(max_length=50, blank=True) users = models.ManyToManyField(User, symmetrical=True) categories = models.ManyToManyField("Category", through='ReportDetail', \ symmetrical=True) I

Re: regex query delivering incorrect results

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 4:00 PM, janedenone wrote: > > Hi, > > this > > pages = Page.objects.exclude(content__iregex=r'^[\n\r \t]*<') > > should deliver the same rows as this > > SELECT ... FROM pages WHERE (content NOT REGEXP '^[\n\r \t]*<') > > but it does not: The Django query delivers 468 rows

Re: custom dynamic admin actions

2009-09-28 Thread J
Joshua Russo wrote: > It sounds like you just want defaults for your relationships. Is that > right? How are you determining which account to use? > No. I want admin actions at the top of my list similar to "Delete selected ..." so that I can select a bunch of records and set the foreign key for

Re: multi-db vs. data warehouse

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 6:36 PM, David Larlet wrote: > > Le 22 sept. 2009 à 03:10, snfctech a écrit : > > I understand that there is a Django branch being actively worked on > > for connections to multiple DB vendors, or that Django + Elixir may be > > a good option. But I'm wondering if building

regex query delivering incorrect results

2009-09-28 Thread janedenone
Hi, this pages = Page.objects.exclude(content__iregex=r'^[\n\r \t]*<') should deliver the same rows as this SELECT ... FROM pages WHERE (content NOT REGEXP '^[\n\r \t]*<') but it does not: The Django query delivers 468 rows, whereas the SQL query delivers 223. It could be that the Django quer

Re: multi-db vs. data warehouse

2009-09-28 Thread David Larlet
Le 22 sept. 2009 à 03:10, snfctech a écrit : > I understand that there is a Django branch being actively worked on > for connections to multiple DB vendors, or that Django + Elixir may be > a good option. But I'm wondering if building a single data warehouse > may still be a better way to go? S

Incorrect Python path in Apache FCGI deployment

2009-09-28 Thread W.P. McNeill
I have written a set of Django apps that works on my development machine but fails when I deploy it to Apache. The issue appears to be with the Python path that the Apache process is using, but none of the things I have tried have worked. I'm looking for suggestions as to what I am doing wrong.

Re: multi-db vs. data warehouse

2009-09-28 Thread Joshua Russo
I've never used Elixir so I can't really comment on the pros and cons. With my personal experience I would go with an ETL and copy the desired data directly into your ordering system. Just keep in mind that these new tables should stay read-only as far as the ordering system goes. The data would be

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Aaron
It actually is working now. The files that were being served were just outdated, and everything started working perfectly after I replaced them with updated ones. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

admin get_urls method

2009-09-28 Thread paulh
Can somebody suggest things that you might do with the new(1.1) get_urls method in ModelAdmin? I suspect that I must be missing something. Paul Hide --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" grou

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 12:31 PM, Aaron wrote: > > Sorry for the double post, but I forgot to mention something else. > Ever since I changed MEDIA_URL to '/site_media/' I no longer get the > "jQuery is not defined" error. However, I get a different set of > errors: > > Warning: Error in parsing v

Re: TypeError: save() got an unexpected keyword argument 'profile_callback'

2009-09-28 Thread Gloria
Beautiful! Thanks for this very concise response. It helped greatly. Gloria --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To u

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 12:23 PM, Aaron wrote: > > On Sep 28, 12:23 pm, Karen Tracey wrote: > > You need to ensure that the requests for your JavaScript files match the > > pattern you have specified here for files to be served by the static > > server. Earlier you said your MEDIA_URL is blank,

Many-To-Many relationships with additional attribute

2009-09-28 Thread Myers
Hi, I'm fairly new to Django. Util now I only made some standard apps/ sites. But now I have to solve a problem with a many-to-many relationship that contains an extra attribute in an intermediate model (as it is described here: http://docs.djangoproject.com/en/dev/topics/db/models/#extra-fields

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Aaron
Sorry for the double post, but I forgot to mention something else. Ever since I changed MEDIA_URL to '/site_media/' I no longer get the "jQuery is not defined" error. However, I get a different set of errors: Warning: Error in parsing value for 'filter'. Declaration dropped. Source File: http://

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Aaron
On Sep 28, 12:23 pm, Karen Tracey wrote: > You need to ensure that the requests for your JavaScript files match the > pattern you have specified here for files to be served by the static > server.  Earlier you said your MEDIA_URL is blank, which may be the > problem.  If you are using MEDIA_URL t

Re: multi-db vs. data warehouse

2009-09-28 Thread Tony Schmidt
"If you need to link one order item to other data in the warehouse it should only either be done in the warehouse or between the systems outside of the warehouse." Now we're back to the crux of the topic! Joins in the warehouse, or cross-vendor joins between disparate systems? If multi-db _were

Re: My Django powered website for web based learning

2009-09-28 Thread Parag Shah
Thanks Alex. I am glad you liked the course videos, I am also planning to add more videos as I find them. -- Thanks & Regards Parag Shah http://blog.adaptivesoftware.biz On Mon, Sep 28, 2009 at 4:24 PM, Alex wrote: > > Good job! Didn't have much time to check the content but the first 4 > or 5

Re: Adding foreign key to User model

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 11:25 AM, triman wrote: > > I'm sure there is an easy way to do this, but I can't seem to make it > work. I need to add a couple foreign key references to the User model > (defined in the admin application). I've imported the admin User, > but it still fails to resolve

Re: Performing a db operation at session end

2009-09-28 Thread Christophe Pettus
On Sep 28, 2009, at 12:53 AM, gontran wrote: > I would like to know if it's possible to automatically perform a db > operation at the end of a session. The traditional way of doing things like that is to run a job using cron, which detects expired sessions and does whatever releasing is requ

Adding foreign key to User model

2009-09-28 Thread triman
I'm sure there is an easy way to do this, but I can't seem to make it work. I need to add a couple foreign key references to the User model (defined in the admin application). I've imported the admin User, but it still fails to resolve it. Does it need to refered to it by it's full class name?

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 10:30 AM, Aaron wrote: > > On Sep 28, 9:38 am, Karen Tracey wrote: > > No, I mean the config for the static server: > > > > http://docs.djangoproject.com/en/dev/howto/static-files/ > > > > The Django development server does not serve static files out of > MEDIA_ROOT > > b

Re: How to establish foreign key contraints across models living in different applications

2009-09-28 Thread David De La Harpe Golden
guillermooo wrote: > > I suppose you mean in terms of performance? Could you please elaborate > on the disadvantages? > They're not database-level foreign keys. So no db-level integrity checks. You also can't presently use them in an easy manner in more complex queries (aggregation). They mi

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Aaron
On Sep 28, 9:38 am, Karen Tracey wrote: > No, I mean the config for the static server: > > http://docs.djangoproject.com/en/dev/howto/static-files/ > > The Django development server does not serve static files out of MEDIA_ROOT > by default, you have to configure the static server to do this. We

Does the auto_now attribute do updates even if the same data is inserted?

2009-09-28 Thread Iqbal Abdullah
Hi guys, I have a quick question: I have set auto_now=True for one of my DateTimeFields. Lets say I have a model object like so: >> a = MyModel.objects.get(id="10") >> print a.id >> "10" >> a.id = "10" >> a.save() will this cause my DateTimeField to change it's timestamp? --~--~-~--~-

Authentication Backend: get access to request

2009-09-28 Thread Florian Schweikert
Hi, I'm writing an own auth backend at the moment, but I need access to the request object. I found a possible solution with adding settings.request = request into a middleware, but that's seems not beautilful to me. My backend is something like this at the moment, to check the hash I need the cl

Re: TinyMCE in Admin (Practical Django Projects book)

2009-09-28 Thread Alex Robbins
If you use the net tab of firebug[1] you can tell when url/file paths are messed up. That is the only way I ever get tinymce running. [1]http://getfirebug.com/ On Sep 27, 7:29 am, Erik Kronberg wrote: > On Sun, Sep 27, 2009 at 1:54 PM, James Bennett wrote: > > > > > > > On Sun, Sep 27, 2009 at

Re: custom dynamic admin actions

2009-09-28 Thread Joshua Russo
It sounds like you just want defaults for your relationships. Is that right? How are you determining which account to use? On Mon, Sep 28, 2009 at 12:30 PM, J wrote: > > Joshua Russo wrote: > > When do you want your "dynamic actions" take place? > > > > I apoligize if I was unclear. I am referri

Re: What JavaScript framework do you use and why?

2009-09-28 Thread Joshua Russo
MooTools does look interesting. What would you miss most about it, if you had to develop without it? On Mon, Sep 28, 2009 at 11:07 AM, justind wrote: > > Joshua, > > Take a look at MooTools. It's a great library with a great API. It's > been said that JQuery makes the DOM fun, but MooTools makes

Re: custom dynamic admin actions

2009-09-28 Thread J
Joshua Russo wrote: > When do you want your "dynamic actions" take place? > I apoligize if I was unclear. I am referring to the admin actions that one can select from a select box at the top of lists in admin pages. It's described at http://docs.djangoproject.com/en/dev/ref/contrib/admin/action

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Karen Tracey
On Mon, Sep 28, 2009 at 8:16 AM, Aaron wrote: > > On Sep 25, 8:19 pm, Karen Tracey wrote: > > You don't say how you are serving these files. Are you running the > > development server? If so what does your static server config look like? > > Yes, this is on the development server. The one you

Re: Bug in inspectdb.py and changes in Firebird backend files?

2009-09-28 Thread Russell Keith-Magee
On Mon, Sep 28, 2009 at 6:58 PM, Thomas Steinmaurer wrote: > > Hello, > > I'm using Django with Firebird and Oracle as backends. When integrating > with a legacy Firebird database using the inspectdb command, I guess I > hit a bug in inspectdb.py (although I'm not entirely sure), which does > af

Re: Files in MEDIA_ROOT not getting accessed on Windows

2009-09-28 Thread Aaron
On Sep 25, 8:19 pm, Karen Tracey wrote: > You don't say how you are serving these files.  Are you running the > development server?  If so what does your static server config look like? Yes, this is on the development server. The one you get by running "python manage.py runserver". If by stati

Re: Moving the .py(c|o) files out of the app?

2009-09-28 Thread Adam Stein
Another option is to use a build tool. I use waf (http://code.google.com/p/waf/), a Python-based framework for configuring, compiling and installing applications. I have it set up so that it compiles the Python files, copies Python and other types of files to an installed location, then remove t

Re: What JavaScript framework do you use and why?

2009-09-28 Thread justind
Joshua, Take a look at MooTools. It's a great library with a great API. It's been said that JQuery makes the DOM fun, but MooTools makes Javascript fun. On Sep 28, 4:37 am, Joshua Russo wrote: > On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote: > > > Joshua Russo kirjoitti: > > > Great link

Bug in inspectdb.py and changes in Firebird backend files?

2009-09-28 Thread Thomas Steinmaurer
Hello, I'm using Django with Firebird and Oracle as backends. When integrating with a legacy Firebird database using the inspectdb command, I guess I hit a bug in inspectdb.py (although I'm not entirely sure), which does affect extracting foreign key relationships. Starting in line 67: if i

Re: My Django powered website for web based learning

2009-09-28 Thread Alex
Good job! Didn't have much time to check the content but the first 4 or 5 videos seemed very interesting. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to djan

Re: Django-Storages

2009-09-28 Thread David Larlet
Hello Nick, It looks like the issue comes from the definition of: > DEFAULT_FILE_STORAGE = 'backends.s3.S3Storage' You must set the complete path here, for instance 'django_storages.backends.s3.S3Storage' or wherever you installed it. Hope it helps, do not hesitate to email me personally. Re

Re: Is Django thread safe?

2009-09-28 Thread Johny
Yes, I wanted to know also if Django can be used with Apache's Worker MPM? I use it ( together with older Django version) but with problems.I often receive error like this if self.connection.get_server_info() >= '4.1': InterfaceError: (0, '') So I thought it could be a problem of Apache's

Re: Performing a db operation at session end

2009-09-28 Thread gontran
Thank you for your answer. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django

Re: Is Django thread safe?

2009-09-28 Thread James Bennett
On Mon, Sep 28, 2009 at 4:34 AM, Torsten Bronger wrote: > Can it be safely used with Apache's Worker MPM? The answer is, basically, "it depends on what *you*, the programmer, do". The current stable releases of Django -- 1.0.3 and 1.1 -- don't by themselves do anything which is known to cause t

Re: Is Django thread safe?

2009-09-28 Thread Torsten Bronger
Hallöchen! Chris Withers writes: > Pythoni wrote: > >> Is Django thread safe?If so, from which version? Thanks for >> reply > > The answer is most likely "no, but it doesn't matter". > > Why are you asking? Can it be safely used with Apache's Worker MPM? Tschö, Torsten. -- Torsten Bronger,

Re: Performing a db operation at session end

2009-09-28 Thread Jani Tiainen
gontran kirjoitti: > Hello, > > I would like to know if it's possible to automatically perform a db > operation at the end of a session. > > For example: a client book an item in a store but don't ckeck out his > cart and close his browser. The item booked (which was unavailable > during the ses

Re: Is Django thread safe?

2009-09-28 Thread Chris Withers
Pythoni wrote: > Is Django thread safe?If so, from which version? > Thanks for reply The answer is most likely "no, but it doesn't matter". Why are you asking? Chris -- Simplistix - Content Management, Batch Processing & Python Consulting - http://www.simplistix.co.uk --~--~-

Is Django thread safe?

2009-09-28 Thread Pythoni
Is Django thread safe?If so, from which version? Thanks for reply L. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubsc

Re: Windows compatible?

2009-09-28 Thread Geobase Isoscale
Hi, try this bits you might find some window installation very easy and complete with Django and GeoDjango for windows.. http://geodjango.org/docs/install.html Adam Kipkemei --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: custom dynamic admin actions

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 4:30 AM, J wrote: > > Hello, > > I need to add custom dynamic admin actions (based on records in a > related table), but I'm not entirely sure how to do this, as it's not > explained in the docs. > > Basically, I have two models: "Transaction", which has a foreign key to >

Re: How to establish foreign key contraints across models living in different applications

2009-09-28 Thread guillermooo
Paul, > then generic keys may be the way to go. If however, you are simply > having one of your own apps depend on another I strongly suggest not > using generic foreign keys, they have drawbacks that could hinder you > down the road. I suppose you mean in terms of performance? Could you please

Re: What JavaScript framework do you use and why?

2009-09-28 Thread Joshua Russo
On Mon, Sep 28, 2009 at 4:00 AM, Jani Tiainen wrote: > > Joshua Russo kirjoitti: > > Great links guys, thanks. I'm still in the mindset of frameworks just > > making JavaScript less painful too and I'm looking for ways to move > > beyond that. I just started looking at Dojo before posting this an

Re: login_required redirects to a specific url

2009-09-28 Thread V
unfortunately, the redirect_field_name sets the "name" part of the get variable, like instead of http://127.0.0.1:8000/accounts/login/?next=/my/view you get http://127.0.0.1:8000/accounts/login/?redirect_to=/my/view On Sep 27, 5:34 pm, "Сергей Зигачев" wrote: > Sorry, maybe you should use som

Re: Admin URLs not working correctly

2009-09-28 Thread Michael Williamson
> If you move your admin registrations to an admin.py file > I believe your problem will go away. Right you are! Well, that was somewhat foolish of me. Thanks for your patience. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to th

Performing a db operation at session end

2009-09-28 Thread gontran
Hello, I would like to know if it's possible to automatically perform a db operation at the end of a session. For example: a client book an item in a store but don't ckeck out his cart and close his browser. The item booked (which was unavailable during the session) is now available for other cl