Skip to content

Commit 936cfe1

Browse files
committed
UriValue -> AnyUri.Value
1 parent 8b05d6c commit 936cfe1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spyne/model/primitive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ class Attributes(String.Attributes):
227227
text = None
228228
"""The text shown in link. This is an object-wide constant."""
229229

230-
class UriValue(object):
230+
class Value(object):
231231
"""A special object that is just a better way of carrying the
232232
information carried with a link.
233233

spyne/test/protocol/test_html_table.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
from spyne.model.primitive import Integer
3333
from spyne.model.primitive import String
3434
from spyne.model.primitive import AnyUri
35-
from spyne.model.primitive import UriValue
3635
from spyne.model.complex import Array
3736
from spyne.model.complex import ComplexModel
3837
from spyne.protocol.http import HttpRpc
@@ -172,7 +171,7 @@ class C(ComplexModel):
172171
class SomeService(ServiceBase):
173172
@srpc(_returns=Array(C))
174173
def some_call():
175-
return [C(c=UriValue(_link, text=_text))]
174+
return [C(c=AnyUri.Value(_link, text=_text))]
176175

177176
app = Application([SomeService], 'tns', in_protocol=HttpRpc(),
178177
out_protocol=HtmlTable(field_name_attr='class'))
@@ -220,7 +219,7 @@ class C(ComplexModel):
220219
class SomeService(ServiceBase):
221220
@srpc(_returns=C)
222221
def some_call():
223-
return C(c=UriValue(_link, text=_text))
222+
return C(c=AnyUri.Value(_link, text=_text))
224223

225224
app = Application([SomeService], 'tns', in_protocol=HttpRpc(),
226225
out_protocol=HtmlTable(field_name_attr='class', fields_as='rows'))

0 commit comments

Comments
 (0)