[Zope-PTK] Member properties
Sun, 30 Jul 2000 16:01:52 -0400
Mike Standley wrote:
> 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.
You need to create a Wizard instance for your new ZClass and install it
into the "Wizards" folder of your portal. See my quick notes on ZClass
Tres Seaver email@example.com
Digital Creations "Zope Dealers" http://www.zope.org