hi there!
I am trying to add validation to process some fields of ATGoogleVideo
and ATOdeoAudio products.
the idea is modify the way I ask for video or audio id:
what I have -> what I want
4663184974342392861 ->
http://video.google.com/videoplay?docid=4663184974342392861
nDxTLUmsR-s -> http://youtube.com/watch?v=nDxTLUmsR-s
8721463 -> http://odeo.com/audio/8721463/view
resuming, I want a complete URL instead of a video or audio id only.
in this way I will be able to migrate easier to Plone's 2.5 way of doing
things and, instead of creating a new content type for every external
multimedia object, I will only need to add an URL and then display it in
the correct way.
so what I want to do is: when a URL is entered the validation method
will validate it and tell me what kind of external multimedia object it
is. I will add a field to store the result (i.e. Google Video=1 ,
YouTube=2, Odeo=3...).
can anybody tell me how to do this?
(sorry, Martin, I lost what you told me in IRC)
best regards
--
Héctor Velarde
Desarrollo e Internet
La Jornada
+52 (55) 9183 0300 x4160
_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers