In case you haven't solved your problem yet, could you send a
self-contained test case so that I could look at it? I've never used
Pylons nor AuthKit, so I can't help you just by seing that traceback.
It's as if the Role class __init__ method didn't support the
additional (name) argument, though from browsing the sources of
AuthKit 0.4, it seems to have one. Might be a .pyc issue, or an
authKit version mismatch somewhere... Sorry, can't tell you more
without toying with actual code myself...

On Fri, May 30, 2008 at 7:43 PM, Alen Ribic <[EMAIL PROTECTED]> wrote:
>
> I am trying to use Elixir with AuthKit and Pylons.
> I got Authkit to generate necessary db tables, however when trying to
> create a Role via Role model, I get a strange error trace below.
>
> This mail is my last dieing effort. I have been struggling with this
> one for some time. So if anyone could shed some light on this will
> very much appreciate it.
>
> 19:03:42,252 INFO  [sqlalchemy.engine.base.Engine.0x..6c]
> {'roles_name_1': 'delete'}
> Traceback (most recent call last):
>  File "/usr/bin/paster", line 8, in <module>
>    load_entry_point('PasteScript==1.3.6', 'console_scripts', 'paster')
> ()
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/command.py", line 78, in run
>    invoke(command, command_name, options, args[1:])
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/command.py", line 117, in invoke
>    exit_code = runner.run(args)
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/appinstall.py", line 68, in run
>    return super(AbstractInstallCommand, self).run(new_args)
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/command.py", line 212, in run
>    result = self.command()
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/appinstall.py", line 456, in command
>    self, config_file, section,
> self.sysconfig_install_vars(installer))
>  File "/usr/lib/python2.5/site-packages/PasteScript-1.3.6-py2.5.egg/
> paste/script/appinstall.py", line 592, in setup_config
>    mod.setup_config(command, filename, section, vars)
>  File "/home/alen/Development/python/projects/ProjectLean/projectlean/
> websetup.py", line 26, in setup_config
>    users.role_create("delete")
>  File "/usr/lib/python2.5/site-packages/AuthKit-0.4.0-py2.5.egg/
> authkit/users/sqlalchemy_driver.py", line 153, in role_create
>    new_role = self.model.Role(role.lower())
>  File "build/bdist.linux-i686/egg/elixir/entity.py", line 663, in
> __call__
>  File "/usr/lib/python2.5/site-packages/SQLAlchemy-0.4.5-py2.5.egg/
> sqlalchemy/orm/attributes.py", line 1221, in init
>    oldinit(instance, *args, **kwargs)
> TypeError: __init__() takes exactly 1 argument (2 given)
>

-- 
Gaƫtan de Menten
http://openhex.org

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SQLElixir" 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/sqlelixir?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to