Hi Andre!

Le lundi 6 décembre 2010 22:42:48, [email protected] a écrit :
>                 # Fill-in Title for ID3 Tag
> 
>                     def fill_in(s)
>                       # the function f takes a list of pairs m representing
> the metadata # and it maps an anonymous function on each pair # replacing
> empty title definitions by title=filename def f(m)
>                         list.map(fun (key_value) ->
>                           if key_value==("title","") then
> ("title",m["filename"]) else key_value end,
>                           m)
>                       end
>                       map_metadata(f,s)
>                     end
> 
>                 # Then just wrap your source at an appropriate spot:
>                 # source = fill_in(source)
> 
> 
>                 icogg = fill_in(sstol)

This seems ok on the surface. What you can do to debug and see what is going 
on is add a line like this in the definition of f(m):

  print("\n\nFor metadata: #{m}\n\n")

This should print the metadata everytime they are passed to the function.

Romain

------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly 
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus 
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to