[Zope-PTK] Member properties

Mike Standley standley@asset.com
Thu, 27 Jul 2000 11:56:10 -0400


I am new to both Zope and the PTK (I do have some Python experience) so
please forgive me if my questions are too obvious.  I have looked in the
mailing list and searched the Zope site to find information but have
been unsuccessful.  I am on a very tight schedule to get this done and
am running out of time to figure it out by diving into the source.

Question 1:

I would like to change the demo portal to provide new properties for
each member such as the Chrome, listed, and Email properties.  I found
these properties on the DemoPortal/LoginMember product.  I added new
propeties (i.e. myNewSystemProperty/myNewCommonProperty) to both the
SystemProperties and the CommonProperties property sheets.  I then tried
to access them in the same manner as was done on the personalize_form
page (i.e. <dtml-var "AUTHENTICATED_USER.myNewSystemProperty"
html_quote>">.  I get an AttributeError.  Also the in statement that
prints all properties from the CommonProperties sheet does no show the
property that I added.

I have tried creating a new portal after I made the changes so that they
would take affect but with the same result.  I tried exporting the
DemoPortal with my changes and then reimporting and creating yet another
portal but still no success. 

Question 2:

Problem adding instances of ZClass through portal interface:

As a specific example, created under Products a folder named
ContactProduct, and inside a ZClass called ContactClass with base class
Portal Content Base. Added a property sheet and properties, a View,
edited ContactClass_add to reference the property sheet and
ContactClass_addForm to include properties.

Am able to add instances of this class from the ptk/manage screen via
the Add Available Objects menu, but can't seem to reference
ContactClass_add or ContactClass_addForm from the portal itself. Problem
is perhaps in the way I'm referencing them; trying to use a Wizard
points to localhost:8080/ptk/Members/UserName/ContactClass_add or a
similar location. Even with direct linking, I'm not able to point to the
ContactClass_addForm. Any help greatly appreciated.


Any help would be greatly appreciated.  Thanks in advance for any help.

Mike Standley