def afterSetUp(self):
     self.portal.manage_install_pluggableitem('Naaya Youtube')
     from Products.Naaya.NyFolder import addNyFolder
     from naaya.content.youtube.youtube_item import addNyYoutube
     addNyFolder(self.portal, 'myfolder', contributor='contributor',
         submitted=1)
     addNyYoutube(self.portal.myfolder, id='myyoutube',
         title='My Youtube Video', submitted=1, contributor='contributor',
         youtube_id='uelHwf8o7_U', iframe_width='640', iframe_height='360')
     import transaction; transaction.commit()
Beispiel #2
0
 def add_object(self, parent):
     parent.getSite().manage_install_pluggableitem('Naaya Youtube')
     ob = parent[addNyYoutube(parent,
                              title='My Youtube video',
                              youtube_id='uelHwf8o7_U',
                              iframe_width='640',
                              iframe_height='360')]
     ob.approveThis()
     return ob
Beispiel #3
0
 def afterSetUp(self):
     self.portal.manage_install_pluggableitem('Naaya Youtube')
     from Products.Naaya.NyFolder import addNyFolder
     from naaya.content.youtube.youtube_item import addNyYoutube
     addNyFolder(self.portal,
                 'myfolder',
                 contributor='contributor',
                 submitted=1)
     addNyYoutube(self.portal.myfolder,
                  id='myyoutube',
                  title='My Youtube Video',
                  submitted=1,
                  contributor='contributor',
                  youtube_id='uelHwf8o7_U',
                  iframe_width='640',
                  iframe_height='360')
     import transaction
     transaction.commit()
 def add_object(self, parent):
     parent.getSite().manage_install_pluggableitem('Naaya Youtube')
     ob = parent[addNyYoutube(parent, title='My Youtube video',
         youtube_id='uelHwf8o7_U', iframe_width='640', iframe_height='360')]
     ob.approveThis()
     return ob