emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miguel Ruiz <rbenit68@yahoo.es>
To: emacs-orgmode@gnu.org
Subject: PyOrgMode: Any idea how to get the properties of a node?
Date: Thu, 5 May 2011 11:22:33 +0100 (BST)	[thread overview]
Message-ID: <914097.61676.qm@web29003.mail.ird.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 643 bytes --]

I am using PyOrgMode to process the nodes of an orgmode file.

I have had no problem with the OrgDataStructure class, but, as you can see

https://github.com/bjonnh/PyOrgMode/blob/master/PyOrgMode.py

the drawer and properties are parsed by another class, OrgDrawer, and I cannot, i.e., I am not so fluent in python to view the link between OrgDataStructure and OrgDrawer.

Can anyone help me?


My minimal code:

import PyOrgMode
tree = PyOrgMode.OrgDataStructure()
tree.load_from_file('test.org')


for i in tree.root.content:
   print i


And what else to get the properties of, let's say, tree.root.content[0]?

TIA

[-- Attachment #2: Type: text/html, Size: 889 bytes --]

                 reply	other threads:[~2011-05-05 10:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=914097.61676.qm@web29003.mail.ird.yahoo.com \
    --to=rbenit68@yahoo.es \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).