Re: [Orgmode] Announcing my Python module to read org-mode files

2009-03-16 Thread Mark Elston

Charles,

* Charles Cave wrote (on 3/14/2009 8:37 PM):

Over the last couple of months I have developed a Python module
to read an org-mode file and return the nodes as a list
of objects.  The module is the basis of a Python/TK GUI
program to display a Word of the Day (another article
will be published about this program soon).



This looks interesting.  I had started a thread about a month
ago dealing with reading and writing org files from an external
process.  I already was extracting data from external sources
and writing these files but I didn't have a way of effectively
*updating* these files, only overwriting them.  This looks like
what I was looking for to allow me to accomplish this.

The only thing better would be a way to use this package to
update the nodes and then write them back out.  Hm..

Mark


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Announcing my Python module to read org-mode files

2009-03-15 Thread Ian Barton

Over the last couple of months I have developed a Python module
to read an org-mode file and return the nodes as a list
of objects.  The module is the basis of a Python/TK GUI
program to display a Word of the Day (another article
will be published about this program soon).

I hope the module is of interest to Python programmers!


Charles,

That looks very interesting. Amongst other uses it opens the way to 
produce customized Web pages via mod_python, which in some circumstances 
would be easier than tweaking the current org export function.


I have been experimenting with producing html exported pages optimized 
for my Nokia N95. At the moment I detect the browser string and then 
apply a different style sheet for the mobile version. However, this does 
have limitations, apart from those arising from my lack of css skills.


Using mod_python I can produce completely different output depending on 
the detected browser.


Ian.


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Announcing my Python module to read org-mode files

2009-03-14 Thread Charles Cave

Over the last couple of months I have developed a Python module
to read an org-mode file and return the nodes as a list
of objects.  The module is the basis of a Python/TK GUI
program to display a Word of the Day (another article
will be published about this program soon).

Here is the article (and source code)
http://members.optusnet.com.au/~charles57/GTD/orgnode.html

This is an example of what the module can do:

import Orgnode
nodelist = Orgnode.makelist(newgtd.org)

print \n- PROJECT LIST 
for node in nodelist:
  if node.Tag() == PROJECT:
  print [ ], node.Heading()


I hope the module is of interest to Python programmers!

Charles






___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode