changeset 4110 | 8728d8c95985 |
parent 4105 | de31c3afe975 |
child 4160 | 3fbdeef9a610 |
4109:841bc459d5e8 | 4110:8728d8c95985 |
---|---|
406 global etype_relation_field |
406 global etype_relation_field |
407 |
407 |
408 def etype_relation_field(etype, rtype, role='subject'): |
408 def etype_relation_field(etype, rtype, role='subject'): |
409 eschema = vreg.schema.eschema(etype) |
409 eschema = vreg.schema.eschema(etype) |
410 return AutomaticEntityForm.field_by_name(rtype, role, eschema) |
410 return AutomaticEntityForm.field_by_name(rtype, role, eschema) |
411 |
|
412 vreg.register_all(globals().values(), __name__) |