[ 1 post ]

cappellin

  • Joined: Fri Dec 03, 2010 8:19 am
  • Posts: 1
  • Offline
  • Profile

Installing on Mac. Help needed.

Post Posted: Fri Dec 03, 2010 8:23 am
+0-
I followed instruction in INSTALL file, but trying to compile a js I've got this error:
Code:
Traceback (most recent call last):
  File "/Users/denis/Downloads/Applications/yuidoc//bin/yuidoc.py", line 104, in <module>
    main()
  File "/Users/denis/Downloads/Applications/yuidoc//bin/yuidoc.py", line 99, in main
    gen.process()
  File "/Users/denis/Downloads/Applications/yuidoc/bin/yuidoc_generate.py", line 631, in process
    self.write("index.html", t)
  File "/Users/denis/Downloads/Applications/yuidoc/bin/yuidoc_generate.py", line 104, in write
    out.writelines(str(data))
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Cheetah-2.4.3-py2.7-macosx-10.3-fat.egg/Cheetah/Template.py", line 1005, in __str__
    rc = getattr(self, mainMethName)()
TypeError: unbound method respond() must be called with Users_denis_Downloads_Applications_yuidoc_template_main_tmpl instance as first argument (got nothing instead)


The file it tries to compile is

Code:
/**
     * This is the class description.
     * This is also part of the class description
     * @class YourClass
     * @constructor
     * @param foo {string} param description
     * This is part of the foo parameter description, not the class description
     */
function ActionLoadPage() {

}
ActionLoadPage.prototype.execute = function(wgtId, params) {
   var theUrl = null;
   if (params.length>0) {
      // param0 is the url
      theUrl = params[0];
   }
   if (theUrl != null) {
      location.href = theUrl;
   }
}
$wgtActions['LoadPage']= new ActionLoadPage();


Anyone can help me?
Thanks
  [ 1 post ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum