Package: python-turbogears
Version: 1.0-1
Severity: normal
After creating a project with identity support...
$tg-admin quickstart --identity first
The quickstarted project immediately fails it's tests.
$cd first
$nosetests
No handlers could be found for logger "nose.plugins"
EEE
...
======================================================================
ERROR: first.tests.test_controllers.test_logintitle
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/nose/case.py", line 52, in
runTest
self.testFunc()
File "/home/alex/temp/first/first/tests/test_controllers.py", line 31,
in test_logintitle
testutil.createRequest("/login")
File "/var/lib/python-support/python2.4/turbogears/testutil.py", line
80, in create_request
attach_identity(req)
File "/var/lib/python-support/python2.4/turbogears/testutil.py", line
61, in attach_identity
id = current_provider.anonymous_identity()
File
"/var/lib/python-support/python2.4/turbogears/identity/__init__.py",
line 82, in __getattr__
raise IdentityManagementNotEnabledException()
IdentityManagementNotEnabledException: An attempt was made to use a
facility of the TurboGears Identity Management framework but identity
management hasn't been enabled in the config file [via identity.on].
----------------------------------------------------------------------
Ran 3 tests in 1.425s
FAILED (errors=3)
If the project is started with ./start-first.py and then browsed to at
http://localhost:8080/, a traceback is also produced with the
IdentityManagementNotEnabledException.
Note during the quickstart I go the following warning, which may or may
not be relavant:
/var/lib/python-support/python2.4/Cheetah/Compiler.py:1556: UserWarning:
You supplied an empty string for the source!
Since the helpful traceback mentioned identity.on, I checked for it and
found identity.on=True in app.cfg.
I've done a bit of searching to find out how to get this working, but
haven't been able to find out what is wrong yet.
The following bug looked hopeful, but the fix for this does not fix the
project:
http://trac.turbogears.org/ticket/1255
I also tried installing version 1.0.1-1 from sid but that has the exact
same problem. I didn't update other dependencies though, just
python-turbogears.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-xen-686
Locale: LANG=en_NZ, LC_CTYPE=en_NZ (charmap=ISO-8859-1)
Versions of packages python-turbogears depends on:
ii python 2.4.4-2 An interactive high-level object-o
ii python-celementtree 1.0.5-8 Light-weight toolkit for XML proce
ii python-cheetah 2.0~rc7-1 text-based template engine and Pyt
ii python-cherrypy 2.2.1-3 Python web development framework
ii python-configobj 4.3.2-2 a simple but powerful config file
ii python-dispatch 0.5adev-5 Rule-based Dispatching and Generic
ii python-elementtree 1.2.6-10 Light-weight toolkit for XML proce
ii python-formencode 0.6-1 validation and form generation pyt
ii python-kid 0.9.3-1 simple Pythonic template language
ii python-nose 0.9.0-2 test discovery and running for Pyt
ii python-paste 1.0.1-1 Tools for using a Web Server Gatew
ii python-pastedeploy 1.0-1 Load, configure, and compose WSGI
ii python-pastescript 1.0-1 serving web applications, creating
ii python-setuptools 0.6c3-3 Python Distutils Enhancements
ii python-simplejson 1.3-0.1 Simple, fast, extensible JSON enco
ii python-sqlalchemy 0.3.1-2 SQL toolkit and Object Relational
ii python-sqlobject 0.7.1-1 python module for SQLObject
ii python-support 0.5.6 automated rebuilding support for p
ii python-turbojson 0.9.5-1 TurboGears template plugin that su
ii python-turbokid 0.9.9-1 TurboGears template plugin that su
Versions of packages python-turbogears recommends:
ii python-pysqlite2 2.3.2-2 python interface to SQLite 3
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]