List Info

Thread: Multilink property classhelp advice sought.




Multilink property classhelp advice sought.
user name
2007-04-11 07:51:16
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?

Bruce

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Roundup-users mailing list
Roundup-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

Re: Multilink property classhelp advice sought.
user name
2007-04-11 08:31:11
Bruce Tulloch wrote:
> A new multilink property classhelp call does not appear
to work.
>   
Is it possible that the added multilink property  needs edit
rights 
added to it? 
http://roundup.sou
rceforge.net/doc-1.0/customizing.html#setting-up-security-on
-the-new-objects

Tonu

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Roundup-users mailing list
Roundup-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

Re: Multilink property classhelp advice sought.
user name
2007-04-11 09:07:52
Tonu Mikk wrote:
> Bruce Tulloch wrote:
>> A new multilink property classhelp call does not
appear to work.
>>   
> Is it possible that the added multilink property  needs
edit rights
> added to it?
> http://roundup.sou
rceforge.net/doc-1.0/customizing.html#setting-up-security-on
-the-new-objects

I don't think this is the problem.

The property I added was to the user class and the schema
already allows users
permission to edit properties of their own user item.

Further more the problem occurs when logged in as Admin.

Bruce.

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Roundup-users mailing list
Roundup-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

Re: Multilink property classhelp advice sought.
user name
2007-04-11 09:10:29
I forgot to mention, I *can* update the property if I type
in the value I want.

I therefore evidently have permission to do so.

The problem is that the classhelp javascript box does not
seem to update the
associated property field when I select various values and
click Submit.

Bruce

Bruce Tulloch wrote:
> Tonu Mikk wrote:
>> Bruce Tulloch wrote:
>>> A new multilink property classhelp call does
not appear to work.
>>>   
>> Is it possible that the added multilink property 
needs edit rights
>> added to it?
>> http://roundup.sou
rceforge.net/doc-1.0/customizing.html#setting-up-security-on
-the-new-objects
> 
> I don't think this is the problem.
> 
> The property I added was to the user class and the
schema already allows users
> permission to edit properties of their own user item.
> 
> Further more the problem occurs when logged in as
Admin.
> 
> Bruce.
> 
>
------------------------------------------------------------
-------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the
chance to share your
> opinions on IT & business topics through brief
surveys-and earn cash
> http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Roundup-users mailing list
> Roundup-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/roundup-u
sers
> 

------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief
surveys-and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Roundup-users mailing list
Roundup-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

Re: Multilink property classhelp advice sought.
user name
2007-04-15 23:50:15
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

Re: Multilink property classhelp advice sought.
user name
2007-04-16 17:47:15
Richard Jones wrote:
> On Wed, 11 Apr 2007, Bruce Tulloch wrote:
>> A new multilink property classhelp call does not
appear to work.
>> <snip>
>> 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.

Thanks Richard, that's fixed it.

Cheers, Bruce.

------------------------------------------------------------
-------------
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-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/roundup-u
sers

[1-6]

about | contact  Other archives ( Real Estate discussion Medical topics )