On 11/18/2010 03:41 PM, Ivan Frade wrote:
> Hi,
> 
> On Wed, Nov 17, 2010 at 5:16 PM, Nikolaus Rath <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     Martyn Russell <[email protected]
>     <mailto:martyn-bhgbangmcjvqt0dzr%[email protected]>> writes:
>     > On 17/11/10 00:02, Nikolaus Rath wrote:
>     >
>     This gives me the following result:
> 
>     ...
> 
>     So it seems that I still have to parse the entire string. Is there a way
>     to get the data in more structured form?
> 
> 
>  We have code in python doing that for our extraction test cases. Check
> the class ExtractorHelper in:
> 
> http://git.gnome.org/browse/tracker/tree/tests/functional-tests/common/utils/helpers.py
> 
>   Basically:
> extractor = ExtractorHelper ()
> results = extractor.get_metadata (filename)

That looks great, thanks!

> In our tests we don't specify the mimetype and they work fine.

So what are you passing as `mime` in get_metadata? `None`, an empty string?


>     Also, with a plain text document
>
>        tracker.GetMetadata('file:///home/nikratio/misc/Victoria.tex',
>     'text/plain')
>
>     I do not get any contents:
>
>     (dbus.String(u''), dbus.String(u' a nfo:PlainTextDocument .\n'))
>
>     Am I doing something wrong?


Do you by any chance also have an idea of why this isn't working?




Best,

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to