![]() |
2010-05-06
, 19:52
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#132
|
The Following User Says Thank You to aspidites For This Useful Post: | ||
![]() |
2010-05-07
, 08:08
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#133
|
The Following User Says Thank You to aspidites For This Useful Post: | ||
![]() |
2010-05-07
, 08:31
|
|
Posts: 311 |
Thanked: 180 times |
Joined on Dec 2009
@ London
|
#134
|
![]() |
2010-05-07
, 10:16
|
Posts: 82 |
Thanked: 214 times |
Joined on Jan 2010
@ Cape town
|
#135
|
So I finally refactored everyting into multiple classes in my branch. It's either a drastic improvement or a drastic disaster.
![]() |
2010-05-07
, 10:35
|
Posts: 508 |
Thanked: 130 times |
Joined on Sep 2009
|
#136
|
![]() |
2010-05-07
, 10:44
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#137
|
static RTComElEvent * event_new_full (time_t t) { RTComElEvent *ev; ev = rtcom_el_event_new(); g_return_val_if_fail (ev != NULL, NULL); /* Setting everything here for testing purposes, but usually * you wouldn't need to. */ /* FIXME: RTComElEvent structure: * 1) OMG, it's full of string IDs that want to be quarks or enums; * 2) it's painful to care about string member ownership. */ RTCOM_EL_EVENT_SET_FIELD(ev, service, g_strdup (SERVICE)); RTCOM_EL_EVENT_SET_FIELD(ev, event_type, g_strdup (EVENT_TYPE)); RTCOM_EL_EVENT_SET_FIELD(ev, start_time, t); RTCOM_EL_EVENT_SET_FIELD(ev, end_time, t); RTCOM_EL_EVENT_SET_FIELD(ev, flags, FLAGS); RTCOM_EL_EVENT_SET_FIELD(ev, bytes_sent, BYTES_SENT); RTCOM_EL_EVENT_SET_FIELD(ev, bytes_received, BYTES_RECEIVED); RTCOM_EL_EVENT_SET_FIELD(ev, local_uid, g_strdup (LOCAL_UID)); RTCOM_EL_EVENT_SET_FIELD(ev, local_name, g_strdup (LOCAL_NAME)); RTCOM_EL_EVENT_SET_FIELD(ev, remote_uid, g_strdup (REMOTE_UID)); RTCOM_EL_EVENT_SET_FIELD(ev, remote_name, g_strdup (REMOTE_NAME)); RTCOM_EL_EVENT_SET_FIELD(ev, channel, g_strdup (CHANNEL)); RTCOM_EL_EVENT_SET_FIELD(ev, free_text, g_strdup (FREE_TEXT)); return ev; }
![]() |
2010-05-07
, 13:44
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#138
|
![]() |
2010-05-07
, 17:53
|
|
Posts: 3,159 |
Thanked: 2,023 times |
Joined on Feb 2008
@ Finland
|
#139
|
![]() |
2010-05-07
, 18:13
|
Posts: 402 |
Thanked: 229 times |
Joined on Nov 2009
@ Missouri, USA
|
#140
|
![]() |
Tags |
portrait sms, python |
Thread Tools | |
|
how can I write None (not a string) to a table?!?
when I read the os created table, there is such value and I am unable to write such to the table.
and I am a bit unsure if outside writes are possible: at least my otherwise except the None similar string write to db gets erased
e: damn it appears you should not touch the db manually. found an api for it though but it seems pretty complicated.
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-06 at 19:06.