I think part of the problem is that you're trying to inline the setting of
your value.

In satchmo, we do the setting for MIN_REP_TO_VOTE in a config.py file. Then
you need to make sure that config gets imported in your models.py.

For instance, see how we do it here -
http://www.bitbucket.org/chris1610/satchmo/src/tip/satchmo/apps/satchmo_store/contact/config.py

Does that help?

-Chris

On Tue, Apr 27, 2010 at 6:52 PM, Evgeny <[email protected]> wrote:

> Hello,
>
> I've decided to try livesettings for a Q&A forum project - askbot -
> like stackoverflow - (hey check out the demo at http://askbot.org/meta
> !).
>
> so my hope is to replace code like
>
> MIN_REP_TO_VOTE = 15  with
>
> MIN_REP_TO_VOTE =
> config_register(IntegerValue(REP_RULES,'MIN_REP_TO_VOTE',
> default=15,description=_('blah'))).value
>
> or something similar - in one place - without touching the rest of the
> code at all.
>
> Unfortunately this does not work, because no matter what I always get
> the default value.
>
> Found by trying that accessing values later in the code does work, but
> for that I have to recode quite a bit.
>
> Is there a way to make these settings work in a "drop in" fashion?
>
> Thanks!!!
>
> Evgeny.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<satchmo-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" 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/satchmo-users?hl=en.

Reply via email to