You Are Here:

Community: Developer Discussion Boards

#1 Old Question Inbox module problem - 2008-08-20, 07:58

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
#hi all

#when i try this;


import inbox
S=inbox.Inbox
s.sms_messages()[0]

#AttributeError:'builtin_function_or_method'object has no #attribute 'sms_messages'
#why this is so???


#thnx in advance
Reply With Quote

#2 Old Re: Inbox module problem - 2008-08-20, 08:02

Join Date: Dec 2007
Posts: 409
Location: Tempe, AZ
Send a message via Yahoo to shubhendra Send a message via Skype™ to shubhendra
shubhendra's Avatar
shubhendra
Offline
Forum Nokia Champion
It should be instead like this

Code:
 import inbox
 box = inbox.Inbox()
 msg = box.sms_messages()
And please dont create multiple thread on same topic.


IDEAS is all they need but still they think only Genius can give them that.
Reply With Quote

#3 Old Re: Inbox module problem - 2008-08-20, 08:35

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
i am getting same attribute error.
how could i find out attributes of modile inbox?
using, dir(inbox) command
correct??
then i did not find sms_messages in the attributes....

what can i do now?
Reply With Quote

#4 Old Re: Inbox module problem - 2008-08-20, 08:45

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
i am getting same attribute error.
how could i find out attributes of modile inbox?
using, dir(inbox) command
correct??
then i did not find sms_messages in the attributes....

what can i do now?
You won't find it in dir(inbox) as its an attribute of an instance.

So for the following you can get the attributes
Code:
import inbox
box = inbox.Inbox()
dir(box)
Best Regards,
Croozeus
Reply With Quote

#5 Old Re: Inbox module problem - 2008-08-20, 09:47

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hi croozeus,

i checked with dir(inbox.Inbox)it is giving,

['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__
', '__hash__', '__init__', '__name__', '__new__', '__reduce__', '__repr__', '__s
elf__', '__setattr__', '__str__']

what to do??
Reply With Quote

#6 Old Re: Inbox module problem - 2008-08-20, 09:50

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
hi croozeus,

i checked with dir(inbox.Inbox)it is giving,

Hmph,

Did I tell you dir(inbox.Inbox) or dir(box) ?

Quote:
Originally Posted by croozeus View Post

Code:
import inbox
box = inbox.Inbox()
dir(box)

Best Regards,
Croozeus
Reply With Quote

#7 Old Re: Inbox module problem - 2008-08-20, 09:54

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Offline
Forum Nokia Champion
In other words, the two brackets make a difference with the dir operation.
Code:
dir(inbox.Inbox)
will have an output, while
Code:
dir(inbox.Inbox())
will have a different output, in this case probably the one you're looking for.
Reply With Quote

#8 Old Re: Inbox module problem - 2008-08-20, 10:01

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
hay bogdan and croozeus
u are correct ,i got sms_messages.
now one problem is that,
i want to read Bluetooth messages in INBOX.
for nokia 6600 bluetooth files sent by PC are residing at INBOX.
So how could i read the same?

with sms_messages bluetooth messages are not getting Read/counted.

thnxs again
Reply With Quote

#9 Old Smile Re: Inbox module problem - 2008-08-20, 10:05

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by sagars View Post
i want to read Bluetooth messages in INBOX.
for nokia 6600 bluetooth files sent by PC are residing at INBOX.
So how could i read the same?

with sms_messages bluetooth messages are not getting Read/counted.

thnxs again
Hi Sagar,

We have discussed this topic earlier several times,

Its not possible to read the Bluetooth messages using the Inbox module (or by any means that I know)

May be you need an extension or add a feature request.

Best Regards,
Croozeus
Reply With Quote

#10 Old Re: Inbox module problem - 2008-08-20, 10:08

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
ok .
But if i am having bluetooth messages in INBOX folder then where it has not been recognized by inbox module??

what is the difference in sms and bluetooth messages properties?
Reply With Quote

#11 Old Re: Inbox module problem - 2008-08-21, 08:19

Join Date: Nov 2006
Posts: 17
oper6600
Offline
Registered User
import inbox
S=inbox.Inbox
s.sms_messages()[0]


S or s ?


import inbox
s=inbox.Inbox()
s.sms_messages()[0]
Reply With Quote

#12 Old Re: Inbox module problem - 2008-08-21, 08:23

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
ya that was my typing mistake while testing i typed correctly...

and also i got answer ...from this thread..
Reply With Quote

#13 Old Re: Inbox module problem - 2008-08-21, 08:24

Join Date: Nov 2006
Posts: 186
Location: Pune, india
sagars's Avatar
sagars
Offline
Regular Contributor
dir(inbox.Inbox())
has worked for me,..
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
The problem about the audio module of the game engine vincent.lee Symbian Media (Graphics & Sounds) 2 2008-03-15 08:22
Creating MMS to Inbox problem mikkoiv Symbian Networking & Messaging 4 2007-12-10 14:58
Carbide.j 1.5 and Netbeans 5.5 beta 2 ovjo12 Mobile Java Tools & SDKs 5 2007-06-11 06:43
Recognizer on 3rd, problem with inbox Tatanka.nbr1 General Symbian C++ 16 2006-08-30 07:35
No module named inbox nibss Python 1 2006-05-31 01:14

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia