Modify

Ticket #191 (closed task: fixed)

Opened 3 years ago

Last modified 3 years ago

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.

Attachments

Change History

comment:1 Changed 3 years ago by lbponey

  • Status changed from new to closed
  • Resolution set to fixed

Thanks Andrew! Fixed in latest svn.

View

Add a comment

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.