Skip to content

Commit

Permalink
_value -> fetch_value
Browse files Browse the repository at this point in the history
  • Loading branch information
jensens committed Dec 15, 2010
1 parent 3aa9056 commit 840a683
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/yafowil/widget/dynatree/widget.py
Expand Up @@ -2,14 +2,14 @@
ExtractionError,
factory,
UNSET,
fetch_value,
)
from yafowil.utils import (
cssid,
)
from yafowil.common import (
generic_extractor,
generic_required_extractor,
_value,
)

def build_inline_dynatree(tree, selected, tag, ulid=None):
Expand All @@ -35,7 +35,7 @@ def build_inline_dynatree(tree, selected, tag, ulid=None):

def dynatree_renderer(widget, data):
tag = data.tag
value = _value(widget, data)
value = fetch_value(widget, data)
if isinstance(value, (list, tuple)):
value = '|'.join(value)
input_attrs = {
Expand All @@ -51,7 +51,7 @@ def dynatree_renderer(widget, data):
if isinstance(source, dict):
source_type = 'local'
ulid = cssid(widget, 'dynatree-source');
result += build_inline_dynatree(source, _value(widget, data), tag,
result += build_inline_dynatree(source, fetch_value(widget, data), tag,
ulid=ulid)
elif isinstance(source, basestring):
source_type = 'remote'
Expand Down

0 comments on commit 840a683

Please sign in to comment.