[Zope3-Users] Permissions to use IWriteZopeDublinCore

2007-05-17 Thread Kevin Gill (Newaddress)
Hi, I am putting together a simple application based on Philipp Von Weitershausen's book. When an object is updated, I update the Dublin Core metadata in an event handler. The code is similar to the following... @adapter(IListing, IObjectModifiedEvent) def updateListingDCTitle(listing, event):

[Zope3-Users] RE: Annotations when creating a Principal

2007-05-10 Thread Kevin Gill (Newaddress)
Further to my last email, it appears that my error is using the FoundPrincipalFactory. I changed the code to use the getPrincipal method of the PAU and it works fine. pau = getUtility(IAuthentication) principal = pau.getPrincipal(principal_id) Thanks Kevin > I am following the e

[Zope3-Users] Annotations when creating a Principal

2007-05-09 Thread Kevin Gill (Newaddress)
Hi, I am following the example in chapter 22 of Philipps book. I am setting up the PAU so that new users can register with the site. I am extending the example so that the information entered when creating the Principal is copied to the Annotations. Thus I can present the user with a one step sig

[Zope3-Users] Use of Viewlet from a ZMI Page Template

2007-04-12 Thread Kevin Gill (Newaddress)
The background I have created a simple skin. I have a viewlet in this skin. The viewlet populates a Sidebar. If I create a page template in the file system and configure it via ZCML, the viewlet works. I also want to create some pages through the ZMI and I am using page templates and my ski