Skip Menu |
 

This queue is for tickets about the OpenOffice-OODoc CPAN distribution.

Report information
The Basics
Id: 95444
Status: new
Priority: 0/
Queue: OpenOffice-OODoc

People
Owner: Nobody in particular
Requestors: marksteinerp [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: lacking functionality in getUserProperty and related methods
Date: Wed, 7 May 2014 17:21:57 +0200
To: bug-OpenOffice-OODoc [...] rt.cpan.org
From: Peter Marksteiner <marksteinerp [...] gmail.com>
Download (untitled) / with headers
text/plain 814b
Hello, The suite of methods for retrieving user-defined properties in OpenOffice::OODoc::Meta lacks important functionality. Consider the following task: you want to retrieve the name, type and value of all user-defined properties. Let $meta be a metadata object created by $meta = odfMeta(file => 'some_file'); $meta->getUserPropertyElements() gives a list of all user-defined properties. The elements of this list are property element objects. Now I can feed such a property element to getUserProperty and to getUserPropertyElement. The former gives type and value, the latter is basically a noop since it returns the input object. Neither method gives the element name. The problem can easily be solved using the deprecated user_defined() method, but not using the recommended methods. Regards, Peter --


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.