Re: #def woes

[email protected]
Newsgroups gmane.comp.python.cheetah
Message-ID <[email protected]>
Compiling /home/mark/work/common/widgets.tmpl ->
/home/mark/work/common/widgets.py (backup
/home/mark/work/common/widgets.py.bak)
Traceback (most recent call last):
  File "/home/mark/work/common/widgets.py", line 3139, in <module>
    CmdLineIface(templateObj=widgets()).run()
  File "/usr/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-i686.egg/Cheetah/TemplateCmdLineIface.py",
line 45, in run
    print self._template
  File "/usr/lib/python2.5/site-packages/Cheetah-2.0.1-py2.5-linux-i686.egg/Cheetah/Template.py",
line 982, in __str__
    def __str__(self): return getattr(self, mainMethName)()
  File "/home/mark/work/common/widgets.py", line 3097, in respond
    showfloat = VFFSL(SL,"displayfloat",True)
TypeError: displayfloat() takes exactly 2 arguments (1 given)


On 5/20/09, [email protected] <[email protected]> wrote:
> #def foo($a)
> <b>$a</b>
> #end def
>
> #set faa = $foo
>
> $faa()
>
> this doesnt work?
> why not
> --
> Bidegg worlds best auction site
>  http://bidegg.com
>


-- 
Bidegg worlds best auction site
http://bidegg.com

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.