bpy.data.screens["Default"].(null) = ' GROUPS'.. with python

Hi, anyone know how to set view in outliner to ‘GROUPS’ whit python?
I did it manually and checked out the info and it said: bpy.data.screens[“Default”].(null) = ’ GROUPS’
But that don’t work in a script or console.
suspecting that’s because of .(null)?

what I want to do is to set the view to GROUPS when the scripts runs

Thanks

This is close…but I don’t have time to finalize, sorry.


import bpy


s = bpy.data.screens["Scripting"].areas[0]
for space in s.spaces:
    if space.type == 'OUTLINER':
        space.display_mode == 'GROUP'

http://www.blender.org/documentation/blender_python_api_2_68a_release/bpy.types.SpaceOutliner.html#bpy.types.SpaceOutliner