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 #1038 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

Catwalk barfs in the IdentityManagement tutorial.

Reported by: Joost Owned by: anonymous
Priority: normal Milestone: 1.0b1
Component: Identity Version: 0.9a6
Severity: normal Keywords:
Cc: michela@…

Description

Catwalk barfs when trying to add new users as described in the IdentityManagement tutorial. The problem lies in the fact that encrypt_password() uses identity which doesn't seem to be configured when running the toolbox.

Traceback:

"C:\DOCUME~1\Joost\MIJNDO~1\PROJEC~1\identity-test\identity_test\model.py", line 90, in _set_password
    hash = identity.encrypt_password(cleartext_password)
  File "c:\documents and settings\joost\mijn documenten\incomming\turbogears\trunk\turbogears\identity\__init__.py", line 115, in encrypt_password
    return encrypt_password(cleartext)
  File "c:\documents and settings\joost\mijn documenten\incomming\turbogears\trunk\turbogears\identity\soprovider.py", line 402, in encrypt_password
    hash = identity.current_provider.\
  File "c:\documents and settings\joost\mijn documenten\incomming\turbogears\trunk\turbogears\identity\__init__.py", line 79, 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].
Request Headers:
  Content-Length: 133
  ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  USER-AGENT: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
  CONNECTION: keep-alive
  PRAGMA: no-cache
  CONTENT-LENGTH: 133
  HOST: localhost:7654
  CACHE-CONTROL: no-cache
  CONTENT-TYPE: application/x-www-form-urlencoded
  ACCEPT: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
  Remote-Addr: 127.0.0.1
  ACCEPT-LANGUAGE: nl,en;q=0.7,en-us;q=0.3
  Content-Type: application/x-www-form-urlencoded
  Remote-Host: 127.0.0.1
  ACCEPT-ENCODING: gzip,deflate
  KEEP-ALIVE: 300
127.0.0.1 - - [21/Jul/2006:08:12:51] "POST /catwalk/add HTTP/1.1" 500 3991 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.0.4) Gecko/20060508 Firefox/1
.5.0.4"

Change History

comment:1 Changed 13 years ago by michela

  • Cc michela@… added

comment:2 Changed 13 years ago by elvelind

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

fixed in trunk. hopfully 0.9a9 will be released soon witht this fix.

comment:3 Changed 13 years ago by kov

Fixed by changeset [1667], it seems. (I applied it locally, and it worked)

Note: See TracTickets for help on using tickets.