def get_module_name(self, path_args):
        """returns the module_name and remaining path args.

        return -- tuple -- (module_name, path_args)"""
        controller_prefix = self.controller_prefix
        cset = self.module_names
        module_name = controller_prefix
        mod_name = module_name
        while path_args:
            mod_name += "." + path_args[0]
            if mod_name in cset:
                module_name = mod_name
                path_args.pop(0)
            else:
                break

        return module_name, path_args
def get_module_name ( self , path_args ) : controller_prefix = self . controller_prefix cset = self . module_names module_name = controller_prefix mod_name = module_name while path_args : mod_name += "." + path_args [ 0 ] if mod_name in cset : module_name = mod_name path_args . pop ( 0 ) else : break return module_name , path_args
returns the module_name and remaining path args.

        return -- tuple -- (module_name, path_args)