Changeset 19900 in vbox for trunk/src/VBox/Main
- Timestamp:
- May 22, 2009 7:45:29 AM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/Makefile.kmk
r19883 r19900 726 726 $(VBOX_PYTHON_CONSTANTS): $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@) 727 727 $(call MSG_TOOL,xsltproc,Python constants,$<,$@) 728 $( VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)728 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE) 729 729 730 730 # Aliases for testing purposes. -
trunk/src/VBox/Main/glue/constants-python.xsl
r19885 r19900 57 57 </xsl:for-each>}<xsl:if test="not(position()=last())">,</xsl:if> 58 58 59 </xsl:for-each> 59 </xsl:for-each>} 60 60 61 61 _ValuesFlat = {<xsl:for-each select="//enum"> … … 66 66 '<xsl:value-of select="$ename"/>_<xsl:value-of select="@name"/>':<xsl:value-of select="@value"/><xsl:if test="not(position()=last())">,</xsl:if> 67 67 </xsl:for-each> 68 <xsl:if test="not(position()=last())">,</xsl:if> 68 69 </xsl:for-each>} 69 70 70 71 def __getattr__(self,attr): 71 72 v = self._ValuesFlat.get(attr) 72 if v ==None:73 return self.__dict__[name]74 return v75 73 if v is not None: 74 return v 75 else: 76 raise AttributeError 76 77 77 78 </xsl:template> -
trunk/src/VBox/Main/glue/vboxapi.py
r19883 r19900 31 31 sys.path.append(VboxBinDir) 32 32 sys.path.append(VboxSdkDir+"/bindings/glue/python") 33 34 from VirtualBox_constants import VirtualBoxReflectionInfo 33 35 34 36 class PlatformMSCOM: … … 207 209 self.vbox = self.platform.getVirtualBox() 208 210 self.mgr = SessionManager(self) 209 self.constants = self.platform.getConstants()211 self.constants = VirtualBoxReflectionInfo() 210 212 self.type = self.platform.getType() 211 213 self.remote = self.platform.getRemote()
Note:
See TracChangeset
for help on using the changeset viewer.