feat: add form/grid label auto-overrides for master view
This commit is contained in:
parent
c1afc3b3e3
commit
cd706821b2
7 changed files with 179 additions and 11 deletions
|
@ -22,9 +22,10 @@ class TestObjectNode(DataTestCase):
|
|||
model = self.app.model
|
||||
person = model.Person(full_name="Betty Boop")
|
||||
|
||||
# unsupported type raises error
|
||||
# unsupported type is converted to string
|
||||
node = mod.ObjectNode(colander.String())
|
||||
self.assertRaises(NotImplementedError, node.dictify, person)
|
||||
value = node.dictify(person)
|
||||
self.assertEqual(value, "Betty Boop")
|
||||
|
||||
# but supported type can dictify
|
||||
node = mod.ObjectNode(mod.PersonRef(self.request))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue