From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: PyOrgMode: Any idea how to get the properties of a node? Date: Thu, 5 May 2011 11:22:33 +0100 (BST) Message-ID: <914097.61676.qm@web29003.mail.ird.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1516624841-1304590953=:61676" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:54285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHvhj-0002pv-0I for emacs-orgmode@gnu.org; Thu, 05 May 2011 06:22:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHvhc-00064e-BQ for emacs-orgmode@gnu.org; Thu, 05 May 2011 06:22:42 -0400 Received: from nm11.bullet.mail.ird.yahoo.com ([77.238.189.64]:35058) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1QHvhb-00064Y-SY for emacs-orgmode@gnu.org; Thu, 05 May 2011 06:22:36 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --0-1516624841-1304590953=:61676 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 can= not, i.e., I am not so fluent in python to view the link between OrgDataStr= ucture and OrgDrawer. Can anyone help me? My minimal code: import PyOrgMode tree =3D PyOrgMode.OrgDataStructure() tree.load_from_file('test.org') for i in tree.root.content: =A0=A0 print i And what else to get the properties of, let's say, tree.root.content[0]? TIA --0-1516624841-1304590953=:61676 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable --0-1516624841-1304590953=:61676--
I am using PyOrgMode to process the nodes of = an orgmode file.

I have had no problem with the OrgDataStructure cla= ss, but, as you can see

https://github.com/bjonnh/PyOrgMode/blob/maste= r/PyOrgMode.py

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

Can anyone help me?<= br>

My minimal code:

import PyOrgMode
tree =3D PyOrgMode.O= rgDataStructure()
tree.load_from_file('test.org')


for i in tr= ee.root.content:
   print i


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

TIA