Reply
Thread Tools
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#231
Originally Posted by neboja View Post
@MohammadAG
tell me please: i saw that is implemented that it stores sms-s in conversation, but someone said that recipient doesn't recive sms... but i think that it would be resolved.... anyhow, i was wondering is it implemented that you can READ a recived sms-s???
i am not still using this app, still waiting to be stable...
cheers!
Please note that I have not developed this app, all credit goes to ossipena, and contributers (aspidetes, qwerty12, frals etc...).
I only maintain the package itself.
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#232
Originally Posted by neboja View Post
i know i know! i was just wondering...
and it will be very dirty piece of code if it will be done.... probably affect a bit to battery life etc...

no luck with current octification function. the current pulling ascii code works up all the way to z.

so it isn't even close to etsi standards so it will be rewritten and after that hopefully we can get every char available for texting to work. (and mapped behind buttons at some point)

damn if the sending doesn't work for everyone. do you get delivery reports with latest version?

now it would be nice if someone who knows how things should be implemented. the problem is TON. 1= international, 4=local. how in earth some carriers don't deliver to international number format when program assigns TON=1 in that case?!? you do have plus in front of the international number, don't you?
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search
 
Posts: 71 | Thanked: 29 times | Joined on Nov 2009
#233
Originally Posted by MohammadAG View Post
Code:
python /opt/vertsms/vertsms_gui.pyc
What does the output of that (in terminal) say?
Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#234
Hmm, same problem that was sent to me via email
http://talk.maemo.org/showpost.php?p...&postcount=206

Missing dependencies? I can't really check since I have all python packages installed
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 71 | Thanked: 29 times | Joined on Nov 2009
#235
Can I check it somehow? With a little guidance, we might find the problem
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#236
apt-get install python-gobject
as root ^
 
Posts: 71 | Thanked: 29 times | Joined on Nov 2009
#237
I get the following:
Err http://repository.maemo.org fremantle-1.2/free python-gobject 2.16.1-1maemo1
Temporary failure resolving 'repository.maemo.org'
Failed to fetch http://repository.maemo.org/extras/p...emo1_armel.deb Temporary failure resolving 'repository.maemo.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
 
Posts: 398 | Thanked: 301 times | Joined on Sep 2007 @ Texas
#238
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:
connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                     '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()        
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall()  
        seq_id = max(id_array)[0] + 1
Yes I've been reusing your code in an application that I work on.

Frank

Originally Posted by wheatbisc View Post
Trackback (most recent call last):
File "/opt/vertsms/vertsms_gui.oy", line 19 in <module>
from vertsms import config, sms, pygobject
File "/opt/vertsms/vertsms/sms.py", line 5, in <module>
import ctypes, uuid, glib, gobject
ImportError: No module named glib
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#239
Originally Posted by Frank Banul View Post
You don't even need to import glib or gobject for the code you have in sms.py.

And for that matter, you can remove sqlite3 import and code, it's not being used if I'm interpreting correctly.

Code:
connection = sqlite3.connect(os.path.join(os.environ['HOME'],
                                     '.rtcom-eventlogger', 'el.db'))
        cursor = connection.cursor()        
        cursor.execute('SELECT id FROM Events')
        id_array = cursor.fetchall()  
        seq_id = max(id_array)[0] + 1
Yes I've been reusing your code in an application that I work on.

Frank
Probably left over from the swithc from direct database manipulation to the rtcom C library.

As for code reuse...that's what open source is about :-)
__________________
aspidites | blog | aspidites@inbox.com
 
ossipena's Avatar
Posts: 3,159 | Thanked: 2,023 times | Joined on Feb 2008 @ Finland
#240
don't touch the sqlite! it fetches the unique id needed for adding a message. it seems to be easier than api way apparently and since it only reads one column through it shouldn't mess the db up.

phew just got new version of sms.py working. now with 100% compatibility to etsi standard except curly brackets and couple other special chars. so едц shouldn't be a problem anymore (and any char that isn't at exactly same place ascii vs etsi)

will push it to git as soon as I get it cleaned up.

e: and someone copying code from me is a honor for me

ee: damn it isn't working, something messes the codes up between creating array and sending... will be investigating it.
__________________
Want to know something?
K.I.S.S. approach:
wiki category:beginners. Browse it through and you'll be much wiser!
If the link doesn't help, just use
Google Custom Search

Last edited by ossipena; 2010-05-30 at 19:16.
 
Reply

Tags
portrait sms, python


 
Forum Jump


All times are GMT. The time now is 08:39.