PalmDB requests and bug report

"Jeff Mikels" <[email protected]> Tue, 26 Sep 2006 13:14:19 -0400
Newsgroups gmane.comp.handhelds.palm.progect
Message-ID <[email protected]>
I'm having a problem with the crackPalmDate function

(I'm using svn code)

PILOT_TIME_DELTA = 2082844800L
def crackPalmDate(variable):
        if variable == 0:
            return None
        else:
            return datetime.datetime.fromtimestamp(variable-PILOT_TIME_DELTA)

I often get a ValueError because variable-PILOT_TIME_DELTA is sometimes a
negative number. I've changed the code to be...

PILOT_TIME_DELTA = 2082844800L
def crackPalmDate(variable):
        if variable == 0 or variable < PILOT_TIME_DELTA:
            return None
        else:
            return datetime.datetime.fromtimestamp
(variable-PILOT_TIME_DELTA)

Is this a problem?


Additionally, I'd like to create a "plugin" for the todo database, but I'm
not sure how to go about doing it. The Base Plugin class is working
perfectly but the payload needs to be decrypted properly. How can I create a
plugin that only overloads the payload functions and have it loaded when
necessary?




On 9/7/06, Rick Price <[email protected]> wrote:
>
> Okay, I just managed to get the Python PalmDB library to go from a Progect
> file to XML and back again without dropping anything really obvious.
>
> Anyone who wants to check out the Subversion code is welcome to do so.
>
> I think I need to do a major rewrite at some point in the next little bit,
> but first I will setup some conversions to popular programs that
> read/write XML.
>
> First on the list is going to be treeline since I use it right now and the
>
> format seems to be basically sane.
>
> I will then probably try to do something with Omni Outliner for the Mac.
>
> That will probably require fixing a bug in the library that seems to show
> up on the Mac.
>
> After that, I will see what I can do based on popularity.
>
>
> Once I have treeline support working, and it's not too ugly to run, I will
> make a release of Python PalmDB so people can start to use it.
>
> I will release again I would guess after I get Omni Outliner support
> working.
>
> Any questions, just email me.
>
> Rick
>
>
>
>
> Remember to visit Polls, Files and Bookmarks sections at
> http://groups.yahoo.com/group/progect. You are welcome to vote, upload
> your files and submit bookmarks.
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>


-- 
Jeff Mikels
leading people one step closer to Jesus
http://jeff.mikels.cc
http://thesouthsidechurch.org


-- 
Jeff Mikels
leading people one step closer to Jesus
http://jeff.mikels.cc
http://thesouthsidechurch.org


[Non-text portions of this message have been removed]




Remember to visit Polls, Files and Bookmarks sections at http://groups.yahoo.com/group/progect. You are welcome to vote, upload your files and submit bookmarks. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/progect/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/progect/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/