def create_default_groups():
 from flaskbb.fixtures.groups import fixture
 result = []
 for (key, value) in fixture.items():
  group = Group(name=key)
  for (k, v) in value.items():
   setattr(group, k, v)
  group.save()
  result.append(group)
 return result

def create_default_groups ( ) : from flaskbb . fixtures . groups import fixture result = [ ] for ( key , value ) in fixture . items ( ) : group = Group ( name = key ) for ( k , v ) in value . items ( ) : setattr ( group , k , v ) group . save ( ) result . append ( group ) return result
this will create the 5 default groups .