Re: [Zope] Generating products that perform a smart clone of a master site?

2000-06-28 Thread Martijn Pieters

On Tue, Jun 27, 2000 at 11:22:20PM +0100, Hamish Lawson wrote:
 Thanks for your reply. I hadn't thought of using ZWikiWeb, but given
 that I do need to make instances of a master site, do you think that
 this could be done using ZWikiWeb? Instead of inheritance for the
 folders, the mechanism I'm investigating now is prototypes (a la
 JavaScript and Self objects).

Chris ment for ZwikiWeb to be an example of how a copy could be made. The
ZwikiWeb implements such a construct.

-- 
Martijn Pieters
| Software Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Generating products that perform a smart clone of a master site?

2000-06-27 Thread Chris Withers

Hamish Lawson wrote:
 I envisaged turning a tutor's site into a product that could be
 instantiated.

Hi Hamish,

I'd suggest downloading the ZWikiWeb product from:
http://www.zope.org/Members/chrisw/ZWikiWeb

It does pretty much exactly what you're talking about. It's doesn't take
very long to knock up a product like this and I don't think I even used
ZClasses. My basis was the example stuff from the Zope Content Managers
Guide.

I'm guessing this is what you're trying to do. If you're looking into
using inheritence (so for example, your tutor changes his example, which
causes all the instances to be updated) then you'll need to use
ZClasses. I have vague memories of the Zope Developers Guide covering
this, if not, try BeeHive's ZClass guide.

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Generating products that perform a smart clone of a master site?

2000-06-25 Thread Hamish Lawson

I'm exploring the use of Zope for creating learning environments in 
higher education.

One of the requirements is for a tutor to be able to create a mini 
site that includes static files along with more active objects like 
discussion boards. Furthermore they need to be able to make 
different 'instances' of this site for use by different groups, such 
that each instance of the site conatins unique instances of any 
contained active objects (such as a discussion board).

The obvious approach would be to just copy and paste the folder 
containing the master site, but there are a couple of problems with 
that: (1) changes to the master site will only be reflected in new 
instances of the site, and (2) a lot of static files could be getting 
copied each time.

What I think I need to do is to develop a facility that makes a 
tutor's site into a product. Instantiating such a generated product 
should make a smart clone of the master site, smart in the sense that 
only active objects are actually cloned, but static files are shared 
among all instances of the site. I suspect that ZClasses might be 
involved to achieve this, but are there any issues with the fact that 
a master site could contain folders? Furthermore I'd like a tutor to 
be able to visit their productised site to update it, without seeing 
a lot of alien stuff; changes to the master site should be reflected 
in all instances of the site.

Am I on the right lines here? Any pointers would be appreciated.

Hamish Lawson
University of St Andrews, Scotland



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )