[plumi-discuss] [Plumi] #171: large time on wa (waiting io)
Plumi
trac at plumi.org
Fri Jul 25 01:54:10 EST 2008
#171: large time on wa (waiting io)
----------------------+-----------------------------------------------------
Reporter: yurj | Owner: andycat
Type: task | Status: new
Priority: major | Milestone:
Component: ATVideo | Version:
Resolution: | Keywords:
----------------------+-----------------------------------------------------
Comment(by yurj):
class VideoView( BrowserView ):
u"""This browser view is used as utility for the atvideo view
"""
implements( IVideoView, ITopicsProvider )
def __init__(self, context, request):
super(VideoView, self).__init__(context, request)
self.portal_url = getToolByName(self.context, "portal_url")()
self.vocab_tool = getToolByName(self.context,
"portal_vocabularies")
self.use_vpip = "vpip" in context.Subject()
media_info = context.getFileAttribs()
self.enclosure = media_info[1] > 0
(self.transcoding_ready,
self.transcoding_status) = self.get_transcoding_status()
is this ok? it is writing every time I see an item.
Also getFileAttribs is called two or three times on every view:
------
2008-07-24T17:50:40 INFO getFileAttribs using the CACHE of file system ,
length 6342048
------
2008-07-24T17:50:43 INFO getFileAttribs using the CACHE of file system ,
length 6342048
------
2008-07-24T17:50:45 INFO getFileAttribs using the CACHE of file system ,
length 6342048
ATVideo/skins/ATEngageVideo/video_view.pt: tal:define="enc
here/getFileAttribs"
ATVideo/skins/ATEngageVideo/video_view.pt: tal:define="enc
here/getFileAttribs ; bt_url here/getTorrentURL"
ATVideo/browser/video.py: media_info = context.getFileAttribs()
--
Ticket URL: <http://plumi.org/ticket/171#comment:2>
Plumi <http://plumi.org/>
Plumi - FOSS Video Sharing Platform
More information about the Discuss
mailing list