Project

General

Profile

« Previous | Next » 

Revision 974e8f3c

Added by Frédéric Péters almost 14 years ago

custom ident directory, to have enclosing <div>

View differences:

extra/modules/root.ptl
735 735
            return OldLoginDirectory._q_index(self)
736 736

  
737 737

  
738
OldIdentDirectory = wcs.root.IdentDirectory
739
class AlternateIdentDirectory(OldIdentDirectory):
740
    def _q_traverse(self, path):
741
        get_response().filter['bigdiv'] = 'member'
742
        return OldIdentDirectory._q_traverse(self, path)
743

  
744

  
738 745
class AlternateRootDirectory(OldRootDirectory):
739 746
    _q_exports = ['', 'admin', 'backoffice', 'forms', 'login', 'logout',
740 747
            'liberty', 'token', 'saml', 'register', 'ident', 'afterjobs',
......
748 755
    announces_dir = AnnouncesDirectory()
749 756
    register = AlternateRegisterDirectory()
750 757
    login = AlternateLoginDirectory()
758
    ident = AlternateIdentDirectory()
751 759
    myspace = MyspaceDirectory()
752 760
    agenda = AgendaDirectory()
753 761
    saml = Saml2Directory()

Also available in: Unified diff