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

2000-06-27 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 Hamish Lawson

Chris

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).

Hamish Lawson




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 )




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 )




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

2000-06-27 Thread Hamish Lawson

David

Thank you for your reply.

> With ZClasses you can use the Zope security support to control who
> updates what.  However, currently ZClasses can only go in the
> Control_Panel/Products folder.  This means that all tutors will see
> the products/classes used by all other tutors, which you say you wish
> to avoid.

I may have misled you about what I meant by the alien stuff that I
wanted tutors to avoid seeing.

I envisaged turning a tutor's site into a product that could be
instantiated. In order not to make copies of static files, I reckoned
that each folder in the tutor's original site would have to be made
into its own ZClass in order that the static files that were missing
from instances of the site could be found through inheritance. I'm
happy with a tutor's site being moved into the Products folder; the
stuff I wanted tutors to avoid seeing wasn't other products, since I
think it should be possible to provide them with an interface that
takes them straight to their own product. Rather I wasn't sure whether
it was possible to turn a tutor's site into a product that used
folderish ZClasses instead of ordinary folders, yet still have it feel
like their old site.

One issue with what I'm suggesting is this idea of every folder in the
tutor's productised site really being a folderish ZClass. I'm bothered
by this profusion of ZClasses. I think what I really need is the
concept of prototype folders, whereby if a folder in an instance of the
site didn't itself contain the required object, its prototype folder
would be looked in instead; the folders in the product would be just
ordinary folders rather than individual ZClasses, and folders within
the product instances would all be instances of a single
PrototypedFolder class (though obviously pointing to different folders
as their prototype), thus drastically reducing the number of classes
required. But I don't know whether such a prototype mechanism exists
for Zope.

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 )




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

2000-06-26 Thread Dieter Maurer

=?iso-8859-1?q?Hamish=20Lawson?= writes:
 > 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).
You want look at ZClasses (zope.org -> Documentation).



Dieter

___
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 )