getting started with models

2 views
Skip to first unread message

Terrence Brannon

unread,
Oct 7, 2008, 5:12:06 PM10/7/08
to Nagare users
Here we see a simple Elixir model - http://elixir.ematia.de/trac/wiki/TutorialDivingIn

The questions are:

- how do we need to change that code to get it to work with Nagare?
Let's assume that the metadata.bind assignment will occur in models.py
and not via the configuration file

- why does the default models.py have a variable named __metadata__
while the Elixir sample model has a variable named metadata

Terrence Brannon

unread,
Oct 7, 2008, 5:18:31 PM10/7/08
to Nagare users


On Oct 7, 5:12 pm, Terrence Brannon <metap...@gmail.com> wrote:
> Here we see a simple Elixir model  -http://elixir.ematia.de/trac/wiki/TutorialDivingIn
>
> The questions are:
>
> - how do we need to change that code to get it to work with Nagare?
> Let's assume that the metadata.bind assignment will occur in models.py
> and not via the configuration file

apparently the MetaData() call handles all that

>
> - why does the default models.py have a variable named __metadata__
> while the Elixir sample model has a variable named metadata

just look in the .cfg file in your app's directory and it will be
obvious:

[database]
activated = off
uri = sqlite:///$here/../data/gnubux.db
metadata = gnubux.models:__metadata__
debug = off
Reply all
Reply to author
Forward
0 new messages