Re: Pre-validation form data processing step

2006-10-16 Thread [EMAIL PROTECTED]
Mikhail Gusarov wrote: > Hello, > > [accidentally posted in django-users first, please comment in > django-developers] > > I'd like to propose the following change to Model interface: optional > step to fixup the data got from the form before validation. This may > easily be done in custom views

Re: Django - Oracle status?

2006-10-16 Thread [EMAIL PROTECTED]
Tom Zellman wrote: > I know one of the setbacks for some of the core developers/committers is > that they don't have an Oracle license to test with. The database I use at > work is located on a Solaris machine, and I'm stuck doing development on a > Windows hard-drive-encrypted laptop... so I use

Re: bump: give Gabor (or somebody else) a unicode branch in svn

2006-10-16 Thread JP
James Bennett wrote: > On 10/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > I know it's off-topic, but do you have any thoughts as to which > > branch? > > Based on my sporadic glances, I'd agree with you that row-level perms > and multi-db both look like good candidates to be finalized and > m

Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread DavidA
Hi, I noticed an inconsistency between the request META information in the modpython handler versus the base handler. I'm opening the URL http://web/data/pos/ which goes through two URL conf's: The default urls.py for the application: (r'^data/', include('pfweb.core.urls')), And the urls.p

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread Steven Armstrong
On 10/16/06 20:13, DavidA wrote: > Hi, > > I noticed an inconsistency between the request META information in the > modpython handler versus the base handler. > > I'm opening the URL http://web/data/pos/ which goes through two URL > conf's: > > The default urls.py for the application: > (r'

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread DavidA
Steven Armstrong wrote: > Have you got a folder/file named 'data' in your apaches document root? > If so, try nuking or renaming it. No. And no virtual directories or aliases named 'data' either, nor a file or folder named 'data' in my django project directory. Note that the page URL is working

Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
Hello, I was recently using the get_or_create method and noticed that it added an entry twice into my database in very rare cases, because it complained later that "get() returned more than one ___ -- it returned 2!". This problem didn't occur when using the development server. My question is: I

Re: Database race conditions when using multiple processes

2006-10-16 Thread gabor
Thomas Steinacher wrote: > I know that in this specific case it can be enforced at database level > using the unique and unique_together properties, but how would you > handle e.g. this scenario? > > 1 def transfer_money(from_id, to_id, amount) > 2from = models.BankAccount.objects.get(id=fr

Re: Database race conditions when using multiple processes

2006-10-16 Thread James Bennett
On 10/16/06, Thomas Steinacher <[EMAIL PROTECTED]> wrote: > This is my setup: > > - Django (SVN) running with "python manage.py runfcgi method=prefork" > (there are 6 processes running) > - Lighttpd > - SQLite SQLite is *not* something to be using if proper locking and safe concurrent access will

Re: Database race conditions when using multiple processes

2006-10-16 Thread Mario Gonzalez ( mario__ )
On 16/10/06, James Bennett <[EMAIL PROTECTED]> wrote: > > SQLite is *not* something to be using if proper locking and safe > concurrent access will be important; SQLite's own docs point out a > couple of cases where its locking just won't work, and they recommend > moving to a client-server RDBMS

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread xgdlm
DavidA wrote: > But under mod_python, request.META['PATH_INFO'] is '/pos/' while in the > development server its '/data/pos/' (which I think is right). I notice the same problem here. Running Apache 2.0.58-r2 and mod_python 3.1.4-r1 on a gentoo box. for instance : I'm not using this variabl

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread Waylan Limberg
On 10/16/06, DavidA <[EMAIL PROTECTED]> wrote: > > Hi, > > I noticed an inconsistency between the request META information in the > modpython handler versus the base handler. > > I'm opening the URL http://web/data/pos/ which goes through two URL > conf's: > > The default urls.py for the applicati

Re: Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
On Oct 16, 2006, at 8:46 PM, gabor wrote: > > What, if two Django processes transfer money from account A to account > > B simultaneously? > > these situations are (afaik) handled using transactionssimply start > a transaction at the beginning, and commit/rollback at the end... I already incl

Re: Database race conditions when using multiple processes

2006-10-16 Thread gabor
Thomas Steinacher wrote: > On Oct 16, 2006, at 8:46 PM, gabor wrote: >>> What, if two Django processes transfer money from account A to account >>> B simultaneously? >> these situations are (afaik) handled using transactionssimply start >> a transaction at the beginning, and commit/rollback at

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread DavidA
Waylan Limberg wrote: > My guess is the problem lies in your Apache settings. Post a copy of > your mod-python settings and we'll see what we come up with. Here you go (C:/pf/src/pfweb is the Django project directory): NameVirtualHost * ServerName web DocumentRoot "C:/pf/src/pfweb"

Re: Database race conditions when using multiple processes

2006-10-16 Thread Thomas Steinacher
gabor wrote: > Thomas Steinacher wrote: > > I already included > > "django.middleware.transaction.TransactionMiddleware" in my > > MIDDLEWARE_CLASSES (as described on > > http://www.djangoproject.com/documentation/transactions/#tying-transactions-to-http-requests) > > and it didn't help. > > > > y

Re: Django - Oracle status?

2006-10-16 Thread ogghead
Thanks, Tom. (This is Matt, following up on the dev list.) The issues we're seeing with your latest Oracle patch on top of Django 0.95 do mostly pertain to a syncdb. Specifically, it looks as though Oracle's 30-character limit on most identifiers is not taken into account, so some constraint de

Re: Database race conditions when using multiple processes

2006-10-16 Thread gabor
Thomas Steinacher wrote: > gabor wrote: >> Thomas Steinacher wrote: >>> I already included >>> "django.middleware.transaction.TransactionMiddleware" in my >>> MIDDLEWARE_CLASSES (as described on >>> http://www.djangoproject.com/documentation/transactions/#tying-transactions-to-http-requests) >>> a

Re: Potential bug in django.core.handlers.modpython ?

2006-10-16 Thread Steven Armstrong
On 10/16/06 20:27, DavidA wrote: > > Steven Armstrong wrote: >> Have you got a folder/file named 'data' in your apaches document root? >> If so, try nuking or renaming it. > > No. And no virtual directories or aliases named 'data' either, nor a > file or folder named 'data' in my django project

Re: Re: Database race conditions when using multiple processes

2006-10-16 Thread James Bennett
On 10/16/06, Thomas Steinacher <[EMAIL PROTECTED]> wrote: > It did not help with the code I posted that was using get_or_create(), > because I didn't use unique_together... I don't think it would help > with the money-transfer code. This is a tricky problem, not least because each of the DBs we s

Re: Database race conditions when using multiple processes

2006-10-16 Thread gabor
James Bennett wrote: > For truly critical > operations, I'd probably just go ahead and grab an exclusive lock on > whatever I needed, and force other transactions to wait. how would you that? would you use something in the db? (from what i know about transactions (very little :), they "solve"

Re: Re: Database race conditions when using multiple processes

2006-10-16 Thread James Bennett
On 10/16/06, gabor <[EMAIL PROTECTED]> wrote: > would you use something in the db? (from what i know about transactions > (very little :), they "solve" the potential conflicts by simply > reporting an error-condition to one of the "writers", so then he has to > retry. but is there some simply (mul

Re: Database race conditions when using multiple processes

2006-10-16 Thread gabor
James Bennett wrote: > On 10/16/06, gabor <[EMAIL PROTECTED]> wrote: >> would you use something in the db? (from what i know about transactions >> (very little :), they "solve" the potential conflicts by simply >> reporting an error-condition to one of the "writers", so then he has to >> retry. bu

Call for testing: New setup.py

2006-10-16 Thread Adrian Holovaty
Hi all, I've refactored Django's setup.py so that it uses the plain Python distutils installation method rather than ez_setup/setuptools. This means it no longer requires an Internet connection to install Django. Hooray! But I have only tested this on Linux, so I'd appreciate it if folks could t

Re: Call for testing: New setup.py

2006-10-16 Thread Joseph Kocherhans
On 10/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > But I have only tested this on Linux, so I'd appreciate it if folks > could test out the command "python setup.py install" on various > different platforms. Just grab the SVN version of Django and try > installing it using "python setup.p

Re: Call for testing: New setup.py

2006-10-16 Thread Jay Parlar
On 10/16/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > But I have only tested this on Linux, so I'd appreciate it if folks > could test out the command "python setup.py install" on various > different platforms. Just grab the SVN version of Django and try > installing it using "python setup.py

Re: Call for testing: New setup.py

2006-10-16 Thread [EMAIL PROTECTED]
Didn't work for me on Windows XP with python 2.4.3...what I got is this: > C:\Documents and Settings\floguy\Desktop\newdjango>setup.py install > running install > > running build > running build_py > running build_scripts > creating build > creating build\scripts-2.4 > copying and adjusting djang

Re: Call for testing: New setup.py

2006-10-16 Thread Joseph Heck
WinXP, Python 2.43 - worked OK for me. Dropped all the goodies into c:\python24\lib\site-packages\django...-joeOn 10/16/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Didn't work for me on Windows XP with python 2.4.3...what I got isthis:> C:\Documents and Settings\floguy\Desktop\newdjango>setup

Re: Call for testing: New setup.py

2006-10-16 Thread Jay Parlar
OS X 10.3.9 with Python 2.4.3 seems fine. Jay P. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from

Re: Django - Oracle status?

2006-10-16 Thread Malcolm Tredinnick
On Mon, 2006-10-16 at 20:11 +, ogghead wrote: > Thanks, Tom. (This is Matt, following up on the dev list.) > > The issues we're seeing with your latest Oracle patch on top of Django > 0.95 do mostly pertain to a syncdb. Specifically, it looks as though > Oracle's 30-character limit on most

Re: bump: give Gabor (or somebody else) a unicode branch in svn

2006-10-16 Thread Malcolm Tredinnick
On Mon, 2006-10-16 at 14:53 +, JP wrote: > James Bennett wrote: > > On 10/13/06, Jay Parlar <[EMAIL PROTECTED]> wrote: > > > I know it's off-topic, but do you have any thoughts as to which > > > branch? > > > > Based on my sporadic glances, I'd agree with you that row-level perms > > and mult

Re: Call for testing: New setup.py

2006-10-16 Thread Matthew Flanagan
Hi Adrian, On 17/10/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've refactored Django's setup.py so that it uses the plain Python > distutils installation method rather than ez_setup/setuptools. This > means it no longer requires an Internet connection to install Django. > Hoo

feature request: Bonjour support

2006-10-16 Thread evariste
One thing I really love about TurboGears, that would make developing in Django that much sweeter, would be Bonjour support. It looks like a pretty trivial piece of code in TurboGears's startup.py file, but I'm extremely new to Django and wouldn't know where to start adding it myself. --~--~-

Re: bump: give Gabor (or somebody else) a unicode branch in svn

2006-10-16 Thread Malcolm Tredinnick
On Tue, 2006-10-17 at 09:54 +1000, Malcolm Tredinnick wrote: [...] > And my apologies to use, JP: Hmm ... should have been "my apologies to *you*...". One day I really will have to sit down and learn this English language thing (and maybe take some kind of "how to type" class). Malcolm --~--~

Re: feature request: Bonjour support

2006-10-16 Thread Clint Ecker
You're probably going to have to elaborate a bit further. What exactly is "bonjour support" ? Does it have anything to do with the technology formerly known as Rendezvous in OS X (more commonly known as ZeroConf)? -- Clint Ecker | STONE WARD 440 N. Wells, Suite 750, Chicago, IL 60610 Boston | [

django build slave

2006-10-16 Thread Matthew Flanagan
Hi, I've now got a Solaris 10 sparc buildbot slave up and running at: http://www.python.org/dev/buildbot/community/all/ It is running the django trunk tests against both python 2.5 and python trunk using a sqlite3 memory database. Are any of the core developers interested in receiving test fai

Re: feature request: Bonjour support

2006-10-16 Thread evariste
The technology formerly known as Rendezvous, yes. When you start a turbogears project with start-projectname.py, tg tells Bonjour of its existence and you can view it simply by pulling it down from the Bonjour menu in Safari's Bookmarks Bar. If the project is stopped, the site is removed from Bonj

7 Habits of Highly effective Person By Stephen Covey: Audio Books

2006-10-16 Thread P K Kothari
Links given for first two parts of audio Books in Audio Book section. Balance parts will be shortly given-- With warm regardsP K KothariDownload PowerPoint Presentation files:   http://powerpoint-presentation.blogspot.comDownload eBooks:  http://ebook-share.blogspot. Download Audio books in MP3:  h