Re: [Zope-dev] Problem acquiring via a newly created object
Richard Barrett wrote: > I'm using the following python expression in the manage_addFolder and > manage_addDocument functions to determine the location in the file > system for the RCS backup of the data. > > rcspath = os.path.normpath(getattr(self, 'website_RCS_root') + \ > '/' + self.absolute_url(1) + \ > '/' + ob.id) > > As you can see it depends an acquiring the value of the > 'website_RCS_root' attribute from its containment environment. I believe this may work better in Zope 2.2.0--or perhaps the latest CVS. Jim made some changes to FactoryDispatcher that involve the factory method's "self" argument. Try it out. Shane ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Problem acquiring via a newly created object
Richard Barrett wrote: > > My classes (and some others yet to be written) are intended for use > when requirements stipulate that published material must be > held/protected in RCS as well as being served via Zope. I've elected > to put an attribute called 'web_RCS_root' at the top of the Zope > object hierarchy which contains the server local file system path > under which files to be held by RCS. http://www.zope.org/Members/sspickle/ZCVSMixin Perhaps this product will help. You might be able to use CVS instead of RCS, or you may find that Steve Spicklemire has solved some of the problems already. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
Re: [Zope-dev] Problem acquiring via a newly created object
Steve Alexander wrote: > > Richard Barrett wrote: > > > > My classes (and some others yet to be written) are intended for use > > when requirements stipulate that published material must be > > held/protected in RCS as well as being served via Zope. I've elected > > to put an attribute called 'web_RCS_root' at the top of the Zope > > object hierarchy which contains the server local file system path > > under which files to be held by RCS. > > http://www.zope.org/Members/sspickle/ZCVSMixin Screenshots linked from here: http://www.zope.org/Members/sspickle -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )