comparison browser_side/radiocol.py @ 151:a159cc29b556

server side: file upload is now more generic: - RadioCol upload is managed by a specialized class - A new Avatar upload specialized class is used to set avatar browser side: radiocol.py has been updated to follow upload change
author Goffi <goffi@goffi.org>
date Fri, 28 Dec 2012 01:05:22 +0100
parents ddfcc4cb6cee
children 9763dec220ed
comparison
equal deleted inserted replaced
150:a201e368fc86 151:a159cc29b556
80 def __init__(self, referee): 80 def __init__(self, referee):
81 FormPanel.__init__(self) 81 FormPanel.__init__(self)
82 self._timer = Timer(notify=self._timeCb) 82 self._timer = Timer(notify=self._timeCb)
83 self.setEncoding(FormPanel.ENCODING_MULTIPART) 83 self.setEncoding(FormPanel.ENCODING_MULTIPART)
84 self.setMethod(FormPanel.METHOD_POST) 84 self.setMethod(FormPanel.METHOD_POST)
85 self.setAction("upload") # set this as appropriate 85 self.setAction("upload_radiocol")
86 vPanel = VerticalPanel() 86 vPanel = VerticalPanel()
87 87
88 hPanel = HorizontalPanel() 88 hPanel = HorizontalPanel()
89 hPanel.setSpacing(5) 89 hPanel.setSpacing(5)
90 self.file_upload = FileUpload() 90 self.file_upload = FileUpload()