On May 30, 12: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.

I gave up on trying to use AuthKit in that "transparent" way where it
adds stuff to the model by itself... I know this is less than ideal
but it *works*... (I too spent a ridiculous amount of time trying to
make it work as intended).

I added an Elixir version of User, Group, Role to my model (I needed
to relate User to a Person class, so the generic model was not going
to work for me anyway).

Rolled my own version of AuthKit's UsersFromModel at lib/auth.py in my
Pylons project...

In the Pylons .ini file:

authkit.form.authenticate.user.type =
myproject.lib.auth:UsersFromModel
authkit.form.authenticate.user.data = myproject.model.entities

I hope that gets you heading in the right direction... I've used this
approach successfully in a few projects already.

--isaac


--~--~---------~--~----~------------~-------~--~----~
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