Closed epifanio closed 11 years ago
There seems to be something wrong with your generated .cl files. Does WApplication.cl contain the following lines:
c.addMethod("setTitle", "void", [("const class Wt::WString &", "title")], "")
c["setTitle"].setDocumentation("""
<p class="para-brief"> Sets the window title.</p><p> ....
""")
I'm confused why you guys see this. Does any of the methods/classes/... contain any documentation in the .cl files? i.e. is there any setDocumentation() call that does not pass the empty string?
a gist with my generated WApplication.cl :
https://gist.github.com/epifanio/5024717
I tryied on a fresh ubuntu 12.10
succesful built on ubuntu 13.04 - 64bit trying to run hello.py :
epi@ubuntu:~/dev/src/pywt/examples/hello$ python hello.py --docroot . --http-address 0.0.0.0 --http-port 8080 [2013-Feb-24 02:08:15.956822] 3735 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'hello.py')" [2013-Feb-24 02:08:15.957361] 3735 - [info] "WServer/wthttp: initializing built-in wthttpd" [2013-Feb-24 02:08:15.957701] 3735 - [info] "wthttp: started server: http://0.0.0.0:8080"
i got the following error in the browser (firefox) :
Python Error
Traceback (most recent call last): File "hello.py", line 40, in createApplication return MyApplication(env) File "hello.py", line 14, in init self.setTitle("Hello") AttributeError: 'MyApplication' object has no attribute 'setTitle'