Ticket #191 (closed task: fixed)
DownloadFile & DownloadFileTo incorreclty initialized
| Reported by: | hapygallagher@… | Owned by: | lbponey |
|---|---|---|---|
| Priority: | major | Milestone: | Release 0.3 |
| Component: | museek_general | Version: | 0.2 |
| Keywords: | Cc: |
Description
DownloadFile? & DownloadFileTo? should both be initialized with "size = 0" instead of "size = None"
packing the struct w/ the value "None" does not work when the message is being created.
Should be changed to: =============== class DownloadFile?(BaseMessage?):
code = 0x0503
def init(self, user = None, path = None, size = 0):
self.user = user self.path = path self.size = size
def make(self):
return self.pack_uint(self.code) + \
self.pack_string(self.user) + \ self.pack_string(self.path) + \ self.pack_off(self.size)
=============== class DownloadFileTo?(BaseMessage?):
code = 0x0507
def init(self, user = None, path = None, dpath = None, size = 0):
self.user = user self.path = path self.dpath = dpath self.size = size
def make(self):
return self.pack_uint(self.code) + \
self.pack_string(self.user) + \ self.pack_string(self.path) + \ self.pack_string(self.dpath) + \ self.pack_off(self.size)
===============
Andrew W.

Thanks Andrew! Fixed in latest svn.