Author: homebrew79
Date: Wed Dec 10 12:05:07 2008
New Revision: 280
Modified:
branches/directory-style-urls/pages/admin/__init__.py
Log:
Fix bug where new URLs were not being created on page moves resulting in
404s
Modified: branches/directory-style-urls/pages/admin/__init__.py
==============================================================================
--- branches/directory-style-urls/pages/admin/__init__.py (original)
+++ branches/directory-style-urls/pages/admin/__init__.py Wed Dec 10
12:05:07 2008
@@ -329,6 +329,9 @@
context.update({'move_status': _('Page could not been
moved.')})
else:
page.move_to(target, position)
+ create_url_for_page(page)
+ for descendant in page.get_descendants():
+ create_url_for_page(descendant)
context.update({'move_status': _('Page Successfully
moved.')})
else:
context.update({'move_status': _('Error Moving Page. Slug
is not unique for parent.')})
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-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/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---