Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1140 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

[PATCH] cherrypy module in qstemplates is needed when quickstarting projects with identity

Reported by: roger.demetrescu Owned by: anonymous
Priority: normal Milestone:
Component: tg-admin (non-toolbox) Version: 1.0b1
Severity: normal Keywords:
Cc:

Description

This one is related to changes made in [1924] / [1926].

When I quickstart a project with identity and try to access  http://localhost:8080/login/ I get this error:

Page handler: <bound method Root.login of <teste.controllers.Root object at 0x014BC170>>
Traceback (most recent call last):
  File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py", line 105, in _run
    self.main()
  File "c:\python24\lib\site-packages\CherryPy-2.2.1-py2.4.egg\cherrypy\_cphttptools.py", line 254, in main
    body = page_handler(*virtual_path, **self.params)
  File "<string>", line 3, in login
  File "c:\turbogears1.0\turbogears\controllers.py", line 326, in expose
    output = database.run_with_transaction(
  File "<string>", line 5, in run_with_transaction
  File "c:\turbogears1.0\turbogears\database.py", line 247, in so_rwt
    retval = func(*args, **kw)
  File "<string>", line 5, in _expose
  File "c:\turbogears1.0\turbogears\controllers.py", line 343, in <lambda>
    mapping, fragment, args, kw)))
  File "c:\turbogears1.0\turbogears\controllers.py", line 367, in _execute_func
    output = errorhandling.try_call(func, *args, **kw)
  File "C:\Turbogears1.0\turbogears\errorhandling.py", line 71, in try_call
    return func(self, *args, **kw)
  File "C:\tmp\teste\teste\controllers.py", line 26, in login
    previous_url= cherrypy.request.path
NameError: global name 'cherrypy' is not defined

Attachments

1140.patch Download (1.5 KB) - added by roger.demetrescu 13 years ago.

Change History

comment:1 Changed 13 years ago by roger.demetrescu

  • Summary changed from cherrypy module in qstemplates is needed when quickstarting projects with identity to [PATCH] cherrypy module in qstemplates is needed when quickstarting projects with identity

The following patch also synchronizes the controller template between normal project and big project templates

Changed 13 years ago by roger.demetrescu

comment:2 Changed 13 years ago by max

  • Status changed from new to closed
  • Resolution set to fixed

Works for me in 1.0b1. I have sync'ed the templates using snippets from the patch though, see r1962.

Note: See TracTickets for help on using tickets.