Last change
on this file since 1 was
1,
checked in by myroslav, 18 years ago
|
Building directory structure
|
-
Property svn:eol-style set to
native
|
File size:
836 bytes
|
Line | |
---|
1 | from Products.Five.browser import BrowserView |
---|
2 | from zope.interface import implements |
---|
3 | from p4a.audiopatch.interfaces import IAudioEncodedView, IAudioEncoded |
---|
4 | from _encodings import encodings |
---|
5 | |
---|
6 | |
---|
7 | class AudioEncodedView(BrowserView): |
---|
8 | |
---|
9 | implements(IAudioEncodedView) |
---|
10 | |
---|
11 | def __init__(self, context, request): |
---|
12 | self.audio_info = IAudioEncoded(context) |
---|
13 | |
---|
14 | def title(self): |
---|
15 | return self.audio_info.title |
---|
16 | |
---|
17 | def artist(self): |
---|
18 | return self.audio_info.artist |
---|
19 | |
---|
20 | def album(self): |
---|
21 | return self.audio_info.album |
---|
22 | |
---|
23 | def comment(self): |
---|
24 | return self.audio_info.comment |
---|
25 | |
---|
26 | def encoding(self): |
---|
27 | return self.audio_info.encoding |
---|
28 | |
---|
29 | def setEncoding(self, value): |
---|
30 | self.audio_info.encoding = value |
---|
31 | |
---|
32 | def getEncodingsList(self): |
---|
33 | return encodings |
---|
Note: See
TracBrowser
for help on using the repository browser.