(self, name)
Creates the group.
Creates the group.
Creates the group .
def run(self, name):
        """Creates the group."""
        if not isinstance(name, six.text_type):
            name = codecs.decode(name, 'utf-8')
        group = Group.get_or_create(name=name)
        db_session.add(group)
        db_session.commit()
        sys.stdout.write('Group {0:s} created\n'.format(name))
def run ( self , name ) : if not isinstance ( name , six . text_type ) : name = codecs . decode ( name , 'utf-8' ) group = Group . get_or_create ( name = name ) db_session . add ( group ) db_session . commit ( ) sys . stdout . write ( 'Group {0:s} created\n' . format ( name ) )