Jordan Foley
2005-12-13 20:16:15 UTC
I modified the code from samsung_prototype to what should be very simple
sms code where it just grabs the first message and puts their callback #
in the database but it will not work for some reason. I just wish I
could at least get something in the database then it would be a lot
easier from there.
def getsms(self, result):
sms = {}
self.log("Getting sms entries")
slot=1
req=self.protocolclass.messagerequest()
req.slot=slot
res=self.sendpbcommand(req, self.protocolclass.messageresponse)
entry=sms.SMSEntry()
entry.callback=callback
result['sms']=sms
return result
entry=sms.SMSEntry()
AttributeError: 'dict' object has no attribute 'SMSEntry, is the error
it throws.
sms code where it just grabs the first message and puts their callback #
in the database but it will not work for some reason. I just wish I
could at least get something in the database then it would be a lot
easier from there.
def getsms(self, result):
sms = {}
self.log("Getting sms entries")
slot=1
req=self.protocolclass.messagerequest()
req.slot=slot
res=self.sendpbcommand(req, self.protocolclass.messageresponse)
entry=sms.SMSEntry()
entry.callback=callback
result['sms']=sms
return result
entry=sms.SMSEntry()
AttributeError: 'dict' object has no attribute 'SMSEntry, is the error
it throws.