On March 9, 2010, Didier Roche wrote: > class ISSHKey(Interface): > """SSH public key""" > - id = Int(title=_("Database ID"), required=True, readonly=True) > + > + export_as_webservice_entry('ssh_key') > + > + id = exported(Int(title=_("Database ID"), required=True, > readonly=True)) person = Int(title=_("Owner"), required=True, > readonly=True) > personID = Int(title=_('Owner ID'), required=True, readonly=True) > - keytype = Choice(title=_("Key type"), required=True, > - vocabulary=SSHKeyType) > - keytext = TextLine(title=_("Key text"), required=True) > - comment = TextLine(title=_("Comment describing this key"), > - required=True) > + keytype = exported(Choice(title=_("Key type"), required=True, > + vocabulary=SSHKeyType)) > + keytext = exported(TextLine(title=_("Key text"), required=True)) > + comment = exported(TextLine(title=_("Comment describing this key"), > + required=True))
These fields should all be exported as readonly=True.
-- Francis J. Lacoste <email address hidden>
« Back to merge proposal
On March 9, 2010, Didier Roche wrote: _("Database ID"), required=True, readonly=True) as_webservice_ entry(' ssh_key' ) Int(title= _("Database ID"), required=True, _("Owner" ), required=True, SSHKeyType) title=_ ("Key text"), required=True) title=_ ("Comment describing this key"), Choice( title=_ ("Key type"), required=True, SSHKeyType) ) TextLine( title=_ ("Key text"), required=True)) TextLine( title=_ ("Comment describing this key"),
> class ISSHKey(Interface):
> """SSH public key"""
> - id = Int(title=
> +
> + export_
> +
> + id = exported(
> readonly=True)) person = Int(title=
> readonly=True)
> personID = Int(title=_('Owner ID'), required=True, readonly=True)
> - keytype = Choice(title=_("Key type"), required=True,
> - vocabulary=
> - keytext = TextLine(
> - comment = TextLine(
> - required=True)
> + keytype = exported(
> + vocabulary=
> + keytext = exported(
> + comment = exported(
> + required=True))
These fields should all be exported as readonly=True.
--
Francis J. Lacoste
<email address hidden>