Stuck to get start with AuthKit

2007-07-21 Thread Olli Wang

Hi, I was followed the Geting Started With AuthKit(http://
wiki.pylonshq.com/pages/viewpage.action?pageId=2392077), but is it
suitable for 0.3.0pre5?

I tried this simple example:

from authkit.authenticate import test_app, middleware
from paste.httpserver import serve

app_conf = {
'authkit.setup.method': 'form, cookie',
'authkit.cookie.secret': 'secret encryption string',
'authkit.cookie.signoutpath': '/signout',
'authkit.params.name': 'test',
'authkit.form.authenticate.user.data': 
bob:apples
TIM:oranges

}

app = middleware(app, app_conf)
serve(app, port=8080, host='0.0.0.0')

But it doesn't work. I got traceback as this:

Traceback (most recent call last):
  File test_authkit.py, line 15, in module
app = middleware(test_app, app_conf)
  File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
\authkit\authen
ticate\__init__.py, line 518, in middleware
'authkit option'%_app2key(key, prefix))
authkit.authenticate.AuthKitConfigError: Option key
'authkit.form.authenticate.u
ser.data' specified in config file is not a valid authkit option

So I removed the 'authkit.form.authenticate.user.data' option from
app_conf and tried again. This time I get another traceback:

Traceback (most recent call last):
  File test_authkit.py, line 11, in module
app = middleware(test_app, app_conf)
  File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
\authkit\authen
ticate\__init__.py, line 518, in middleware
'authkit option'%_app2key(key, prefix))
authkit.authenticate.AuthKitConfigError: Option key
'authkit.cookie.signoutpath'
 specified in config file is not a valid authkit option

Okay, I removed that option again, also I got another back said one
other option is error. So could anyone tell my what's going wrong? :(


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Stuck to get start with AuthKit

2007-07-21 Thread Lee Connell

This link describes how to figure out valid options for the config file.

http://authkit.org/docs/module-authkit.authenticate.html#middleware

look for _allowed_options.  

On Sat, 2007-07-21 at 15:02 +, Olli Wang wrote:
 Hi, I was followed the Geting Started With AuthKit(http://
 wiki.pylonshq.com/pages/viewpage.action?pageId=2392077), but is it
 suitable for 0.3.0pre5?
 
 I tried this simple example:
 
 from authkit.authenticate import test_app, middleware
 from paste.httpserver import serve
 
 app_conf = {
 'authkit.setup.method': 'form, cookie',
 'authkit.cookie.secret': 'secret encryption string',
 'authkit.cookie.signoutpath': '/signout',
 'authkit.params.name': 'test',
 'authkit.form.authenticate.user.data': 
 bob:apples
 TIM:oranges
 
 }
 
 app = middleware(app, app_conf)
 serve(app, port=8080, host='0.0.0.0')
 
 But it doesn't work. I got traceback as this:
 
 Traceback (most recent call last):
   File test_authkit.py, line 15, in module
 app = middleware(test_app, app_conf)
   File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
 \authkit\authen
 ticate\__init__.py, line 518, in middleware
 'authkit option'%_app2key(key, prefix))
 authkit.authenticate.AuthKitConfigError: Option key
 'authkit.form.authenticate.u
 ser.data' specified in config file is not a valid authkit option
 
 So I removed the 'authkit.form.authenticate.user.data' option from
 app_conf and tried again. This time I get another traceback:
 
 Traceback (most recent call last):
   File test_authkit.py, line 11, in module
 app = middleware(test_app, app_conf)
   File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
 \authkit\authen
 ticate\__init__.py, line 518, in middleware
 'authkit option'%_app2key(key, prefix))
 authkit.authenticate.AuthKitConfigError: Option key
 'authkit.cookie.signoutpath'
  specified in config file is not a valid authkit option
 
 Okay, I removed that option again, also I got another back said one
 other option is error. So could anyone tell my what's going wrong? :(
 
 
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



Re: Stuck to get start with AuthKit

2007-07-21 Thread Lee Connell

go into site-packages or where you installed authkit and go to
authkit/authenticate/__init__.py and there you will find
_allowed_options.

On Sat, 2007-07-21 at 15:02 +, Olli Wang wrote:
 Hi, I was followed the Geting Started With AuthKit(http://
 wiki.pylonshq.com/pages/viewpage.action?pageId=2392077), but is it
 suitable for 0.3.0pre5?
 
 I tried this simple example:
 
 from authkit.authenticate import test_app, middleware
 from paste.httpserver import serve
 
 app_conf = {
 'authkit.setup.method': 'form, cookie',
 'authkit.cookie.secret': 'secret encryption string',
 'authkit.cookie.signoutpath': '/signout',
 'authkit.params.name': 'test',
 'authkit.form.authenticate.user.data': 
 bob:apples
 TIM:oranges
 
 }
 
 app = middleware(app, app_conf)
 serve(app, port=8080, host='0.0.0.0')
 
 But it doesn't work. I got traceback as this:
 
 Traceback (most recent call last):
   File test_authkit.py, line 15, in module
 app = middleware(test_app, app_conf)
   File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
 \authkit\authen
 ticate\__init__.py, line 518, in middleware
 'authkit option'%_app2key(key, prefix))
 authkit.authenticate.AuthKitConfigError: Option key
 'authkit.form.authenticate.u
 ser.data' specified in config file is not a valid authkit option
 
 So I removed the 'authkit.form.authenticate.user.data' option from
 app_conf and tried again. This time I get another traceback:
 
 Traceback (most recent call last):
   File test_authkit.py, line 11, in module
 app = middleware(test_app, app_conf)
   File c:\python25\lib\site-packages\authkit-0.3.0pre5-py2.5.egg
 \authkit\authen
 ticate\__init__.py, line 518, in middleware
 'authkit option'%_app2key(key, prefix))
 authkit.authenticate.AuthKitConfigError: Option key
 'authkit.cookie.signoutpath'
  specified in config file is not a valid authkit option
 
 Okay, I removed that option again, also I got another back said one
 other option is error. So could anyone tell my what's going wrong? :(
 
 
  


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---



migrating to Pylons 0.9.6rc1

2007-07-21 Thread Max Ischenko

Hello,

Just wanted to report my experience with 0.9.6rc1 while migrating my
app to it.

Most time consuming part was manual diff/merge procedure, since I made
_a lot_ of changes to framework-generated files and they do change a
lot as well. Migrating to SAContext was a breeze, I was able to
through out my custom code that did roughly the same.

One note.

While starting the app I see
/usr/lib/python2.5/site-packages/PasteDeploy-1.3-py2.5.egg/paste/
deploy/util/fixtypeerror.py:57: DeprecationWarning: The attribute
'config.paths' has moved to the pylons.config dictionary: Please
access it via pylons.config['pylons.paths']

Is it my fault or PasteDeploy not being updated?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
pylons-discuss group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~--~~~~--~~--~--~---