Weird in the sense that it makes no sense. Here's the actual error:
Page handler: <bound method Root.save_pymark of
<pymark.controllers.Root object at 0x014A4130>>
Traceback (most recent call last):
File "C:\devpy\py25\lib\site-packages\cherrypy-2.2.1-py2.5.egg
\cherrypy\_cphttptools.py", line 105, in _run
self.main()
File "C:\devpy\py25\lib\site-packages\cherrypy-2.2.1-py2.5.egg
\cherrypy\_cphttptools.py", line 254, in main
body = page_handler(*virtual_path, **self.params)
TypeError: save_pymark() takes at least 4 non-keyword arguments (2
given)
The method the error is talking about is defined as such:
@expose template(pymark.templates.add)
def save_pymark(self, name, link, description):
pymark=Pymark(name = name, link = link, description = description)
raise redirect("/list")
and its called in a form as so:
<form name="Add Pymark" method="post" action="/save_pymark">
<p>Name: <input name="name"></input></p>
<p>Link: <input link="link"></input></p>
<p>Description: <textarea name="description" rows="4" cols="30"></
textarea></p>
<p><input type="submit" value="submit"></input></p>
</form>
and yes, the indentation lines up with the rest of the methods in the
Root class. What am i missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---