[Bps-public-commit] SD - A distributed issue tracker branch, master, updated. 6db0f12c5c99ea7afde41bb42a5fce3174fe1865

jesse jesse at bestpractical.com
Sun Jan 18 18:12:39 EST 2009


The branch, master has been updated
       via  6db0f12c5c99ea7afde41bb42a5fce3174fe1865 (commit)
      from  dfe93d8de5979fd5f07b82aea451d84f515a6292 (commit)

Summary of changes:
 lib/App/SD/ForeignReplica.pm |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 6db0f12c5c99ea7afde41bb42a5fce3174fe1865
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Sun Jan 18 17:46:00 2009 -0500

    Slight updates to ForeignReplica.pm to keep pace with upcoming Prophet
    changes

diff --git a/lib/App/SD/ForeignReplica.pm b/lib/App/SD/ForeignReplica.pm
index 14d04da..5008196 100644
--- a/lib/App/SD/ForeignReplica.pm
+++ b/lib/App/SD/ForeignReplica.pm
@@ -149,8 +149,9 @@ sub _set_uuid_for_remote_id {
 sub remote_id_for_uuid {
     my ( $self, $uuid_or_luid ) = @_;
 
-    my $ticket = Prophet::Record->new(
-        handle => $self->app_handle->handle,
+    require App::SD::Model::Ticket;
+    my $ticket = App::SD::Model::Ticket->new(
+        app_handle => $self->app_handle,
         type   => 'ticket'
     );
     $ticket->load( $uuid_or_luid =~ /^\d+$/? 'luid': 'uuid', $uuid_or_luid )
@@ -174,8 +175,9 @@ sub _set_remote_id_for_uuid {
         }
     );
 
-    my $ticket = Prophet::Record->new(
-        handle => $self->app_handle->handle,
+    require App::SD::Model::Ticket;
+    my $ticket = App::SD::Model::Ticket->new(
+        app_handle => $self->app_handle,
         type   => 'ticket'
     );
     $ticket->load( uuid => $args{'uuid'} );

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list