Author: mtredinnick
Date: 2007-04-01 00:42:48 -0500 (Sun, 01 Apr 2007)
New Revision: 4896
Modified:
django/trunk/django/oldforms/__init__.py
Log:
Fixed #3629 -- In oldforms, differentiate files in a recursive FilePathField.
Thanks, James Turnbull.
Modified: django/trunk/django/oldforms/__init__.py
===================================================================
--- django/trunk/django/oldforms/__init__.py 2007-04-01 05:32:44 UTC (rev
4895)
+++ django/trunk/django/oldforms/__init__.py 2007-04-01 05:42:48 UTC (rev
4896)
@@ -923,7 +923,8 @@
for root, dirs, files in os.walk(path):
for f in files:
if match is None or match_re.search(f):
- choices.append((os.path.join(root, f), f))
+ f = os.path.join(root, f)
+ choices.append((f, f.replace(path, "", 1)))
else:
try:
for f in os.listdir(path):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---