Re: API for setting/getting values on Dexterity content

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.plone.devel
Message-ID <[email protected]>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> 
> So setting/getting a schema value could be (based on Andreas'
> suggestion): plone.api.content.set_value(obj, fieldname,  value, 
> behavior='behavior_name') value = plone.api.content.get_value(obj,
> fieldname, behavior='behavior_name')
> 
> Same for Dexterity base classes: obj.set_value(fieldname, value,
> behavior='behavior_name') value = obj.get_value(fieldname,
> behavior='behavior_name')
> 
> 

Why do you want the behavior name as explicit part of the API?
My position is that this should be handled under the hood.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQGUBAEBAgAGBQJUR53lAAoJEADcfz7u4AZjjZgLwOHdXVNyuYQgB9Gkget91Ne0
C3pfjnkM1m9KYj6jXeSAlTUsl8X2rF3j6/z8n08RzXYClAZbTUZymnGyHtfUF1x2
g2Fgx8vSpRz/5wpG7tCyslec2oIht4PJCTv3N/+NeSZsUSjvGva+bKYAs0/Q0PxO
lvbUGtUYu8D1MhD4eiflDuiTI9pvX+6k/i8bHXa6USAnVTR7yZg50HKILcGxRzgK
HZX/p+/DXINHJcgbc87d2Yb+Rd4VFgY7/yvamvAGziHVp2z2qJlm2+vtZODPJAe/
9ZanYdaW/WLgqEAbNiCyVf+p5JCk8NQpClQalbZ18x7SOM92xBB7ocZ39zorfJSU
Px1hXvc6K4gpR9wWtd7oAQpNxiGXNRfEPiz/ZK6OgmPTfiV+zAX1XvvxJp4tP6R7
g/mExYUYAapW24lVWhecfCtrUSIwNARy1Ted0EAfr7QNhED2pv5BJEu6CCrv4CMh
ZLUpBv9AwIUM3bTVo2skK49yIvcLdmA=
=ycYU
-----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.