Changeset 509

Show
Ignore:
Timestamp:
08/05/07 17:26:28 (1 year ago)
Author:
ian
Message:

Fix ticket #33 (edit controller not working without trailing forward-slash) by defining an 'index' method that just calls 'default', thus invoking some CherryPy? magic that will redirect to the correct url (the one with the forward slash)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • pagoda/trunk/Pagoda/pagoda/controllers/admin.py

    r502 r509  
    4141    def serialize_child_nodes(self, node): 
    4242        return self.site_tree.serialize_children(node) 
     43 
     44    @expose() 
     45    def index(self, *args, **kwargs): 
     46        """Special-case the `index` method to resolve trailing forward-slash issue""" 
     47        return self.default(*args, **kwargs) 
    4348     
    4449    @expose(template="genshi:pagoda.templates.admin.edit", format="html") 

Log in as guest/pagoda to create tickets