Group
Extension

Matches 5

Smolder ( S/SA/SAPER/Smolder-1.52.tar.gz, SAPER, 2013; MetaCPAN )
Smolder/lib/Smolder/Control.pm ( view source; MetaCPAN )
Application::Plugin::TT;
use CGI::Application::Plugin::LogDispatch;
use CGI::Application::Plugin::JSON qw(:all);
use Template::Plugin::Cycle;
use CGI::Cookie;
# This has nice output, but can't get it 
gs) = @_;
    my $msgs = $self->json_header_value('messages') || [];
    push(@$msgs, {type => ($args{type} || 'info'), msg => ($args{msg} || '')});
    $self->add_json_header(messages => $msgs);
}

=
Smolder ( S/SA/SAPER/Smolder-1.52.tar.gz, SAPER, 2013; MetaCPAN )
Smolder/lib/Smolder/Control/Admin/Developers.pm ( view source; MetaCPAN )
g => "User '" . $developer->username . "' has been successfully updated.");
    return $self->add_json_header(list_changed => 1);
}

=head2 list

Show a list of all developers. Uses the F<Admin/Develo
ge(msg => "New user '" . $developer->username . "' successfully created.");
    return $self->add_json_header(list_changed => 1);
}

=head2 delete 

Delete a Developer and all data associated with him
Smolder ( S/SA/SAPER/Smolder-1.52.tar.gz, SAPER, 2013; MetaCPAN )
Smolder/lib/Smolder/Control/Developer/Prefs.pm ( view source; MetaCPAN )

    } else {
        return $html;
    }
}

=head2 get_pref_details

This run mode will return a JSON header which contains the name-value
pairs for this preferences data.

=cut

sub get_pref_details
_ => $pref->$_ } qw(email_type email_freq email_limit show_passing);
    }

    return $self->add_json_header(%data);
}

=head2 update_pref

Update the information coming from the C<show> run mode.
If
Smolder ( S/SA/SAPER/Smolder-1.52.tar.gz, SAPER, 2013; MetaCPAN )
Smolder/lib/Smolder/Control/Admin/Projects.pm ( view source; MetaCPAN )
ect '"
                  . $proj->name
                  . "'.");
        }
    }

    $self->add_json_header(update_nav => 1) if $dev->id == $self->developer->id;
    return $self->devs({}, $proj);
}
 removed from project '"
              . $proj->name
              . "'.");
    }

    $self->add_json_header(update_nav => 1) if $dev->id == $self->developer->id;
    return $self->devs({}, $proj);
}
msg => "New project '" . $project->name . "' successfully created.");
    }
    return $self->add_json_header(list_changed => 1, update_nav => 1);
}

=head2 details

Show the details about a project. 
Smolder ( S/SA/SAPER/Smolder-1.52.tar.gz, SAPER, 2013; MetaCPAN )
Smolder/lib/Smolder/Mech.pm ( view source; MetaCPAN )
use base 'Test::WWW::Mechanize';
use Smolder::Conf;
use Smolder::TestData qw(base_url);
use JSON qw(from_json);
use Test::Builder;
use Test::More;

=head1 NAME 

Smolder::Mech

=head1 DESCRIPTION

L<T
   return $self->SUPER::request(@_);
}

=head1 contains_message

This method will look in the C<X-JSON> HTTP header
of the response, look through each message in the
C<messages> array and see if any o
lf, $match) = @_;
    my $resp = $self->response();
    my $json = from_json($self->response->header('X-JSON') || '{}');
    my $msgs = $json->{messages} || [];
    my $diag = "contains message $match

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.