Darryl Pierce wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bryan Kearney wrote:
>>> This patch exposes adding images into cobbler via the ruby bindings.
>>> It seems like the "new", iterates over attributes,
"save" model is
>>> standard across the various elements. Any reason we can not push the
>>> save method up?
>>>
>> The main reason for not being able to push save functionality up to
>> Cobbler::Base is due to the differences in field names when saving and
>> retrieving. For example, when retrieving a NetworkInterface, the MAC
>> address is delivered with "mac_address" but is called
"macaddress" on save.
>>
> Why is that? Is it an xmlrpc feature, or a cobbler feature?
>
The field name discrepancy is something in Cobbler itself.
It's historical, related to the early days of the webapp and is kept
that way to not break existing code that relies on Cobbler XMLRPC.
Patches to the core that preserve backwards compatibility while offering
saneness would be welcome.
--Michael
- --
Darryl L. Pierce <dpierce(a)redhat.com> : GPG KEYID: 6C4E7F1B
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora -
http://enigmail.mozdev.org
iEYEARECAAYFAkkCEy0ACgkQjaT4DmxOfxvX7wCg68CEQIrAkrfNSjRgmmUIynZI
ROcAn1YV81iIYq09vY4iE1eQR1OISp8A
=P3sM
-----END PGP SIGNATURE-----
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler