How should I create an edit form?
I have created a zclass to represent online user profiles. I have a property sheet to edit the fields and all works well. But now, I want to create a page (not through management) to allow users to change their own profiles. I am not really sure how I should do the following: Lookup the profile matching the user based on how they are logged in? Show an edit form with the values prepopulated (Can I do this with property sheet somehow)? Any help would be appreciated. Thanks, Chris -------------------------------------------------------------------------- Note: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. Thank you. --------------------------------------------------------------------------
Bruce, Chris writes:
I have created a zclass to represent online user profiles. I have a property sheet to edit the fields and all works well. But now, I want to create a page (not through management) to allow users to change their own profiles. I am not really sure how I should do the following:
Lookup the profile matching the user based on how they are logged in? You get the user name with "AUTHENTICATED_USER.getUserName()".
You use "Computed Object Access" to locate objects given by expressions evaluating to their ids. Search the mailing list archives or look at URL:http://www.dieter.handshake.de/pyprojects/zope/book/chap3.html
Show an edit form with the values prepopulated (Can I do this with property sheet somehow)? Look at the API reference in Zope's integrated Online Help --> ZopeHelp -> API Reference -> PropertySheet.
Dieter
participants (2)
-
Bruce, Chris -
Dieter Maurer