Add support for meta.git history

tags/0.2.0
Daniel Berteaud 11 years ago
parent 15e60527a5
commit 2bb2261a20
  1. 3
      root/etc/e-smith/templates/etc/pydio/bootstrap_repositories.php/050repo

@ -55,6 +55,8 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
my $desc = $share->prop('Name') || $name; my $desc = $share->prop('Name') || $name;
my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ? my $recycledir = (($share->prop('RecycleBin') || 'disabled') eq 'disabled') ?
'' : $share->prop('RecycleBinDir') || 'Recycle Bin'; '' : $share->prop('RecycleBinDir') || 'Recycle Bin';
my $history = $share->prop('PydioHistory') || 'disabled';
$history = ($history eq 'enabled') ? '"meta.git" => array(),':'';
$OUT .=<<"EOF"; $OUT .=<<"EOF";
\$REPOSITORIES["$name"] = array( \$REPOSITORIES["$name"] = array(
@ -72,6 +74,7 @@ foreach my $share ($a->get_all_by_prop(type=>'share')){
"PAGINATION_NUMBER" => 200, "PAGINATION_NUMBER" => 200,
"META_SOURCES" => array( "META_SOURCES" => array(
$metastore $metastore
$history
"meta.user" => array ( "meta.user" => array (
"meta_fields" => "tags,stars_rate,css_label,anything_area", "meta_fields" => "tags,stars_rate,css_label,anything_area",
"meta_labels" => "Tags,Rate,Type,Note", "meta_labels" => "Tags,Rate,Type,Note",

Loading…
Cancel
Save