ArchgenXML with ArgoUML - text fields not working, and an ATBackRef question
chris
chris at protaform.com
Thu Jul 12 16:05:01 UTC 2007
On Thu, 2007-07-12 at 14:29 +0000, akameswaran wrote:
> 3) My text field was called Description - that was the problem.
> Other names work. I was able to get the desired behavior by
> explicitly subclassing ATDocument (bringing in the description field
> from the schema)
>
Ah-ha! Yep - I did have this problem, and it was a Description field.
And I know what the solution is.
A standard Plone Description field does not use the usual
'getDescription()' function as an accessor, instead it (and the title
field) use description() and title() respectively. To fix your problem
in the UML, set an 'accessor' tagged value on your Description field,
with a value of 'description' (you can do this for title too).
You don't need to code the accessor function - it'll Just Work (tm).
No need to go subclassing stuff, and you don't need to rely on secondary
products being installed.
Hope this helps,
Chris.
> Thanks,
> AK
>
> _______________________________________________
> Product-Developers mailing list
> Product-Developers at lists.plone.org
> http://lists.plone.org/mailman/listinfo/product-developers
More information about the Product-Developers
mailing list