Re: API for setting/getting values on Dexterity content

Robert Niederreiter <rnix-vzgNpXZZ1Rwgm7i/[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>
Am 2014-10-22 um 14:13 schrieb Andreas Jung:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Robert Niederreiter wrote:
>>
>> Am 2014-10-22 um 14:07 schrieb Andreas Jung:
>>> plone.api.content.set_value(obj, fieldname,  value,
>>>> behavior='behavior_name')
>> and this looks better than
>>
>> obj.behaviors('name').attr = value
> Why do I need to name behavior here?
to address the behavior explicit. see my last email.
>
> - -aj
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJUR59mAAoJEADcfz7u4AZjZ5cLvjT4xLI8jWJgBX8AJSCAkz6A
> m/XMMDdvxHyixP7Vvyq8GbUdm+J7fheDs36oy0LA1+UHm1qkusgsE2tXkJogNgXw
> 3z5qA3R5Ng0TAxrZzFY8n5j1kaEULq9P/ggsCGUPeC2CRn0qIY2Du4N99J5sW4i5
> FQEx6R8KdxS+lW2bk2/jwoo1nwEtq+dfyc/QQiQwImNZjUP3GRUn2sFrqomP3gUT
> CqNwZF1uDdWGI1xD4s5WxQXQ0HImo+BOCkJIqWeTllIFb9JXJ/MZnm6iMMWcr1Mr
> of9d7k/tLLD7vgM0q8HD+HG7V7y4SOLtBva12TgxO0UIgB+ThzL3lZSGFYeKbMX7
> 0uqRF1TydSsbRTj8426ubwwqSKwbiwCEd7EBAFHgZj6dugmuaVWKUjP6y05cbD9U
> Zv0bQJBrcGmTboW/iKYdGYR/bKUHGa3sxKFTjr1sHxAm2pAjTkgCQKKuqI1q7/+F
> d1p//DZPAB1T9dCcRiqkUNntobwv+TY=
> =WqiF
> -----END PGP SIGNATURE-----


------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.