← Back to team overview

sikuli-driver team mailing list archive

[Bug 1210472] [NEW] [1.0] IDE: HTML code not printed or not printed correctly in message area

 

Public bug reported:

--- fixed with version 1.0.1
---------------------------------------------------------

I'm trying to start file i/o in my program & wanted to get a simple file
read and print working. But sikuli isn't reading or printing the entire
file.

The file is a short xml file:

<?xml version="1.0" encoding="UTF-8"?>
<flex>
 <loginFlex flexClient="https:///vsphere-client/#"; username="r" pwd="v"/>
</flex>

>>>>>>>>>>I've tried two ways of coding:

from xml.dom import minidom

xmldoc = minidom.parse("/Users/colej/Documents/loginFlex2.xml")

print xmldoc.toxml()

RESULT:  ?xml version="1.0" ?>

>>>>>>>>>>>>second way
import os
myfile = open("/Users/colej/Documents/loginFlex2.xml")

text = myfile.read()
print(text)

RESULT:
?xml version="1.0" encoding="UTF-8"?>

[info] Exit code: 0

And ideas on why the ENTIRE file is not being read and printed???

Thank You!

** Affects: sikuli
     Importance: Critical
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => Critical

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

** Description changed:

+ --- fixed with version 1.0.1
+ ---------------------------------------------------------
+ 
  I'm trying to start file i/o in my program & wanted to get a simple file
  read and print working. But sikuli isn't reading or printing the entire
  file.
  
  The file is a short xml file:
  
  <?xml version="1.0" encoding="UTF-8"?>
  <flex>
- 	<loginFlex flexClient="https:///vsphere-client/#"; username="r" pwd="v"/>
+  <loginFlex flexClient="https:///vsphere-client/#"; username="r" pwd="v"/>
  </flex>
  
  >>>>>>>>>>I've tried two ways of coding:
  
  from xml.dom import minidom
  
  xmldoc = minidom.parse("/Users/colej/Documents/loginFlex2.xml")
  
  print xmldoc.toxml()
  
  RESULT:  ?xml version="1.0" ?>
  
  >>>>>>>>>>>>second way
  import os
  myfile = open("/Users/colej/Documents/loginFlex2.xml")
  
  text = myfile.read()
  print(text)
  
- RESULT: 
+ RESULT:
  ?xml version="1.0" encoding="UTF-8"?>
  
  [info] Exit code: 0
  
- 
  And ideas on why the ENTIRE file is not being read and printed???
  
  Thank You!

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1210472

Title:
  [1.0] IDE: HTML code not printed or not printed correctly in message
  area

Status in Sikuli:
  Fix Committed

Bug description:
  --- fixed with version 1.0.1
  ---------------------------------------------------------

  I'm trying to start file i/o in my program & wanted to get a simple
  file read and print working. But sikuli isn't reading or printing the
  entire file.

  The file is a short xml file:

  <?xml version="1.0" encoding="UTF-8"?>
  <flex>
   <loginFlex flexClient="https:///vsphere-client/#"; username="r" pwd="v"/>
  </flex>

  >>>>>>>>>>I've tried two ways of coding:

  from xml.dom import minidom

  xmldoc = minidom.parse("/Users/colej/Documents/loginFlex2.xml")

  print xmldoc.toxml()

  RESULT:  ?xml version="1.0" ?>

  >>>>>>>>>>>>second way
  import os
  myfile = open("/Users/colej/Documents/loginFlex2.xml")

  text = myfile.read()
  print(text)

  RESULT:
  ?xml version="1.0" encoding="UTF-8"?>

  [info] Exit code: 0

  And ideas on why the ENTIRE file is not being read and printed???

  Thank You!

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1210472/+subscriptions


Follow ups

References