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

>
> MIN_REP_TO_VOTE =
> config_register(IntegerValue(REP_RULES,'MIN_REP_TO_VOTE',
> default=15,description=_('blah'))).value
>

If I really wanted to inline like that, I'd make a utility function that
first checks to see if the passed XxxValue is already present in the
ConfigGroup.  If not, then add it, and either way - return the current
value.

-- 
Bruce Kroeze
http://www.ecomsmith.com
It's time to hammer your site into shape.

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