esolliday / libkml

Automatically exported from code.google.com/p/libkml
Other
0 stars 0 forks source link

has_open() and get_open() return incorrect results for folders #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. open a python shell
2. run the following commands...
$ python
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) 
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import kmldom
>>> factory = kmldom.KmlFactory_GetFactory()
>>> folder = factory.CreateFolder()
>>> folder.set_open = True
>>> folder.has_open()
False
>>> folder.get_open()
False

What is the expected output? What do you see instead?

folder.has_open() returns False instead of True
folder.get_open() returns False instead of True

What version of the product are you using? On what operating system?

libkml-0.4.0
Ubuntu 8.04

Did you run the unit test suite that comes with the project? Did all tests
pass?

I am not aware of a test sweet for the python API.  However, I ran all the
examples in the examples/python folder, and they run without errors.

Please provide any additional information below.

Similar problems occur for the folder.get_visibility() call.

Original issue reported on code.google.com by tylerick...@gmail.com on 4 Jan 2009 at 2:32

GoogleCodeExporter commented 8 years ago
Cancel this issue... it was a syntax issue.
folder.set_open = True
should be
folder.set_open(True)

Original comment by tylerick...@gmail.com on 4 Jan 2009 at 7:55

GoogleCodeExporter commented 8 years ago

Original comment by kml.mash...@gmail.com on 8 Jan 2009 at 7:41