On Wed, 11 Apr 2007, Bruce Tulloch wrote:
> A new multilink property classhelp call does not appear
to work.
>
> It pops up OK but it does not update the associated
property.
>
> It's a property I've added to the User class as
follows...
>
> The relevant schema components are:
>
> feature = Class(db, "feature",
> name=String(),
> synopsis=String());
> feature.setkey("name")
>
> user = Class(db, "user",
> username=String(),
> password=Password(),
> address=String(),
> realname=String(),
> phone=String(),
> organisation=String(),
> alternate_addresses=String(),
> queries=Multilink('query'),
> roles=String(), # comma-separated string
of Role names
>
features=Multilink("feature"),
> timezone=String())
> user.setkey("username")
>
> and the template addition made to user.item.html:
>
> <tr>
> <th
i18n:translate="">Features</th>
> <td>
> <span tal:replace="structure
context/features/field" />
> <span tal:replace="structure
python:db.feature.classhelp(
> property='features')" />
> </td>
> </tr>
>
> What am I likely to be doing wrong here?
Nothing. There's a bug in the user form (I guess no-one has
ever tried to use
a popup with the user form before ;)
Add name="itemSynopsis" to the <form> tag
and all will be well.
Richard
------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Roundup-users mailing list
Roundup-users lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers
|