• Login
  • Help/Guide
  • About Trac
  • Preferences
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Context Navigation

  • ← Previous Change
  • Next Change →

Changeset 151 for Xml/xsd-fu/trunk/fu.py

Show
Ignore:
Timestamp:
02/14/08 16:28:25 (9 months ago)
Author:
callan
Message:

Additions for Curtis that allow access to the actual node elements that reference nodes "reference".

Files:
1 modified

  • Xml/xsd-fu/trunk/fu.py (modified) (1 diff)

Legend:

Unmodified
Added
Removed
  • Xml/xsd-fu/trunk/fu.py

    r126 r151  
    277277        javaBase = property(_get_javaBase,  
    278278                doc="""The model object's Java base class.""") 
     279                 
     280        def _get_refNodeName(self): 
     281                if self.base == "Reference": 
     282                        return self.properties["ID"].javaType 
     283                return None 
     284                 
     285        refNodeName = property(_get_refNodeName, 
     286                doc="""The name of this node's reference node; None otherwise.""") 
    279287         
    280288        def __str__(self): 

Download in other formats:

  • Unified Diff
  • Zip Archive

Trac Powered

Powered by Trac 0.11
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/