(self, shift=1)
Shift path segments from :attr:`path` to :attr:`script_name` and
            vice versa.

           :param shift: The number of path segments to shift. May be negative
                         to change the shift direction. (default: 1)
Shift path segments from :attr:`path` to :attr:`script_name` and
            vice versa.
Shift path segments from : attr : path to : attr : script_name and vice versa .
def path_shift(self, shift=1):
        ''' Shift path segments from :attr:`path` to :attr:`script_name` and
            vice versa.

           :param shift: The number of path segments to shift. May be negative
                         to change the shift direction. (default: 1)
        '''
        script = self.environ.get('SCRIPT_NAME','/')
        self['SCRIPT_NAME'], self['PATH_INFO'] = path_shift(script, self.path, shift)
def path_shift ( self , shift = 1 ) : script = self . environ . get ( 'SCRIPT_NAME' , '/' ) self [ 'SCRIPT_NAME' ] , self [ 'PATH_INFO' ] = path_shift ( script , self . path , shift )