Show
Ignore:
Timestamp:
05/05/08 13:00:26 (7 months ago)
Author:
JensDiemer
Message:

Some bugfixes:

  • fixed cache problems with PageChoiceField?. Move it into init
  • current page can't be deleted.
  • remove obsolete _delete_cache() method (Page.save() method cleans the cache)
  • clean the page cache, if a page has been deleted
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pylucid/PyLucid/models.py

    r1551 r1555  
    279279        super(Page, self).save() # Call the "real" save() method 
    280280 
     281    def delete(self): 
     282        # Delete all pages in the cache. 
     283        delete_page_cache() 
     284        super(Page, self).delete() 
     285 
    281286    def get_absolute_url(self): 
    282287        """