Code

Updated FAI package handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Mar 2008 11:39:31 +0000 (11:39 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 25 Mar 2008 11:39:31 +0000 (11:39 +0000)
- gosa-si

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9970 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiPackage.inc
gosa-plugins/fai/admin/fai/class_faiPackageConfiguration.inc

index 79cd57a0b87ca3d8a235fe422bf1bfa469758aba..0134210477b17521a83064c293eaf486732ca785 100644 (file)
@@ -263,7 +263,7 @@ class faiPackage extends plugin
         $pkg_config = $this->ConfiguredPackages[$pkg];
       }
 
-      $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $path, $pkg_config);
+      $this->dialog = new faiPackageConfiguration($this->config, $this->dn,$pkg, $this->FAIdebianRelease , $pkg_config);
       $this->is_dialog =true;
     }
 
index f132c3b04ccc9df760c9ff3bcd0966eb0769e049..7212e1c3be2125beb1619f2e43253c108cbde024 100644 (file)
@@ -10,11 +10,15 @@ class faiPackageConfiguration extends plugin
   var $Debconf_handle = NULL;
   var $pkg_config ;
   var $obj;
+  var $release;
 
-  function faiPackageConfiguration (&$config, $dn= NULL,$obj,$path,$pkg_config)
+  function faiPackageConfiguration (&$config, $dn= NULL,$obj,$release,$pkg_config)
   {
     plugin::plugin ($config, $dn);
     $this->obj = $obj;
+    $this->release = $release;
+
+
 #   $this->Debconf_handle = new debconf();
 #   $this->Debconf_handle->set_template_directory($path);
 #   $this->Debconf_handle->set_package($this->obj);
@@ -34,6 +38,11 @@ class faiPackageConfiguration extends plugin
     /* Call parent execute */
     plugin::execute();
 
+    $q = new gosaSupportDaemon();
+    $ret = $q->FAI_get_packages($this->release,$this->obj);
+    print_a($ret);
+
+
     return("Not implemented yet<input type='submit' name='CancelObjectConfig' value='back'>");
 
     /* Fill templating stuff */