Elixir/Alchemy support?

1 view
Skip to first unread message

Andy

unread,
Apr 8, 2008, 4:01:12 PM4/8/08
to tg-registration
In the controller I see several #TODO SQLAlchemy with nothing
following. Should this worry me? The introduction says tg-registration
supports Alchemy.

Related question: When I do quickstart template install of tg-
registration, it prints out a list of config variables when it starts.
I notice that my variables say "Elixir = False" even though my project
is using Elixir, and it produces a model for sqlalchemy. Would it
generate me an Elixir model if that variable had set properly? I'm
having to hack away trying to integrate it.

Thanks.

Patrick Lewis

unread,
Apr 8, 2008, 5:27:54 PM4/8/08
to tg-registration
On Apr 8, 4:01 pm, Andy <andy.lists.ban...@gmail.com> wrote:
> In the controller I see several #TODO SQLAlchemy with nothing
> following. Should this worry me? The introduction says tg-registration
> supports Alchemy.
>

Can you point me to someplace where you are seeing this? Because I'm
having trouble finding it in the most recent controller.

http://tinyurl.com/5okg4r

In a python shell, try:

> from registration.release import version
> print version

The latest released version is 0.4.

To answer your question, SQLAlchemy is fully supported.

> Related question: When I do quickstart template install of tg-
> registration, it prints out a list of config variables when it starts.
> I notice that my variables say "Elixir = False" even though my project
> is using Elixir, and it produces a model for sqlalchemy. Would it
> generate me an Elixir model if that variable had set properly? I'm
> having to hack away trying to integrate it.
>
> Thanks.

No matter what you do, registration will not generate an Elixir model.
Sorry, it's just something I haven't gotten around to. I didn't
realize it might cause problems for someone. But, unless you are
dealing with relations, I would imagine that it would just involve
adding the fields you need to the Table class declarations. Or is it
that your Elixir classes are having trouble integrating / referring to
the registration ones?

Andy

unread,
Apr 8, 2008, 7:57:11 PM4/8/08
to tg-registration
Wow. I did "print version" and it gave me 0.11. I wonder how that
happened. I just used easy_install as directed.
I was still figuring out how to integrate it. I'm not trying any
relations yet. I'm merely working on importing successfully. Now that
I see I'm on totally the wrong version I'll start over.

Whose Table class declarations can I add the fields to? Can I just put
them all in Elixir myself? or are there any special Alchemy things you
are doing? (This may be more obvious when I see the latest version.)
Reply all
Reply to author
Forward
0 new messages