Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Professional Python Frameworks: Programming with Django and Turbogears ISBN: 978-0-470-13809-0
This is the forum to discuss the Wrox book Professional Python Frameworks: Web 2.0 Programming with Django and Turbogears by Dana Moore, Raymond Budd, William Wright; ISBN: 9780470138090
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Python Frameworks: Programming with Django and Turbogears ISBN: 978-0-470-13809-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2008, 11:53 PM
Registered User
 
Join Date: Mar 2008
Location: Oakland, CA, USA.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Turbogears Example

I encounter the following error when I try to implement the search view of the PetInfoStore

500 Internal error
The server encountered an unexpected condition which prevented it from fulfilling the request.

Page handler: <bound method Root.search of <petinfostore.controllers.Root object at 0x0155CB30>>
Traceback (most recent call last):
  File "C:\Python25\lib\site-packages\cherrypy-2.3.0-py2.5.egg\cherrypy\_cphttptools.py", line 121, in _run
    self.main()
  File "C:\Python25\lib\site-packages\cherrypy-2.3.0-py2.5.egg\cherrypy\_cphttptools.py", line 264, in main
    body = page_handler(*virtual_path, **self.params)
TypeError: search() takes at least 2 arguments (1 given)

I have used the examples directly, and everything worked prior to this point.

Mike M Adams
 
Old February 28th, 2009, 10:15 AM
Registered User
 
Join Date: Feb 2009
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

check error_log you will see reason there








Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.