Guest User

Untitled

a guest
Jul 23rd, 2018
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. --- p4a/plonevideoembed/__init__.py.orig 2007-12-03 15:19:04.000000000 -0600
  2. +++ p4a/plonevideoembed/__init__.py 2010-01-31 21:27:17.000000000 -0600
  3. @@ -14,7 +14,10 @@
  4. if activation.media_activated:
  5. return False
  6.  
  7. - find_type = component.getUtility(baseifaces.IURLType)
  8. + find_type = component.queryUtility(baseifaces.IURLType)
  9. + if find_type is None:
  10. + return False
  11. +
  12. provider = baseifaces.ILinkProvider(Acquisition.aq_base(obj))
  13. url = provider.getLink()
Add Comment
Please, Sign In to add comment