Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- """
- Zope Imports
- """
- from zope.component import getUtility
- from plone.registry.interfaces import IRegistry
- """
- Control panel package import
- """
- from cenditel.multimediapanel.interfaces import ITranscodeSetings
- #Instance of getUtility class
- registry = getUtility(IRegistry)
- #getting registrys from interface
- settings = registry.forInterface(ITranscodeSetings)
- """Common configuration settings
- """
- #Address of the Apache Server
- APACHE_SERVER = settings.adress_of_streaming_server
- TRANSCODE_SWITCH = settings.transcode_switch
- PARAMETRES_TRANSCODE = settings.ffmpeg_parameters_line
- EFFECTIVE_USER = 'victor'
- PROJECTNAME = 'cenditel.multimedia' #Name of the project
- INSTANCENAME='zinstance' #Name of the instance
- #/home/usar/Plone/zinstance/var/filestorage/fss
- #Location Path of FileSystemSotrage
- try:
- import ubify.policy
- STORAGE = '/home/'+EFFECTIVE_USER+'/public_html/'
- except:
- STORAGE = '/home/'+EFFECTIVE_USER+'/public_html/'
- #TRANSCODE = True
- ADD_PERMISSIONS = {
- # -*- extra stuff goes here -*-
- 'video': 'cenditel.multimedia: Add video',
- 'audio': 'cenditel.multimedia: Add audio',
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement