Skip to content

Commit

Permalink
Update SD to use the new database_bonjour_name API provided by prophet
Browse files Browse the repository at this point in the history
  • Loading branch information
obra committed Oct 6, 2009
1 parent 56847fb commit 47ea794
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/App/SD/Server.pm
@@ -1,6 +1,23 @@
package App::SD::Server;
use base 'Prophet::Server';



=head2 database_bonjour_name
Returns the name this database should use to announce itself via bonjour
=cut

sub database_bonjour_name {
my $self = shift;
my $name = $self->app_handle->setting( label => 'project_name' )->get->[0];
my $uuid = $self->handle->db_uuid;
return "$name ($uuid)";

}


sub css {
return shift->SUPER::css(@_), "/static/sd/css/main.css";
}
Expand Down

0 comments on commit 47ea794

Please sign in to comment.