#1038: Catwalk barfs in the IdentityManagement tutorial.
----------------------+-----------------------------------------------------
 Reporter:  Joost     |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  1.0b1    
Component:  Identity  |     Version:  0.9a6    
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 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"
 }}}

-- 
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1038>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Tickets" 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-tickets
-~----------~----~----~----~------~----~------~--~---

Reply via email to