I had submitted this to Collector about a month ago, and have since wrote an external method to get around creating them with id's. If you create a ZClass instance based on DTMLMethod or Document through the web interface you end up with an object that has no id. (Or at least no way to see it outside the management screens) If you create the same object in python using: from DateTime import DateTime from OFS import DTMLMethod def make_resume(rfile,id,title) ob=ob.__of__(self) if rfile: my_ob=self.Control_Panel.Products.MyClass() my_ob.id=id my_ob.propertysheets.MyProperties.manage_changeProperties( myproperty=rfile.read()) my_ob.manage_edit("""<!--#var standard_html_header--><!--#var myproperty--><!--#var standard_html_footer-->""",title) my_ob=my_ob.__of__(ob) ob._setObject(id, my_ob) You get an id just fine. It acts like any other web created ZClass instance. I hope DC fixes this soon. It's really hampering not being able to extend DTMLDocuemnts and DTML Methods as Zclasses. All my best, -- Jason Spisak webmaster@hiretechs.com Date: Wed, 20 Oct 1999 19:50:33 +0200 To: zope-dev@zope.org From: Alexandre Ratti <ratti@dial.oleane.com> Subject: [Zope-dev] Re: DTML Zclass ID bug - HELP! Cc: Anthony Pfrunder <s341625@student.uq.edu.au> Hello, Did anyone solve the problem describe by Anthony below ? I'd really like to know because it sounds suspiciously like one of my own ZClass ailments: I can't access a ZClass instance ID and I can't display its value on a property sheet. Thanks. Alexandre At 13:00 17/10/1999 -0700, you wrote: >I've run into a really annoying bug and was wondering if it is fixed in >the CVS version (I don't have direct internet access to check). > >Create a new Product containing a Zclass subclassing from the DTML >Document or Method. Add a Python or DTML Method which does: > > This document is <dtml-var id> > >Then, add an instance of this Zclass. When you VIEW it you get: > > This document is <cstring ...> > >AND when you edit it the ID is empty. All references to the ID and >related internal variables return CSTRING or cause tracebacks. How do i >get the REAL id?