[Zope] copy / past in the Root Folder
Ian Sealy
Ian.Sealy@bristol.ac.uk
Wed, 8 Jan 2003 19:29:31 +0000 (GMT)
Dear Lee,
> I am rather new to Zope.
>
> I have a question related to copy and paste in the root folder. I
> have a user folder (RUSER) with several objects stored in it --some
> external methods and some sub-folders. Each of the sub-folders has a
> SiteRoot object, some html files and may have one or more folders.
>
> I thought that I might form a copy of the RUSER hierarchy, do some
> work on it and, given that things still look ok, rename the copy to
> RUSER.
>
> The problem which I seem to be having is this. When I modify files in
> the copy, the changes are also taking place in the original hierarchy.
> I suspect that the copy operation is a shallow copy but I am unable to
> verify this hypothesis. First: is my suspicion correct? Secondly, if
> I am correct, then is there a way to use the copy and past buttons to
> perform a deep copy? Should I perhaps do an import/export?
I suspect that what's happening is that you've successfully copied the
RUSER folder, but you're then entering a folder containing a SiteRoot.
Because of the SiteRoot the management URLs won't point to the objects
in your copy, but will instead point back to the originals. Try
disabling the SiteRoot by setting the SUPPRESS_SITEROOT environment
variable when you start Zope. You should now be able to change the copy
without affecting the original.
Cheers,
Ian
P.S. You might want to investigate Virtual Host Monster.
--
Dr Ian Sealy
Internet Development
Institute for Learning and Research Technology
University of Bristol