Reply
Thread Tools
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#171
Originally Posted by aspidites View Post
@gri: If I understand you correctly, you are suggesting that we create an abstraction of rtcom in c and wrap that instead of raw rtcom?

Let me know when you're done :-)

[rant]This is why I'm looking forward to the Qt Mobility API [/rant]
Yes, QtMobility would be great but is currently not available. Also VertSMS uses gtk Otherwise (if it was c++), I'd be interested in merging the vertical code into my Web2SMS project to make one big flexible sms application for maemo.

The problem is, even if I create python bindings for rtcom-eventlogger, these would not work with PR 1.1 Currently the autobuilder links librtcom-eventlogger.so.1, which is PR 1.2.

PS: vertsms currently opens "/home/user/.rtcom-eventlogger/el.db". In PR 1.2 the file is "el-v1.db"!
 

The Following User Says Thank You to gri For This Useful Post:
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#172
[face palm] I know vertsms uses gtk [/face palm]
__________________
aspidites | blog | aspidites@inbox.com
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#173
Originally Posted by aspidites View Post
[face palm] I know vertsms uses gtk [/face palm]
I never had any doubt you don't know that. I just wanted to help but it seems you're not interested.
 
Posts: 402 | Thanked: 229 times | Joined on Nov 2009 @ Missouri, USA
#174
[rant]
@gri: You'll excuse me if I'm a bit agitated but your "help" seems to be suggesting things to be done that have either a) already been tried (ctypes) or b) aren't possible by your own admission or c) without any proof of how trivial it would be imply that it would be trivial when it isn't. If it were trivial it would have already been done. In the case that it is trivial and something obvious is being missing, patches are welcome.

This seems to have worked for me, qwerty12, and a few others. You have offered...what exactly?

Anyways, I'm sure I'm out of line, particularly because it's not my project, but I grow tired of some people suggesting implementations or features when they themselves haven't even offered any code. Hell, I even submitted a patch to a project I wasn't particularly interested in but seemed to be non-functional the other night (easyplayer).
[/rant]

Perhaps I'll say nothing more in these threads and continue to just submit patches....
__________________
aspidites | blog | aspidites@inbox.com
 
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#175
Originally Posted by aspidites View Post
[rant]
@gri: You'll excuse me if I'm a bit agitated but your "help" seems to be suggesting things to be done that have either a) already been tried (ctypes) or b) aren't possible by your own admission or c) without any proof of how trivial it would be imply that it would be trivial when it isn't. If it were trivial it would have already been done. In the case that it is trivial and something obvious is being missing, patches are welcome.

This seems to have worked for me, qwerty12, and a few others. You have offered...what exactly?

Anyways, I'm sure I'm out of line, particularly because it's not my project, but I grow tired of some people suggesting implementations or features when they themselves haven't even offered any code. Hell, I even submitted a patch to a project I wasn't particularly interested in but seemed to be non-functional the other night (easyplayer).
[/rant]

Perhaps I'll say nothing more in these threads and continue to just submit patches....
I didn't say it is trivial. I just wanted to point out that if it can't be done with pure python, an additional c-written library could be written. (which is not a great solution)
I've also already looked over the PyMaemo sources today to check how much work it would be to write rtcom-eventlogger bindings and submit them to PyMaemo.
But if I understand you right, you suggest me to just write the code without asking anyone here if it is needed/wanted???

PS: Before you're going to palm-face again: I know it currently does it's work with sqlite.

Last edited by gri; 2010-05-15 at 23:57.
 

The Following User Says Thank You to gri For This Useful Post:
Posts: 190 | Thanked: 129 times | Joined on Mar 2010 @ Bavaria, Germany
#176
So here's my first python code I've ever written (and hopefully the last).

It currently hangs up in the line where the event is added to rtcom-eventlogger but I think this is because I don't understand ctypes. But maybe it helps someone.

The whole code in c is easy, but Python is horrible to me ...
 

The Following 4 Users Say Thank You to gri For This Useful Post:
Posts: 547 | Thanked: 1,383 times | Joined on Sep 2009 @ Stockholm, Sweden
#177
Originally Posted by gri View Post
So here's my first python code I've ever written (and hopefully the last).

It currently hangs up in the line where the event is added to rtcom-eventlogger but I think this is because I don't understand ctypes. But maybe it helps someone.

The whole code in c is easy, but Python is horrible to me ...
nice work, ive fixed the missing bits so its inserted in to the db now, enjoy

http://www.frals.se/maemo/rtcom.py
__________________

Problem with fMMS? Run in x-terminal: cp /tmp/fmms.log /home/user/MyDocs/
After that you'll see fmms.log in filemanager or when you connect the device to your desktop as a mass storage device.
E-mail the log to me, if you don't have the email address, drop me a PM. Thanks!

fMMS - MMS for your N900
fAPN - GUI for adding a new GPRS APN
If you like this post, don't be shy to thank me -->
 

The Following 9 Users Say Thank You to frals For This Useful Post:
Posts: 15 | Thanked: 0 times | Joined on May 2010
#178
YOU NEED T9 typing 1 letter at a time is useless for the portrait mode!!!!!!!!!
 
Posts: 478 | Thanked: 165 times | Joined on Apr 2010 @ Manchester
#179
Originally Posted by robertran88 View Post
YOU NEED T9 typing 1 letter at a time is useless for the portrait mode!!!!!!!!!
I'd hardly say it is useless as you clearly can still type. Useless would be not being able to type anything! Maybe you cannot type as fast as you would like, but you can still send SMS in portrait mode which is a great start and much more than you appear to have done! If you READ the announce thread (which is where things like this should go) you will see that this has been suggested and is being worked on.

E: typo
 
blubbi's Avatar
Posts: 288 | Thanked: 113 times | Joined on Dec 2009 @ Germany
#180
Originally Posted by frals View Post
nice work, ive fixed the missing bits so its inserted in to the db now, enjoy

http://www.frals.se/maemo/rtcom.py
"gri" pointed me to this post and I just assimilated that code to use it with my tool www2sms

What shall I say the rtcom code works, but if the SMS is inserted into conversation, you can read the SMS but you cant open it. When you click on the inserted SMS nothing happens. So no way to delete it.

And in the Contact View of "Conversation" the letter symbol in front of the contacts name shows an exclamation mark in the top right corner.

Is this known? Any suggestions?

[EDIT]
gri just told me to remove the comment from the following line:

Code:
#rtcom.rtcom_el_add_header(el, eventId, 'message-token', str(uuid.uuid4()), None)
this did the trick. Thanks gri!
[/EDIT]


Cheers
Bjoern

Last edited by blubbi; 2010-05-18 at 17:55.
 
Reply

Tags
portrait sms, python


 
Forum Jump


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