summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b23ab4c)
raw | patch | inline | side by side (parent: b23ab4c)
author | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Feb 2010 10:58:22 +0000 (10:58 +0000) | ||
committer | psc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 26 Feb 2010 10:58:22 +0000 (10:58 +0000) |
- Let gosa-si-client determine weither FAI operation is an installation
or a softupdate and additionally send this info to the server.
- Let gosa-si-client call save_fai_log on "TASKBEGIN savelog" instead
of "TASKBEGIN finish". This fixes the problem that the save function
were not called when running a soft-update.
- In gosa-si-server handle the new fai_action field when receiving
logfiles so that softupdate logs are stored in different directories
than installation logs.
- Add logic to the code that gets FAI logfiles from gosa-si to detect
weither a softupdate or installation log is received and set an
attribute in the result array accordingly.
- When viewing install logs in Gosa show a new column with the FAI
operation the files belong to.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15739 594d385d-05f5-0310-b6e9-bd551577e9d8
or a softupdate and additionally send this info to the server.
- Let gosa-si-client call save_fai_log on "TASKBEGIN savelog" instead
of "TASKBEGIN finish". This fixes the problem that the save function
were not called when running a soft-update.
- In gosa-si-server handle the new fai_action field when receiving
logfiles so that softupdate logs are stored in different directories
than installation logs.
- Add logic to the code that gets FAI logfiles from gosa-si to detect
weither a softupdate or installation log is received and set an
attribute in the result array accordingly.
- When viewing install logs in Gosa show a new column with the FAI
operation the files belong to.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15739 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/trunk/gosa-core/include/class_gosaSupportDaemon.inc b/trunk/gosa-core/include/class_gosaSupportDaemon.inc
index 33e841885166744e132c6135832db1e120faa727..cd776aa59e0f75be04709a367889b75433ac79f4 100644 (file)
$ret[$mac][$log_date] = array();
$res = $this->_send($xml_msg2,TRUE);
- $ret[$mac][$log_date]['DATE_STR'] = $log_date;
+ $ret[$mac][$log_date]['DATE_STR'] = $log_date;
+ /* Determine FAI action */
+ $fai_action = split('_', $ret[$mac][$log_date]['DATE_STR']);
+ $fai_action = $fai_action[0];
+ $ret[$mac][$log_date]['FAI_ACTION'] = $fai_action;
$ret[$mac][$log_date]['REAL_DATE'] = strtotime(preg_replace("/[^0-9]*/","",$log_date));
if(isset($res['XML']['SHOW_LOG_FILES_BY_DATE_AND_MAC'])){
$ret[$mac][$log_date]['FILES'] = $res['XML']['SHOW_LOG_FILES_BY_DATE_AND_MAC'];
diff --git a/trunk/gosa-plugins/goto/addons/goto/class_gotoLogView.inc b/trunk/gosa-plugins/goto/addons/goto/class_gotoLogView.inc
index a5e166ff2dcd61663e69b432a26046c0cd6ffc32..c8b9dd18d8f14d788732b71aa9813cba3771e2db 100644 (file)
var $selected_date;
var $selected_file = 0;
+ var $selected_type;
var $attributes = array("macAddress");
var $macAddress = "";
$smarty->assign("mac",$this->mac);
$smarty->assign("selected_file",$this->selected_file);
$smarty->assign("selected_date",$this->selected_date);
- $smarty->assign("log_file", $this->get_log($this->mac,$this->selected_date,$this->selected_file));
+ $smarty->assign("selected_type",$this->selected_type);
+ $smarty->assign("log_file", $this->get_log($this->mac,$this->selected_date,$this->selected_file, $this->selected_type));
$smarty->assign("standalone",$this->standalone);
if (isset($this->logs[$this->mac])){
$date = date("d.m.Y H:i:s",$this->logs[$this->mac][$this->selected_date]['REAL_DATE']);
}
+ if (isset($this->logs[$this->mac])){
+ $type = $this->logs[$this->mac][$this->selected_date]['FAI_ACTION'];
+ }
$file = $this->selected_file;
$smarty->assign("selected_log",_("none"));
if(!empty($file)){
}else{
$img = "<img src='images/lists/sort-up.png' border='0' alt='/\\'";
}
- if($this->sort_by == "file"){
- $img1 = $img;
- $img2 = "";
- }else{
- $img1 = "";
- $img2 = $img;
- }
+ $file_img = "";
+ $type_img = "";
+ $date_img = "";
+ switch($this->sort_by) {
+ case "file":
+ $file_img = $img;
+ $type_img = "";
+ $date_img = "";
+ break;
+ case "time":
+ $date_img = $img;
+ $type_img = "";
+ $file_img = "";
+ break;
+ case "type":
+ $type_img = $img;
+ $date_img = "";
+ $file_img = "";
+ break;
+ }
/* Create list header
*/
$divlist->SetHeader(array(
- array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=file'>"._("File")." ".$img1."</a>",
+ array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=file'>"._("File")." ".$file_img."</a>",
"attach"=>"width='200px;'"),
- array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=time'>"._("Date")." ".$img2."</a>",
+ array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=type'>"._("Type")." ".$type_img."</a>",
+ "attach" => "style='border-right:none;'"),
+ array("string"=>"<a href='?plug=".$_GET['plug']."&sort_by=time'>"._("Date")." ".$date_img."</a>",
"attach" => "style='border-right:none;'"),
+
));
/* Create divlist list
/* Create sortable array
*/
- $link = "<a href='?plug=".$_GET['plug']."&time=%time%&file=%file%&mac=%mac%'>%str%</a>";
+ $link = "<a href='?plug=".$_GET['plug']."&time=%time%&file=%file%&mac=%mac%&type=%type%'>%str%</a>";
$to_add = array();
$sort_by = $this->sort_by;
foreach($this->logs as $mac => $times){
foreach($times as $time => $data){
$rtime = $data['REAL_DATE'];
+ $type = $data['FAI_ACTION'];
+ switch($type) {
+ case 'softupdate':
+ $type = _("Software update");
+ break;
+ case 'install':
+ $type = _("Installation");
+ break;
+ }
foreach($data['FILES'] as $file){
$highlight = "";
- if($file == $this->selected_file && $time == $this->selected_date && $mac == $this->mac){
+ if($file == $this->selected_file && $time == $this->selected_date && $mac == $this->mac && $type == $this->selected_type){
$highlight = "background-color:#CCCCCC";
}
$to_add[$$sort_by.$file.$time] = array(
array("string" => preg_replace("/%str%/",$file,$use_link),
"attach" => "style='width:200px; $highlight'"),
+ array("string" => preg_replace("/%str%/",$type,$use_link),
+ "attach" => "style='width:200px; $highlight'"),
array("string" => preg_replace("/%str%/",date("d.m.Y H:i:s",$rtime),$use_link),
"attach" => "style='border-right:none; $highlight'"),
);
}
- function get_log($mac,$date,$file)
+ function get_log($mac,$date,$file,$type)
{
- $res = $this->o_queue->get_log_file($mac,$date,$file);
+ $res = $this->o_queue->get_log_file($mac,$date,$file, $type);
if($this->o_queue->is_configured() && $this->o_queue->is_error()){
msg_dialog::display(_("Error"), $this->o_queue->get_error(), ERROR_DIALOG);
}
function save_object()
{
- foreach(array("time"=>"selected_date","file"=>"selected_file") as $attr => $dest){
+ foreach(array("time"=>"selected_date","file"=>"selected_file","type"=>"selected_type") as $attr => $dest){
if(isset($_GET[$attr])){
$this->$dest = $_GET[$attr];
}
}
- if(isset($_GET['sort_by']) && in_array($_GET['sort_by'],array("file","time"))){
+ if(isset($_GET['sort_by']) && in_array($_GET['sort_by'],array("file","time", "type"))){
if($_GET['sort_by'] == $this->sort_by){
$this->sort_dir = !$this->sort_dir;
}
diff --git a/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po b/trunk/gosa-plugins/goto/locale/de/LC_MESSAGES/messages.po
index fa409588f596a4c5375d2898d955472867b159f1..c0fbd89049c7fd4f24d33963b50ec5a22d7c60c9 100644 (file)
msgstr ""
"Project-Id-Version: messages\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-11-03 14:33+0100\n"
+"POT-Creation-Date: 2010-02-08 13:57+0100\n"
"PO-Revision-Date: 2008-12-04 11:18+0100\n"
"Last-Translator: Cajus Pollmeier <pollmeier@gonicus.de>\n"
"Language-Team: deutsch <de@li.org>\n"
#: admin/systems/goto/ArpNewDevice.tpl:17
#: admin/systems/goto/class_workstationGeneric.inc:708
#: admin/systems/goto/workstation.tpl:19 admin/systems/goto/printer.tpl:16
-#: admin/systems/services/nfs/servnfs.tpl:19
+#: admin/systems/goto/printer.tpl:47 admin/systems/services/nfs/servnfs.tpl:19
#: admin/systems/services/nfs/class_servNfs.inc:216
#: admin/systems/services/shares/class_goShareServer.inc:424
#: admin/applications/generic.tpl:33
#: addons/goto/class_gotomasses.inc:735 addons/goto/class_gotomasses.inc:739
#: addons/goto/class_gotomasses.inc:775 addons/goto/class_gotomasses.inc:819
#: addons/goto/class_target_list.inc:250 addons/goto/class_target_list.inc:254
-#: addons/goto/class_gotoLogView.inc:57 addons/goto/class_gotoLogView.inc:175
+#: addons/goto/class_gotoLogView.inc:58 addons/goto/class_gotoLogView.inc:208
msgid "Error"
msgstr "Fehler"
#: admin/systems/goto/class_printGeneric.inc:920
#: admin/systems/goto/class_terminalGeneric.inc:353
#: admin/systems/goto/class_terminalGeneric.inc:580
-#: admin/systems/goto/class_workstationService.inc:479
+#: admin/systems/goto/class_workstationService.inc:467
#: admin/systems/goto/class_workstationStartup.inc:893
#: admin/systems/goto/class_terminalService.inc:597
#: admin/systems/goto/class_ArpNewDevice.inc:69
#: admin/systems/services/nfs/servnfs.tpl:56
#: admin/systems/services/nfs/class_servNfs.inc:202
#: admin/systems/services/shares/class_goShareServer.inc:425
+#: addons/goto/class_gotoLogView.inc:134
msgid "Type"
msgstr "Typ"
#: admin/systems/goto/terminalStartup.tpl:115
#: admin/systems/goto/terminalService.tpl:212
#: admin/systems/goto/workstationStartup.tpl:233
-#: admin/systems/goto/printer.tpl:71
+#: admin/systems/goto/printer.tpl:82
#: admin/applications/class_applicationParameters.inc:122
#: admin/applications/class_divListApplication.inc:120
#: personal/environment/environment.tpl:238
msgstr "Nach unten bewegen"
#: admin/groups/apps/app_list.tpl:88 admin/groups/apps/app_list.tpl:134
-#: admin/systems/goto/printer.tpl:68
+#: admin/systems/goto/printer.tpl:79
#: admin/systems/services/shares/goShareServer.tpl:17
#: personal/environment/environment.tpl:274
#: addons/goto/class_gotomasses.inc:469
#: admin/systems/goto/class_terminalGeneric.inc:137
#: admin/systems/goto/class_terminalGeneric.inc:287
#: admin/systems/goto/class_terminalGeneric.inc:299
+#: admin/systems/goto/class_workstationService.inc:206
+#: admin/systems/goto/class_workstationService.inc:210
+#: admin/systems/goto/class_workstationService.inc:213
+#: admin/systems/goto/class_workstationService.inc:216
#: admin/systems/goto/class_workstationService.inc:219
#: admin/systems/goto/class_workstationService.inc:222
#: admin/systems/goto/class_workstationService.inc:225
#: admin/systems/goto/class_workstationService.inc:228
-#: admin/systems/goto/class_workstationService.inc:231
-#: admin/systems/goto/class_workstationService.inc:234
-#: admin/systems/goto/class_workstationService.inc:237
+#: admin/systems/goto/class_workstationService.inc:239
#: admin/systems/goto/class_workstationService.inc:240
-#: admin/systems/goto/class_workstationService.inc:251
-#: admin/systems/goto/class_workstationService.inc:252
-#: admin/systems/goto/class_workstationService.inc:253
-#: admin/systems/goto/class_workstationService.inc:254
-#: admin/systems/goto/class_workstationService.inc:255
-#: admin/systems/goto/class_workstationService.inc:256
-#: admin/systems/goto/class_workstationService.inc:257
-#: admin/systems/goto/class_workstationService.inc:258
+#: admin/systems/goto/class_workstationService.inc:241
+#: admin/systems/goto/class_workstationService.inc:242
+#: admin/systems/goto/class_workstationService.inc:243
+#: admin/systems/goto/class_workstationService.inc:244
+#: admin/systems/goto/class_workstationService.inc:245
+#: admin/systems/goto/class_workstationService.inc:246
#: admin/systems/goto/class_workstationStartup.inc:178
#: admin/systems/goto/class_workstationStartup.inc:208
#: admin/systems/goto/class_terminalService.inc:182
msgstr "Das Objekt ist kein Drucker!"
#: admin/systems/goto/class_printGeneric.inc:706
-#: admin/systems/goto/printer.tpl:54
+#: admin/systems/goto/printer.tpl:65
msgid "Printer URL"
msgstr "Drucker URL"
msgstr "Drucker-PPD"
#: admin/systems/goto/class_printGeneric.inc:970
-#: admin/systems/goto/printer.tpl:82
+#: admin/systems/goto/printer.tpl:93
msgid "Permissions"
msgstr "Berechtigungen"
#: admin/systems/goto/workstationService.tpl:86
#: admin/systems/goto/terminalService.tpl:76
-#: admin/systems/goto/class_workstationService.inc:538
+#: admin/systems/goto/class_workstationService.inc:526
#: admin/systems/goto/class_terminalService.inc:712
msgid "Telephone hardware"
msgstr "Telefon-Hardware"
msgstr "Telefon"
#: admin/systems/goto/workstationService.tpl:110
-#: admin/systems/goto/terminalService.tpl:98 admin/systems/goto/printer.tpl:66
+#: admin/systems/goto/terminalService.tpl:98 admin/systems/goto/printer.tpl:77
msgid "Driver"
msgstr "Treiber"
msgstr "Anzeige"
#: admin/systems/goto/workstationService.tpl:157
-#: admin/systems/goto/class_workstationService.inc:106
+#: admin/systems/goto/class_workstationService.inc:91
#: admin/systems/goto/class_terminalService.inc:610
msgid "unknown"
msgstr "unbekannt"
#: admin/systems/goto/workstationService.tpl:170
#: admin/systems/goto/terminalService.tpl:150
-#: admin/systems/goto/class_workstationService.inc:425
-#: admin/systems/goto/class_workstationService.inc:427
-#: admin/systems/goto/class_workstationService.inc:432
-#: admin/systems/goto/class_workstationService.inc:529
+#: admin/systems/goto/class_workstationService.inc:413
+#: admin/systems/goto/class_workstationService.inc:415
+#: admin/systems/goto/class_workstationService.inc:420
+#: admin/systems/goto/class_workstationService.inc:517
#: admin/systems/goto/class_terminalService.inc:701
msgid "HSync"
msgstr "HSync"
#: admin/systems/goto/workstationService.tpl:181
#: admin/systems/goto/terminalService.tpl:158
-#: admin/systems/goto/class_workstationService.inc:408
-#: admin/systems/goto/class_workstationService.inc:410
-#: admin/systems/goto/class_workstationService.inc:415
-#: admin/systems/goto/class_workstationService.inc:530
+#: admin/systems/goto/class_workstationService.inc:396
+#: admin/systems/goto/class_workstationService.inc:398
+#: admin/systems/goto/class_workstationService.inc:403
+#: admin/systems/goto/class_workstationService.inc:518
#: admin/systems/goto/class_terminalService.inc:702
msgid "VSync"
msgstr "VSync"
#: admin/systems/goto/class_terminalGeneric.inc:187
#: admin/systems/goto/class_terminalGeneric.inc:594
-#: admin/systems/goto/class_workstationService.inc:586
+#: admin/systems/goto/class_workstationService.inc:574
#: admin/systems/goto/class_workstationStartup.inc:942
#: admin/systems/goto/class_workstationStartup.inc:1107
#: admin/systems/goto/class_workstationStartup.inc:1175
msgid "set"
msgstr "setzen"
-#: admin/systems/goto/class_workstationService.inc:93
+#: admin/systems/goto/class_workstationService.inc:78
#: admin/systems/goto/class_workstationStartup.inc:1407
#: admin/systems/goto/class_workstationStartup.inc:1409
#: admin/systems/goto/class_terminalService.inc:121
msgid "Configuration error"
msgstr "Konfigurationsfehler"
-#: admin/systems/goto/class_workstationService.inc:103
+#: admin/systems/goto/class_workstationService.inc:88
msgid "manual/auto"
msgstr "manuell/auto"
-#: admin/systems/goto/class_workstationService.inc:110
-#: admin/systems/goto/class_workstationService.inc:111
-#: admin/systems/goto/class_workstationService.inc:112
-#: admin/systems/goto/class_workstationService.inc:113
+#: admin/systems/goto/class_workstationService.inc:95
+#: admin/systems/goto/class_workstationService.inc:96
+#: admin/systems/goto/class_workstationService.inc:97
+#: admin/systems/goto/class_workstationService.inc:98
#: admin/systems/goto/class_terminalService.inc:128
#: admin/systems/goto/class_terminalService.inc:129
#: admin/systems/goto/class_terminalService.inc:130
msgid "bit"
msgstr "Bit"
-#: admin/systems/goto/class_workstationService.inc:172
+#: admin/systems/goto/class_workstationService.inc:157
#: admin/systems/goto/class_terminalService.inc:211
msgid "automatic"
msgstr "automatisch"
-#: admin/systems/goto/class_workstationService.inc:225
+#: admin/systems/goto/class_workstationService.inc:213
#: admin/systems/goto/class_terminalService.inc:274
msgid "Bit"
msgstr "Bit"
-#: admin/systems/goto/class_workstationService.inc:341
+#: admin/systems/goto/class_workstationService.inc:329
#: admin/systems/goto/class_terminalService.inc:421
msgid "Choose the phone located at the current terminal"
msgstr "Wählen Sie das sich am momentanen Arbeitsplatz befindende Telefon."
-#: admin/systems/goto/class_workstationService.inc:516
+#: admin/systems/goto/class_workstationService.inc:504
#: admin/systems/goto/class_terminalService.inc:685
msgid "Service"
msgstr "Dienst"
-#: admin/systems/goto/class_workstationService.inc:517
+#: admin/systems/goto/class_workstationService.inc:505
msgid "Workstation service"
msgstr "Arbeitsstations-Dienst"
-#: admin/systems/goto/class_workstationService.inc:525
+#: admin/systems/goto/class_workstationService.inc:513
#: admin/systems/goto/class_terminalService.inc:695
msgid "Monitor"
msgstr "Monitor"
-#: admin/systems/goto/class_workstationService.inc:526
+#: admin/systems/goto/class_workstationService.inc:514
#: admin/systems/goto/class_terminalService.inc:698
msgid "Gfx driver"
msgstr "Grafiktreiber"
-#: admin/systems/goto/class_workstationService.inc:527
+#: admin/systems/goto/class_workstationService.inc:515
#: admin/systems/goto/class_terminalService.inc:699
msgid "Gfx resolution"
msgstr "Auflösung"
-#: admin/systems/goto/class_workstationService.inc:528
+#: admin/systems/goto/class_workstationService.inc:516
#: admin/systems/goto/class_terminalService.inc:700
msgid "Gfx color depth"
msgstr "Farbtiefe"
-#: admin/systems/goto/class_workstationService.inc:531
+#: admin/systems/goto/class_workstationService.inc:519
msgid "Use DDC"
msgstr "Verwende DDC"
-#: admin/systems/goto/class_workstationService.inc:532
+#: admin/systems/goto/class_workstationService.inc:520
#: admin/systems/goto/class_terminalService.inc:704
msgid "Scanner enabled"
msgstr "Scanner aktiviert"
-#: admin/systems/goto/class_workstationService.inc:533
+#: admin/systems/goto/class_workstationService.inc:521
#: admin/systems/goto/class_terminalService.inc:706
msgid "Keyboard model"
msgstr "Tastatur-Modell"
-#: admin/systems/goto/class_workstationService.inc:534
+#: admin/systems/goto/class_workstationService.inc:522
#: admin/systems/goto/class_terminalService.inc:707
msgid "Keyboard layout"
msgstr "Tastatur-Layout"
-#: admin/systems/goto/class_workstationService.inc:535
+#: admin/systems/goto/class_workstationService.inc:523
#: admin/systems/goto/class_terminalService.inc:708
msgid "Keyboard variant"
msgstr "Tastatur-Variante"
-#: admin/systems/goto/class_workstationService.inc:536
+#: admin/systems/goto/class_workstationService.inc:524
#: admin/systems/goto/class_terminalService.inc:709
msgid "Mouse type"
msgstr "Maus-Typ"
-#: admin/systems/goto/class_workstationService.inc:537
+#: admin/systems/goto/class_workstationService.inc:525
#: admin/systems/goto/class_terminalService.inc:710
msgid "Mouse port"
msgstr "Maus-Anschluß"
msgstr "Objektgruppe"
#: admin/systems/goto/SelectDeviceType.tpl:39
-#: addons/goto/class_gotoLogView.inc:87
+#: addons/goto/class_gotoLogView.inc:92
msgid "none"
msgstr "keine"
#: admin/ogroups/goto/class_termgroup.inc:272
#: addons/goto/events/class_DaemonEvent_update.inc:29
#: addons/goto/events/class_DaemonEvent_update.inc:30
+#: addons/goto/class_gotoLogView.inc:157
msgid "Software update"
msgstr "Softwareupdate"
@@ -2282,31 +2284,31 @@ msgstr "Wählen Sie den Teilbaum, in den der Benutzer eingepflegt werden soll"
msgid "Details"
msgstr "Details"
-#: admin/systems/goto/printer.tpl:46
+#: admin/systems/goto/printer.tpl:57
msgid "Printer location"
msgstr "Drucker-Standort"
-#: admin/systems/goto/printer.tpl:89
+#: admin/systems/goto/printer.tpl:100
msgid "Users which are allowed to use this printer"
msgstr "Benutzer mit Berechtigung, diesen Drucker zu nutzen"
-#: admin/systems/goto/printer.tpl:91
+#: admin/systems/goto/printer.tpl:102
msgid "Users"
msgstr "Benutzer"
-#: admin/systems/goto/printer.tpl:96 admin/systems/goto/printer.tpl:120
+#: admin/systems/goto/printer.tpl:107 admin/systems/goto/printer.tpl:131
msgid "Add user"
msgstr "Benutzer hinzufügen"
-#: admin/systems/goto/printer.tpl:99 admin/systems/goto/printer.tpl:123
+#: admin/systems/goto/printer.tpl:110 admin/systems/goto/printer.tpl:134
msgid "Add group"
msgstr "Gruppe hinzufügen"
-#: admin/systems/goto/printer.tpl:113
+#: admin/systems/goto/printer.tpl:124
msgid "Users which are allowed to administrate this printer"
msgstr "Benutzer mit Berechtigung, diesen Drucker zu verwalten"
-#: admin/systems/goto/printer.tpl:115
+#: admin/systems/goto/printer.tpl:126
msgid "Admins"
msgstr "Administratoren"
msgid "DHCP"
msgstr "DHCP"
-#: addons/goto/class_gotoLogView.inc:113
+#: addons/goto/class_gotoLogView.inc:132
msgid "File"
msgstr "Datei"
-#: addons/goto/class_gotoLogView.inc:115
+#: addons/goto/class_gotoLogView.inc:136
msgid "Date"
msgstr "Datum"
-#: addons/goto/class_gotoLogView.inc:202
+#: addons/goto/class_gotoLogView.inc:160
+msgid "Installation"
+msgstr "Installation"
+
+#: addons/goto/class_gotoLogView.inc:235
msgid "Log view"
msgstr "Log-Ansicht"
-#: addons/goto/class_gotoLogView.inc:203
+#: addons/goto/class_gotoLogView.inc:236
msgid "GOto log view"
msgstr "GOto Log-Ansicht"
diff --git a/trunk/gosa-plugins/goto/locale/messages.po b/trunk/gosa-plugins/goto/locale/messages.po
index b8ca931b3768e7cc42da6960a842aa156047dcda..47cb4ba5d822a4f2ba17802278bee11cb5f20ede 100644 (file)
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2009-11-03 14:33+0100\n"
+"POT-Creation-Date: 2010-02-08 13:57+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: admin/systems/goto/ArpNewDevice.tpl:17
#: admin/systems/goto/class_workstationGeneric.inc:708
#: admin/systems/goto/workstation.tpl:19 admin/systems/goto/printer.tpl:16
-#: admin/systems/services/nfs/servnfs.tpl:19
+#: admin/systems/goto/printer.tpl:47 admin/systems/services/nfs/servnfs.tpl:19
#: admin/systems/services/nfs/class_servNfs.inc:216
#: admin/systems/services/shares/class_goShareServer.inc:424
#: admin/applications/generic.tpl:33
#: addons/goto/class_gotomasses.inc:735 addons/goto/class_gotomasses.inc:739
#: addons/goto/class_gotomasses.inc:775 addons/goto/class_gotomasses.inc:819
#: addons/goto/class_target_list.inc:250 addons/goto/class_target_list.inc:254
-#: addons/goto/class_gotoLogView.inc:57 addons/goto/class_gotoLogView.inc:175
+#: addons/goto/class_gotoLogView.inc:58 addons/goto/class_gotoLogView.inc:208
msgid "Error"
msgstr ""
#: admin/systems/goto/class_printGeneric.inc:920
#: admin/systems/goto/class_terminalGeneric.inc:353
#: admin/systems/goto/class_terminalGeneric.inc:580
-#: admin/systems/goto/class_workstationService.inc:479
+#: admin/systems/goto/class_workstationService.inc:467
#: admin/systems/goto/class_workstationStartup.inc:893
#: admin/systems/goto/class_terminalService.inc:597
#: admin/systems/goto/class_ArpNewDevice.inc:69
#: admin/systems/services/nfs/servnfs.tpl:56
#: admin/systems/services/nfs/class_servNfs.inc:202
#: admin/systems/services/shares/class_goShareServer.inc:425
+#: addons/goto/class_gotoLogView.inc:134
msgid "Type"
msgstr ""
#: admin/systems/goto/terminalStartup.tpl:115
#: admin/systems/goto/terminalService.tpl:212
#: admin/systems/goto/workstationStartup.tpl:233
-#: admin/systems/goto/printer.tpl:71
+#: admin/systems/goto/printer.tpl:82
#: admin/applications/class_applicationParameters.inc:122
#: admin/applications/class_divListApplication.inc:120
#: personal/environment/environment.tpl:238
msgstr ""
#: admin/groups/apps/app_list.tpl:88 admin/groups/apps/app_list.tpl:134
-#: admin/systems/goto/printer.tpl:68
+#: admin/systems/goto/printer.tpl:79
#: admin/systems/services/shares/goShareServer.tpl:17
#: personal/environment/environment.tpl:274
#: addons/goto/class_gotomasses.inc:469
#: admin/systems/goto/class_terminalGeneric.inc:137
#: admin/systems/goto/class_terminalGeneric.inc:287
#: admin/systems/goto/class_terminalGeneric.inc:299
+#: admin/systems/goto/class_workstationService.inc:206
+#: admin/systems/goto/class_workstationService.inc:210
+#: admin/systems/goto/class_workstationService.inc:213
+#: admin/systems/goto/class_workstationService.inc:216
#: admin/systems/goto/class_workstationService.inc:219
#: admin/systems/goto/class_workstationService.inc:222
#: admin/systems/goto/class_workstationService.inc:225
#: admin/systems/goto/class_workstationService.inc:228
-#: admin/systems/goto/class_workstationService.inc:231
-#: admin/systems/goto/class_workstationService.inc:234
-#: admin/systems/goto/class_workstationService.inc:237
+#: admin/systems/goto/class_workstationService.inc:239
#: admin/systems/goto/class_workstationService.inc:240
-#: admin/systems/goto/class_workstationService.inc:251
-#: admin/systems/goto/class_workstationService.inc:252
-#: admin/systems/goto/class_workstationService.inc:253
-#: admin/systems/goto/class_workstationService.inc:254
-#: admin/systems/goto/class_workstationService.inc:255
-#: admin/systems/goto/class_workstationService.inc:256
-#: admin/systems/goto/class_workstationService.inc:257
-#: admin/systems/goto/class_workstationService.inc:258
+#: admin/systems/goto/class_workstationService.inc:241
+#: admin/systems/goto/class_workstationService.inc:242
+#: admin/systems/goto/class_workstationService.inc:243
+#: admin/systems/goto/class_workstationService.inc:244
+#: admin/systems/goto/class_workstationService.inc:245
+#: admin/systems/goto/class_workstationService.inc:246
#: admin/systems/goto/class_workstationStartup.inc:178
#: admin/systems/goto/class_workstationStartup.inc:208
#: admin/systems/goto/class_terminalService.inc:182
msgstr ""
#: admin/systems/goto/class_printGeneric.inc:706
-#: admin/systems/goto/printer.tpl:54
+#: admin/systems/goto/printer.tpl:65
msgid "Printer URL"
msgstr ""
msgstr ""
#: admin/systems/goto/class_printGeneric.inc:970
-#: admin/systems/goto/printer.tpl:82
+#: admin/systems/goto/printer.tpl:93
msgid "Permissions"
msgstr ""
#: admin/systems/goto/workstationService.tpl:86
#: admin/systems/goto/terminalService.tpl:76
-#: admin/systems/goto/class_workstationService.inc:538
+#: admin/systems/goto/class_workstationService.inc:526
#: admin/systems/goto/class_terminalService.inc:712
msgid "Telephone hardware"
msgstr ""
msgstr ""
#: admin/systems/goto/workstationService.tpl:110
-#: admin/systems/goto/terminalService.tpl:98 admin/systems/goto/printer.tpl:66
+#: admin/systems/goto/terminalService.tpl:98 admin/systems/goto/printer.tpl:77
msgid "Driver"
msgstr ""
msgstr ""
#: admin/systems/goto/workstationService.tpl:157
-#: admin/systems/goto/class_workstationService.inc:106
+#: admin/systems/goto/class_workstationService.inc:91
#: admin/systems/goto/class_terminalService.inc:610
msgid "unknown"
msgstr ""
#: admin/systems/goto/workstationService.tpl:170
#: admin/systems/goto/terminalService.tpl:150
-#: admin/systems/goto/class_workstationService.inc:425
-#: admin/systems/goto/class_workstationService.inc:427
-#: admin/systems/goto/class_workstationService.inc:432
-#: admin/systems/goto/class_workstationService.inc:529
+#: admin/systems/goto/class_workstationService.inc:413
+#: admin/systems/goto/class_workstationService.inc:415
+#: admin/systems/goto/class_workstationService.inc:420
+#: admin/systems/goto/class_workstationService.inc:517
#: admin/systems/goto/class_terminalService.inc:701
msgid "HSync"
msgstr ""
#: admin/systems/goto/workstationService.tpl:181
#: admin/systems/goto/terminalService.tpl:158
-#: admin/systems/goto/class_workstationService.inc:408
-#: admin/systems/goto/class_workstationService.inc:410
-#: admin/systems/goto/class_workstationService.inc:415
-#: admin/systems/goto/class_workstationService.inc:530
+#: admin/systems/goto/class_workstationService.inc:396
+#: admin/systems/goto/class_workstationService.inc:398
+#: admin/systems/goto/class_workstationService.inc:403
+#: admin/systems/goto/class_workstationService.inc:518
#: admin/systems/goto/class_terminalService.inc:702
msgid "VSync"
msgstr ""
#: admin/systems/goto/class_terminalGeneric.inc:187
#: admin/systems/goto/class_terminalGeneric.inc:594
-#: admin/systems/goto/class_workstationService.inc:586
+#: admin/systems/goto/class_workstationService.inc:574
#: admin/systems/goto/class_workstationStartup.inc:942
#: admin/systems/goto/class_workstationStartup.inc:1107
#: admin/systems/goto/class_workstationStartup.inc:1175
msgid "set"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:93
+#: admin/systems/goto/class_workstationService.inc:78
#: admin/systems/goto/class_workstationStartup.inc:1407
#: admin/systems/goto/class_workstationStartup.inc:1409
#: admin/systems/goto/class_terminalService.inc:121
msgid "Configuration error"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:103
+#: admin/systems/goto/class_workstationService.inc:88
msgid "manual/auto"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:110
-#: admin/systems/goto/class_workstationService.inc:111
-#: admin/systems/goto/class_workstationService.inc:112
-#: admin/systems/goto/class_workstationService.inc:113
+#: admin/systems/goto/class_workstationService.inc:95
+#: admin/systems/goto/class_workstationService.inc:96
+#: admin/systems/goto/class_workstationService.inc:97
+#: admin/systems/goto/class_workstationService.inc:98
#: admin/systems/goto/class_terminalService.inc:128
#: admin/systems/goto/class_terminalService.inc:129
#: admin/systems/goto/class_terminalService.inc:130
msgid "bit"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:172
+#: admin/systems/goto/class_workstationService.inc:157
#: admin/systems/goto/class_terminalService.inc:211
msgid "automatic"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:225
+#: admin/systems/goto/class_workstationService.inc:213
#: admin/systems/goto/class_terminalService.inc:274
msgid "Bit"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:341
+#: admin/systems/goto/class_workstationService.inc:329
#: admin/systems/goto/class_terminalService.inc:421
msgid "Choose the phone located at the current terminal"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:516
+#: admin/systems/goto/class_workstationService.inc:504
#: admin/systems/goto/class_terminalService.inc:685
msgid "Service"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:517
+#: admin/systems/goto/class_workstationService.inc:505
msgid "Workstation service"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:525
+#: admin/systems/goto/class_workstationService.inc:513
#: admin/systems/goto/class_terminalService.inc:695
msgid "Monitor"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:526
+#: admin/systems/goto/class_workstationService.inc:514
#: admin/systems/goto/class_terminalService.inc:698
msgid "Gfx driver"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:527
+#: admin/systems/goto/class_workstationService.inc:515
#: admin/systems/goto/class_terminalService.inc:699
msgid "Gfx resolution"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:528
+#: admin/systems/goto/class_workstationService.inc:516
#: admin/systems/goto/class_terminalService.inc:700
msgid "Gfx color depth"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:531
+#: admin/systems/goto/class_workstationService.inc:519
msgid "Use DDC"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:532
+#: admin/systems/goto/class_workstationService.inc:520
#: admin/systems/goto/class_terminalService.inc:704
msgid "Scanner enabled"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:533
+#: admin/systems/goto/class_workstationService.inc:521
#: admin/systems/goto/class_terminalService.inc:706
msgid "Keyboard model"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:534
+#: admin/systems/goto/class_workstationService.inc:522
#: admin/systems/goto/class_terminalService.inc:707
msgid "Keyboard layout"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:535
+#: admin/systems/goto/class_workstationService.inc:523
#: admin/systems/goto/class_terminalService.inc:708
msgid "Keyboard variant"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:536
+#: admin/systems/goto/class_workstationService.inc:524
#: admin/systems/goto/class_terminalService.inc:709
msgid "Mouse type"
msgstr ""
-#: admin/systems/goto/class_workstationService.inc:537
+#: admin/systems/goto/class_workstationService.inc:525
#: admin/systems/goto/class_terminalService.inc:710
msgid "Mouse port"
msgstr ""
msgstr ""
#: admin/systems/goto/SelectDeviceType.tpl:39
-#: addons/goto/class_gotoLogView.inc:87
+#: addons/goto/class_gotoLogView.inc:92
msgid "none"
msgstr ""
#: admin/ogroups/goto/class_termgroup.inc:272
#: addons/goto/events/class_DaemonEvent_update.inc:29
#: addons/goto/events/class_DaemonEvent_update.inc:30
+#: addons/goto/class_gotoLogView.inc:157
msgid "Software update"
msgstr ""
msgid "Details"
msgstr ""
-#: admin/systems/goto/printer.tpl:46
+#: admin/systems/goto/printer.tpl:57
msgid "Printer location"
msgstr ""
-#: admin/systems/goto/printer.tpl:89
+#: admin/systems/goto/printer.tpl:100
msgid "Users which are allowed to use this printer"
msgstr ""
-#: admin/systems/goto/printer.tpl:91
+#: admin/systems/goto/printer.tpl:102
msgid "Users"
msgstr ""
-#: admin/systems/goto/printer.tpl:96 admin/systems/goto/printer.tpl:120
+#: admin/systems/goto/printer.tpl:107 admin/systems/goto/printer.tpl:131
msgid "Add user"
msgstr ""
-#: admin/systems/goto/printer.tpl:99 admin/systems/goto/printer.tpl:123
+#: admin/systems/goto/printer.tpl:110 admin/systems/goto/printer.tpl:134
msgid "Add group"
msgstr ""
-#: admin/systems/goto/printer.tpl:113
+#: admin/systems/goto/printer.tpl:124
msgid "Users which are allowed to administrate this printer"
msgstr ""
-#: admin/systems/goto/printer.tpl:115
+#: admin/systems/goto/printer.tpl:126
msgid "Admins"
msgstr ""
msgid "DHCP"
msgstr ""
-#: addons/goto/class_gotoLogView.inc:113
+#: addons/goto/class_gotoLogView.inc:132
msgid "File"
msgstr ""
-#: addons/goto/class_gotoLogView.inc:115
+#: addons/goto/class_gotoLogView.inc:136
msgid "Date"
msgstr ""
-#: addons/goto/class_gotoLogView.inc:202
+#: addons/goto/class_gotoLogView.inc:160
+msgid "Installation"
+msgstr ""
+
+#: addons/goto/class_gotoLogView.inc:235
msgid "Log view"
msgstr ""
-#: addons/goto/class_gotoLogView.inc:203
+#: addons/goto/class_gotoLogView.inc:236
msgid "GOto log view"
msgstr ""
index 82112fb7cd39a848e30388a6cc930941aeb049db..45a3b29389495b436906048905a35af8769e0b53 100755 (executable)
}
}
-
#=== FUNCTION ================================================================
# NAME: check_pid
# PARAMETERS:
}
-
#=== FUNCTION ================================================================
# NAME: get_local_mac_for_remote_ip
# PARAMETERS: none (takes server_ip from global variable)
&send_msg_to_target($clmsg, $server_address, $server_key, "CLMSG_$header");
# if installation finished, save all log files
- if ($file_record eq "TASKBEGIN finish") {
+ if ($file_record eq "TASKBEGIN savelog") {
&save_fai_log($fai_log_dir);
}
sub save_fai_log {
my ($fai_log_dir) = @_ ;
my $FAI_DIR;
+ my $fai_action;
# Directory for log files after a softupdate
my $log_dir = File::Spec->catdir($fai_log_dir, "localhost/last");
daemon_log("ERROR: cannot open directory $log_dir", 1);
return;
}
+ $fai_action = "install";
+ }
+ else {
+ # If we already have a logdir, we can assume that this is a softupdate
+ $fai_action = "softupdate";
}
opendir($FAI_DIR, "$log_dir");
my $all_log_string = join("\n", @log_list);
my $msg_hash = &create_xml_hash("CLMSG_save_fai_log", $client_address, $server_address, $all_log_string);
&add_content2xml_hash($msg_hash, "macaddress", $client_mac_address);
+ &add_content2xml_hash($msg_hash, "fai_action", $fai_action);
my $msg = &create_xml_string($msg_hash);
&send_msg_to_target($msg, $server_address, $server_key, "CLMSG_save_fai_log");
index b818b707f7c3b20e0b2aa0c2e455c7fa856dc168..7bad55ec141bc68e949f8d9c85b959c04ea53941 100644 (file)
my $header = @{$msg_hash->{'header'}}[0];
my $source = @{$msg_hash->{'source'}}[0];
my $macaddress = @{$msg_hash->{'macaddress'}}[0];
+ my $fai_action = @{$msg_hash->{'fai_action'}}[0];
my $all_logs = @{$msg_hash->{$header}}[0];
# if there is nothing to log
my $time = &get_time;
$time = substr($time, 0, 8)."_".substr($time, 8, 6);
- $client_fai_log_dir = File::Spec->catfile( $client_fai_log_dir, "install_$time" );
+ $client_fai_log_dir = File::Spec->catfile( $client_fai_log_dir, $fai_action ."_".$time );
mkdir($client_fai_log_dir, 0755);
my @all_logs = split(/log_file:/, $all_logs);