diff options
author | Christian Pointner <equinox@helsinki.at> | 2013-02-14 15:48:27 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2013-02-14 15:48:27 (GMT) |
commit | 2a21bfa845e29dd2f63119ca383e58d4d3e82be7 (patch) | |
tree | 90aa26979422406e4756f3bf79edd6f425033ca6 | |
parent | 1dea0d52f27eacda4504ca8d2703c3d09f33a73e (diff) |
added new autoimport dropbox class
-rwxr-xr-x | rhimport | 4 | ||||
-rw-r--r-- | rhimport.pm | 3 |
2 files changed, 5 insertions, 2 deletions
@@ -80,7 +80,7 @@ my @allowed_dbs = rhimport::get_dropboxes($dbh, $user); if($LISTALLOWED) { for my $href ( @allowed_dbs ) { - print "$href->{'NAME'} \t-> $href->{'PATH'}\n"; + print "$href->{'NAME'} \t-> $href->{'PATH'}\n" unless $href->{'NAME'} =~ /^autoimport/; } $dbh->disconnect(); exit 0; @@ -399,7 +399,7 @@ if(!$FILE || !$DROPBOX) { my $model = Gtk2::ListStore->new('Glib::String', 'Glib::String', 'Glib::String', 'Glib::String'); for my $href ( @allowed_dbs ) { - $model->set ($model->append, 0, $href->{'PATH'}, 1, $href->{'GROUP'}, 2, $href->{'TO_CART'}, 3, $href->{'NAME'}); + $model->set ($model->append, 0, $href->{'PATH'}, 1, $href->{'GROUP'}, 2, $href->{'TO_CART'}, 3, $href->{'NAME'}) unless $href->{'NAME'} =~ /^autoimport/; } my $co_dropbox = $guixml->get_widget('co_dropbox'); $co_dropbox->set_model($model); diff --git a/rhimport.pm b/rhimport.pm index 8cd609d..359ca5c 100644 --- a/rhimport.pm +++ b/rhimport.pm @@ -78,6 +78,9 @@ sub get_dropboxes elsif($name =~ /^sondersendungen\/(.*)$/) { $name = "Sondersendungen - $1"; } + elsif($name =~ /^autoimport\/(.*)$/) { + $name = "autoimport - $1"; + } my $perm = {}; $perm->{'GROUP'} = $group; $perm->{'PATH'} = $path; |