Skip to content

Commit

Permalink
Item2321: add GET webs.json
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@10157 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
SvenDowideit authored and SvenDowideit committed Dec 2, 2010
1 parent 8bb120c commit 132fee1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions core/lib/Foswiki/Serialise.pm
Expand Up @@ -71,18 +71,20 @@ sub convertMeta {
my $savedMeta = shift;

my $meta = {
_web => $savedMeta->web(),
_topic => $savedMeta->topic()
};
$meta->{_web} = $savedMeta->web() if (defined($savedMeta->web()));
$meta->{_topic} = $savedMeta->topic() if (defined($savedMeta->topic()));

foreach my $key ( keys(%$savedMeta) ) {
next if ( $key eq '_session' );
next if ( $key eq '_indices' );

#TODO: next if ( $key is one of the array types... and has no elements..

$meta->{$key} = $savedMeta->{$key};
}

$meta->{_raw_text} = $savedMeta->getEmbeddedStoreForm();
my $raw = $savedMeta->getEmbeddedStoreForm();
$meta->{_raw_text} = $raw if (defined($raw) and defined($meta->{_topic}));#TODO: exclude attachment meta too..

return $meta;
}
Expand Down

0 comments on commit 132fee1

Please sign in to comment.