[Bps-public-commit] r10264 - in RT-Client-Console: trunk trunk/bin trunk/gfx trunk/lib/RT/Client

dams at bestpractical.com dams at bestpractical.com
Tue Jan 8 11:35:36 EST 2008


Author: dams
Date: Tue Jan  8 11:35:35 2008
New Revision: 10264

Added:
   RT-Client-Console/trunk/gfx/
   RT-Client-Console/trunk/gfx/rtconsole.png   (contents, props changed)
   RT-Client-Console/trunk/gfx/rtconsole.xcf   (contents, props changed)
Modified:
   RT-Client-Console/   (props changed)
   RT-Client-Console/trunk/MANIFEST
   RT-Client-Console/trunk/bin/rtconsole
   RT-Client-Console/trunk/lib/RT/Client/Console.pm

Log:
 r74 at pundit:  dams | 2008-01-08 16:35:28 +0000
 minor changes, added logo


Modified: RT-Client-Console/trunk/MANIFEST
==============================================================================
--- RT-Client-Console/trunk/MANIFEST	(original)
+++ RT-Client-Console/trunk/MANIFEST	Tue Jan  8 11:35:35 2008
@@ -9,6 +9,7 @@
 lib/RT/Client/Console/Session/TabBar.pm
 lib/RT/Client/Console/Session/Ticket.pm
 lib/RT/Client/Console/Session/Ticket/Attachments.pm
+lib/RT/Client/Console/Session/Ticket/Transactions.pm
 lib/RT/Client/Console/Session/Ticket/CustFields.pm
 lib/RT/Client/Console/Session/Ticket/Header.pm
 lib/RT/Client/Console/Session/Ticket/Links.pm

Modified: RT-Client-Console/trunk/bin/rtconsole
==============================================================================
--- RT-Client-Console/trunk/bin/rtconsole	(original)
+++ RT-Client-Console/trunk/bin/rtconsole	Tue Jan  8 11:35:35 2008
@@ -44,11 +44,11 @@
     if ($options{'generate-config'}) {
         if (! -e $config_filename) {
             $config_ini = Config::Tiny->new() or
-              die "Couldn't open $config_filename to save the configuration. The error was : $Config::Tiny::errstr \n";
+              die "Couldn't create a new configuration. The error was : $Config::Tiny::errstr \n";
             
         } else {
             $config_ini = Config::Tiny->read($config_filename) or
-              die "Couldn't open $config_filename to save the configuration. The error was : $Config::Tiny::errstr \n";
+              die "Couldn't open $config_filename to read the configuration. The error was : $Config::Tiny::errstr \n";
         }
         $config_ini->{$_} = $config->{$_} foreach keys %$config;
         $config_ini->write($config_filename) or
@@ -77,6 +77,7 @@
     $curses_handler->erase();
     
     try {
+        RT::Client::Console->set_configuratio($config);
         RT::Client::Console->run(curses_handler => $curses_handler,
                                  rt_servername => $config->{connection}{server},
                                  rt_username => $config->{connection}{user},

Added: RT-Client-Console/trunk/gfx/rtconsole.png
==============================================================================
Binary file. No diff available.

Added: RT-Client-Console/trunk/gfx/rtconsole.xcf
==============================================================================
Binary file. No diff available.

Modified: RT-Client-Console/trunk/lib/RT/Client/Console.pm
==============================================================================
--- RT-Client-Console/trunk/lib/RT/Client/Console.pm	(original)
+++ RT-Client-Console/trunk/lib/RT/Client/Console.pm	Tue Jan  8 11:35:35 2008
@@ -21,6 +21,20 @@
     return $curses_handler;
 }
 
+# global configuration
+my $configuration;
+sub set_configuration {
+    my $class = shift;
+    my %params = validate( @_, { configuration => { type => HASHREF },
+                               }
+                         );
+    $configuration = $params{configuration};
+}
+
+sub get_configuration {
+    return $configuration;
+}
+
 # main method. effectively starts the console
 sub run {
     my $class = shift;



More information about the Bps-public-commit mailing list