Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.14 KB | None | 0 0
  1.  
  2. """
  3. Zope Imports
  4. """
  5. from zope.component import getUtility
  6.  
  7. from plone.registry.interfaces import IRegistry
  8.  
  9. """
  10. Control panel package import
  11. """
  12. from cenditel.multimediapanel.interfaces import ITranscodeSetings
  13.  
  14.  
  15. #Instance of getUtility class
  16. registry = getUtility(IRegistry)
  17.  
  18. #getting registrys from interface
  19. settings = registry.forInterface(ITranscodeSetings)
  20.  
  21. """Common configuration settings
  22. """
  23. #Address of the Apache Server
  24. APACHE_SERVER = settings.adress_of_streaming_server
  25.  
  26. TRANSCODE_SWITCH = settings.transcode_switch
  27.  
  28. PARAMETRES_TRANSCODE = settings.ffmpeg_parameters_line
  29.  
  30. EFFECTIVE_USER = 'victor'
  31.  
  32. PROJECTNAME = 'cenditel.multimedia' #Name of the project
  33.  
  34. INSTANCENAME='zinstance' #Name of the instance
  35. #/home/usar/Plone/zinstance/var/filestorage/fss
  36. #Location Path of FileSystemSotrage
  37.  
  38. try:
  39.     import ubify.policy
  40.     STORAGE = '/home/'+EFFECTIVE_USER+'/public_html/'
  41. except:
  42.     STORAGE = '/home/'+EFFECTIVE_USER+'/public_html/'
  43.  
  44. #TRANSCODE = True
  45.  
  46. ADD_PERMISSIONS = {
  47.     # -*- extra stuff goes here -*-
  48.     'video': 'cenditel.multimedia: Add video',
  49.     'audio': 'cenditel.multimedia: Add audio',
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement