Re: [Zope] Learn Zope

2000-07-07 Thread Alex Gould

Paul Aviles wrote:
 What is the best document to learn Zope?

Try some of the guides at:
http://www.zope.org/Documentation
hopefully there will soon be an actual book (this would be great for
me!)
http://www.zope.org/Wikis/Docs/ZopeBook

-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

___
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] What is the best way to do this?

2000-07-04 Thread Alex Gould

Hello zope-masters, I humbly ask your advice on several matters.  I am
making an internal website for a statewide student activist group with
many members.  It will hopefully feature discussion boards, a contact
database, and a calendar of events.  I want to make the users of the
site part of the contact database, so that an entry in the database (a
name, phone number, etc.) can be easily "promoted" into a user with a
password and varying priveliges based on his/her role (volunteer, core
member, board chair, etc.)
Another feature I want to include is regional specialization - each
contact/user, calendar event, and forum has an associated "region" -
statewide or a specific campus or something in between.  That way a
user's default view of the statewide calendar won't be cluttered by
irrelevant events, and a search through the contact database would by
default only return results pertaining to the user's region.
I've tried building some custom zClasses but when things start to get
complex the dtml code gets really messy, so I think I should use
external methods to do most of the work.
Basically I'd appreciate any advice on how to put these ideas into code
or pointers to relevant documentation.  I don't mean to sound like
"here's my very complicated plan, write the code for me", I just need
some tips on how to get started.  Thanks.

 
-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

___
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] Multiple virtual hosts and domains

2000-06-18 Thread Alex Gould

Hugo Ramos wrote:

 After testing SiteAccess for about 100 times... i still can't get zope to
 serve multiple virtual hosts and domains...
 I would like very much that someone with a successful siteaccess instalation
 in a real production site could get in touch with me and try to get this
 working.

I just recently asked this question and got it to work.  This setup
works if you have several subdomains 'sitea.domain.tld' and
'siteb.domain.tld' etc.  It may have to be modified to work with other
setups - don't ask me how!

-  create folders sitea, siteb, and so on in your root zodb directory
-  put a siteroot in each folder, leaving all fields except name blank
-  make a dtml method in the root directory called virtual_hosts or
something, consisting of the following script:
dtml-comment
Get subdomain:
/dtml-comment
dtml-let
hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,':')[0],
'.')[0], '')"
dtml-comment
Is there a folder named as this subdomain?
/dtml-comment
  dtml-try
 dtml-if "[hostname]"
dtml-comment
Set logical root: 
/dtml-comment
dtml-call "REQUEST.set('SiteRootPATH', '/')"
dtml-comment
Add physical root: 
/dtml-comment
dtml-call "REQUEST.path.append(hostname)"   
 /dtml-if
   dtml-except KeyError
  dtml-call
"RESPONSE.redirect('http://www.domain.tld/site_not_found')"
   /dtml-try
/dtml-let
-  Create a Site Access Rule in the root folder and have it call this
method.
This should work, but don't ask me how (credit goes to Ethan Mindlace
Freeman, who gave me these instructions).  Good luck!
-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

___
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] virtual hosts with ZServer

2000-06-13 Thread Alex Gould

My apologies if this question has been answered before, but I couldn't
figure it out from available documentation or list archives.

I run a server for some student groups off a machine in my dorm and I'm
teaching myself Zope (slowly).  I deal with the dynamic IP address by
using several *.penguinpowered.com domains.  I would like to set up one
or more virtual hosts such that http://host1.penguinpowered.com/ points
to some folder in the Zope database.  It seems this is possible using
Set Access Rule and SiteRoot objects, but how?  Any help is
appreciated.  I am now using plain zserver 2.1.6.

-- 
Building highways to reduce traffic is like 
loosening your belt to reduce obesity.

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