Re: [Zope] standard_error_message woes!

2000-12-22 Thread Jason Byron

--- The Doctor What <[EMAIL PROTECTED]> wrote:
> Gaaah!  I'm totally miffed/pissed/confused/sad about
> this.
> 
> I have Zope 2.2.4, and if I go to:
> http://docwhat.gerf.org:9673/fish  (an non-existant
> object)
> I get the HTTPResponse.py _error_html() function as
> called by
> notFoundError().
> 
> Now, if I go to:
> http://zope.org/fish
> 
> I get a nice fully customized error page, which
> includes where I
> *might* have ment to go
> 
> What's going on!
> 

I know what you mean.  I'm no zopista but I think the
problem has to do with the standard error methods not
being tied in directly to the object database.

There are two files:
/lib/python/ZPublisher/HTTPResponse.py
/lib/python/OFS/Application.py

that contain error pages hard coded in.

you get the HTTPResponse.py code for errors like:

403: 'Forbidden',
404: 'Not Found',
405: 'Method Not Allowed',

stuff like that.

This error code is not parsed like normal dtml and so
you can't simply replace it with: 

""

I think this is because these are standard error codes
that have to do with the web server and they must work
even if the object database doesn't.

There must be a more detailed reason why these errors
aren't connected to the db, but someone else will have
to answer that one. :)

jason



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

___
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] Building from Source

2000-12-22 Thread Jason Byron


--- Ben Ocean <[EMAIL PROTECTED]> wrote:
> Hi;
> One of the add-on programs I want to include
> (ZMySQLdb) requires I rebuild
> Zope from the src-tgz distro. I've tried to do this
> but get this error:
> 
> gzip: stdin: invalid compressed data--crc error
> tar: Child returned status 1
> tar: Error exit delayed from previous errors
> 
> Now, I *was* supposed to upload it as an ASCII file,
> right? If that's so,
> can someone please explain to me what I'm doing
> wrong?
> TIA,
> BenO

oops, don't download as ascii if its a tar.gz file

try binary mode instead

could also be a corrupted download, try it again

jason


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


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

___
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] SiteAccess Help!

2000-12-22 Thread Rick Munday

>Can someone please point me, I must be blind!

No you are not blind.

The documentation is sparse. I was just going to post the same question. :)

I got it installed and the Proxy_Pass link shows a little info, but for the
life of me I cant find the object that SiteAccess is supposed to install!
(see http://www.zope.org/Members/anser/apache_zserver/ ) for info.


___
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] (no subject)

2000-12-22 Thread csdfcmso

GET YOUR OWN 100 MEG WEBSITE FOR ONLY $11.95 PER MONTH TODAY!

STOP PAYING $19.95 or more TODAY for your web site, WHEN YOU CAN 
GET ONE FOR ONLY $11.95 PER MONTH!

DO YOU ALREADY HAVE A WEBSITE? ALL YOU HAVE TO DO IS TRANSFER THE 
DOMAIN TO OUR SERVERS AND UPLOAD YOUR DATA AND YOU ARE READY TO 
GO! YOUR NEW WEB SPACE CAN BE CREATED INSTANTLY WITH JUST A 
SIMPLE PHONE CALL TO  OUR OFFICE.

YOU CAN CHANGE THE DESIGN OF YOUR SITE AS MUCH AS YOU WANT with 
no extra charge!  UNLIMITED TRAFFIC -- no extra charge!

FRONT PAGE EXTENSIONS are FULLY SUPPORTED.

A SET UP FEE OF $40.00 APPLIES for FIRST TIME CUSTOMERS.

ALL FEES PREPAID IN ADVANCE FOR THE YEAR PLUS A $40.00 SET UP 
CHARGE.

FOR DETAILS CALL 1 888 248 0765  if you are outside the USA,
please fax 240 337 8325

Webhosting International

 
 
 
 
 
 
 
 
 
 
 

___
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] Editing the z2.py File

2000-12-22 Thread Michael Bernstein

Stephane Bortzmeyer wrote:
> 
> - do not make *one* mistake in the "root" method code or you will lose access to 
>your Zope completely (that's the big problem with all-database systems like Zope). 
>Even FTP access will fail, you will have to retrieve your ZODB from backups!

Umm, even if *everything* else fails, you can still manually
truncate the Data.fs file to remove the last transaction
(presumably the change you made to the access rule), and
you'll be back to normal.

That's one of the things that I really appreciate about
Zope, that it's practically (though not absolutely) immune
to unrecoverable data corruption.

HTH,

Michael Bernstein.

___
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] Reality check PYZOMA = python / zope for Mac ?

2000-12-22 Thread Jason Cunliffe

Dieter Maurer <[EMAIL PROTECTED]> wrote:

>  > Is the mac getting left behind or will the new MacOSX in fact bring
Python
>  > adn Zope more easily into the fold?
> MacOSX is almost Unix.
>
> It should be easy to create Python and Zope on it.

That's good news, assuming that Mac owners uniformly adopt MacOSX.
I would love to here from anyone interested who has MacOSX and would be
willing to test this out.

Does anyone know what Apple's plans are for MacOSX introduction to broad
mass market.?
Will it be the default AppleOS by end of 2001?

I imagine though that most existing Mac users, artists, etc, especially long
term users will not be in much of a hurry to upgrade at all unless they are
technology freaks or have compelling new tools to benefit from.

This makes me suspect there  will be a large current Mac User population
likely to be left behind by as we go into the next year with Python 2.x++
and Zope 2.3x++ being the modern versions.

Will Zope 2.3x run on Python 1.5.2 - yes/no/maybe/sometimes/depends?

My concern is because I want to install an integrated application using Zope
+ [Python] + Browser + Flash5 and I want it to run on Mac, Win32, Linux
[etc]. Local ZServer + Flash5 offering peer-peer + smart-client features
which can work offline and online adn be easy for desktop drag and drop for
group site creation and management. Local Zope is a key part of this
strategy - I have been recently discussing Zope based project with some
artists, and was reminded about how many creative people only use Macs, thus
the ZMac question.

Thanks

- Jason
___
Jason CUNLIFFE = NOMADICS['Interactive Art and Technology']


___
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] ANNOUNCE: ZPostgresUtils product released

2000-12-22 Thread Andreas Heckel

Hi
I have just added a new product called ZPostgresUtils:

http://www.zope.org/Members/aeg/ZPostgresUtils

Depending on referential integrities ZPostgresUtils generates a database
diagram.
At this time ZPostgresUtils is a ZClass based product for PostgreSQL 7.0
RDBMS or later.
It works with Zope 2.1.6 as well as with Zope 2.2.0.

Please let me know what you think about it or if there are any problems.

  
-- 

Andreas Heckel   [EMAIL PROTECTED]
LINUX is like a wigwam ...no gates ...no windows and an apache inside
;-)

___
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] CZAN Anyone?

2000-12-22 Thread Andy McKay

>   Well, if you're going to be pedantic -- then it's only fair to mention
>   that PPM is of ActiveState's devising, otherwise 'perl -MCPAN -e shell'
>   does the trick, using Bundle::CPAN.
>
>   Sorry... just had to point that out.   (c8=

Very true, just covering my own little world there for obvious reasons...
mind you the growth of ppm so to non ActiveState repositories has been
great.

--
  Andy McKay, Developer.
  ActiveState.


___
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] Name Errors: DTML Document -> External Python Document -> DTML Document -> ZSQLcument -> ZSQL

2000-12-22 Thread Dieter Maurer

"Burwell, Becky <[EMAIL PROTECTED]>" <[EMAIL PROTECTED]> writes:
 > I have an SQL database that I want to populate using an external
 > Python method (because I have file I/O code).
 > 
 > So I have something like this:
 > 
 > DTML Document named import_file which has:
 > 
 > 
 > 
 > parsefile is my external Python method.
 > 
 > def parsefile (self):
 > # blah, blah
 > self.record_info (arg1=value1,arg2=value2)
You break the namespace chain here.

If "record_info" is indead a DTML document (and not a method!),
then you should nevertheless be able to access "LookupPrinter"
by acquisition.
I do not know, why it does not work.

You can avoid to break the namespace chain:
  

  def parsefile(self,namespace):
self.record_info(None,namespace,arg1=value1,)


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] XML-RPC problem solved!!

2000-12-22 Thread I-Min Mau

OK, with help of my boss we were able to get the xmlrpclib patch to work
with Authentication.

Basically I did as before, with a duplicated, modified version "xmlrpclibx",
and used it:

import xmlrpclibx

t = xmlrpclibx.BasicAuthTransport('myusername','mypassword')
# I have to create the new modified transport with this call!

s = xmlrpclibx.Server("http://0",t)   # and passed t as argument!
print s.imin.short()

Then it worked.  I just didn't create the right object to pass in, that's
all.
Happy Holidays again, everyone!

I-Min


___
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] Building from Source

2000-12-22 Thread Ben Ocean

Hi;
One of the add-on programs I want to include (ZMySQLdb) requires I rebuild
Zope from the src-tgz distro. I've tried to do this but get this error:

gzip: stdin: invalid compressed data--crc error
tar: Child returned status 1
tar: Error exit delayed from previous errors

Now, I *was* supposed to upload it as an ASCII file, right? If that's so,
can someone please explain to me what I'm doing wrong?
TIA,
BenO


___
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] Reality check PYZOMA = python / zope for Mac ?

2000-12-22 Thread Dieter Maurer

Jason Cunliffe writes:
 > Is the mac getting left behind or will the new MacOSX in fact bring Python
 > adn Zope more easily into the fold?
MacOSX is almost Unix.

It should be easy to create Python and Zope on it.


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 )




Re: [Zope] SiteAccess Help!

2000-12-22 Thread Dieter Maurer

Ben Ocean writes:
 > ... SiteAccess documentation ...
There are HowTos on zope.org.

Search for them.


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 )




Re: [Zope] CZAN Anyone?

2000-12-22 Thread corey

And upon Friday of December 22, the illustrious Andy McKay spake thusly...
 
> I think you also we need to separate CPAN functionality from PPM. PPM is the
> bit that downloads and installs the files locally.
> 

  Well, if you're going to be pedantic -- then it's only fair to mention
  that PPM is of ActiveState's devising, otherwise 'perl -MCPAN -e shell' 
  does the trick, using Bundle::CPAN.

  Sorry... just had to point that out.   (c8=


Beers,

Corey


___
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] SiteAccess Help!

2000-12-22 Thread Andy McKay

You've been to:

http://www.zope.org/Members/4am/SiteAccess2/info

which is linked off

http://www.zope.org/Members/4am/SiteAccess2/installing

which is linked off

http://www.zope.org/Members/4am/SiteAccess2

?

--
  Andy McKay, Developer.
  ActiveState.
- Original Message -
From: "Ben Ocean" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 22, 2000 11:30 AM
Subject: [Zope] SiteAccess Help!


> Hi;
> I've installed SiteAccess but can't find instructions on how to configure
> it! The sparse README file says nothing, there's a link to instructions on
> the Zope/Members site, but the link redirects to a page with no
> instructions! Can someone please point me, I must be blind! Thanks,
> BenO
>
>
> ___
> 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 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] CZAN Anyone?

2000-12-22 Thread Andy McKay

>From a web point of view it would be nice if we could get the products and
information in a more flexible format. Maybe an rdf or other xml file of the
products. Then it would be a simple matter to write something that parses
that...

I think you also we need to separate CPAN functionality from PPM. PPM is the
bit that downloads and installs the files locally.

--
  Andy McKay, Developer.
  ActiveState.

- Original Message -
From: "Stephane Bortzmeyer" <[EMAIL PROTECTED]>
To: "Jonathan (ListServ Account)" <[EMAIL PROTECTED]>
Cc: "Zope Mailinglist" <[EMAIL PROTECTED]>
Sent: Friday, December 22, 2000 6:36 AM
Subject: Re: [Zope] CZAN Anyone?


> On Friday 22 December 2000, at 12 h 50, the keyboard of "Jonathan
\(ListServ
> Account\)" <[EMAIL PROTECTED]> wrote:
>
> > Does anyone have any plans for CPAN like functionality for Zope?
>
> It would be a very good idea. The CPAN is the main strenght of Perl (if
someone cites the Vaults as a Python equivalent, it means he never used the
CPAN).
>
> In the mean time, I've reserved czan.org and .net (for the community: of
course, I will give them back freely when someone will implement it) unless
people prefer zopefind.net (like rpmfind.net)?
>
>
>
> ___
> 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 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] SiteAccess Help!

2000-12-22 Thread Ben Ocean

Hi;
I've installed SiteAccess but can't find instructions on how to configure
it! The sparse README file says nothing, there's a link to instructions on
the Zope/Members site, but the link redirects to a page with no
instructions! Can someone please point me, I must be blind! Thanks,
BenO


___
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] CZAN Anyone?

2000-12-22 Thread Andy McKay

> On Friday 22 December 2000, at 12 h 50, the keyboard of "Jonathan
\(ListServ
> Account\)" <[EMAIL PROTECTED]> wrote:
>
> > Does anyone have any plans for CPAN like functionality for Zope?
>
> It would be a very good idea. The CPAN is the main strenght of Perl (if
someone cites the Vaults as a Python equivalent, it means he never used the
CPAN).

What does cpan give you that zope.org doesnt, I can go into zope.org, look
at modules documentation, download them and so on. Same with CPAN. Ok so
maybe it doesnt have simple and interfaces to it such as listings by author,
module and so on...

The next step would be automated installation, which would be nice. A simple
interface to select a module, install it and restart your Zope. A much
extended Control Panel...


___
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] standard_error_message woes!

2000-12-22 Thread The Doctor What

Gaaah!  I'm totally miffed/pissed/confused/sad about this.

I have Zope 2.2.4, and if I go to:
http://docwhat.gerf.org:9673/fish  (an non-existant object)
I get the HTTPResponse.py _error_html() function as called by
notFoundError().

Now, if I go to:
http://zope.org/fish

I get a nice fully customized error page, which includes where I
*might* have ment to go

What's going on!

According to http://www.zope.org/Members/JohnC/StandardErrorMessage

I should be able to get this to work, he has a ... example even!

Gh!!!

*goes off in a corner, pulling out hair while quitely sobbing*

-- 
"This is the Steve Allen show. To those of you lunging for the channel selector, 'Good 
Night!'"

The Doctor What: Un-Humble   http://docwhat.gerf.org/
[EMAIL PROTECTED]   KF6VNC

___
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] finding by which object uses which methods

2000-12-22 Thread Andy McKay

Find searches the html and dtml of an object through the text. If click
"Find", leave "Find objects of type" to "All types" and enter in the box
"with ids:" "standard_html_footer" and click "Find", I will get one result:

standard_html_footer (Standard Html Footer)

Thats my standard_html_footer. If leave "with ids" blank and enter in the
"containing" field "standard_html_footer", then click Find I get 45 results,
since I have 45 objects that "depend" upon this:

Found 45 items.

 Control_Panel/Products/Quote/ZQuote_addForm (Add ZQuote)
 Control_Panel/Products/SiteSummary/README (How to use Site Summary)
 standard_error_message (Standard Error Message)

Etc. You'll note that "standard_html_footer" does not show up in this list.

--
  Andy McKay, Developer.
  ActiveState.
- Original Message -
From: "Tom Deprez" <[EMAIL PROTECTED]>
To: "Andy McKay" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Friday, December 22, 2000 6:51 AM
Subject: Re: [Zope] finding by which object uses which methods


> I think you misunderstood me here
>
> I don't want to find the standard_html_footer itself
> I want to find the objects which USE standard_html_footer.
>
> as in 
>
> eg. if index_html contains the line above. The find should return
index_html
> and not standard_html_footer.
>
> I'm looking which objects depend on certain objects.
>
> Regards, Tom.
>
> - Original Message -
> From: "Andy McKay" <[EMAIL PROTECTED]>
> To: "Tom Deprez" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Thursday, December 21, 2000 8:18 PM
> Subject: Re: [Zope] finding by which object uses which methods
>
>
> > Its called "Find", a tab in the top right hand corner. Type in
> > standard_html_footer in the containing field.
> >
> > --
> >   Andy McKay, Developer.
> >   ActiveState.
> >
> > - Original Message -
> > From: "Tom Deprez" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 21, 2000 10:08 AM
> > Subject: [Zope] finding by which object uses which methods
> >
> >
> > > Hi,
> > >
> > > Has somebody created a tool which can tell all the objects which uses
a
> > > specified object?
> > >
> > > eg.
> > >
> > > ask zope to return a list of objects which use standard_html_footer.
> > >
> > > This tool would come handy to me... perhaps to others also. So if
you've
> > > created it for yourself, perhaps you want to share it to us?
> > >
> > > Tom.
> > >
> > >
> > > ___
> > > 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 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 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] zmxodbc error

2000-12-22 Thread Erik Myllymaki

After installing the zmxodbc package I get the following error when I try
and add a zmxodbc object from the management screen:

Error Type: NameError
Error Value: SQLDataSources

I moved the mx directory from /lib/python/shared to /lib/python.

What else needs to be done?

A previous thread asked this same question without a response.

Also there was mention of some patches to this package that were available
by request which I would be interested in checking out.

Thanks,

-- 
Erik Myllymaki
[EMAIL PROTECTED]



___
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] update on my XML-RPC woes

2000-12-22 Thread I-Min Mau

OK, some good news:
  I was able to locate more tips from :  "XML-RPC with ZClasses"
http://www.zope.org/Members/teyc/pipermailXMLRPCWodes/

  So I have implemented the one major change:
1.  Fix the import error to support "encode string"-by adding
  from base64 import encodestring
and I went back and re-adjusted that block to the way Amos had it

because per my earlier email, I had already fixed the subclassing error.

But it still isn't working yet!






___
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] Need help with authentication through XML-RPC

2000-12-22 Thread I-Min Mau

Hi More experienced Zope folks,

I am a fairly raw programming intern who have been learning Zope and
Python.  Now here's my problem:
  I have set up a DTML method in a folder that'll create a DA note
(DigitalAccess Note product) object in that folder.  I have tried it locally
and it works.  Even better, is it can be invoked via http request through my
web browser remotely, and everything is fine,
the User Authentication dialog box is brought up automatically, and I can
enter my userId and password and all works.
**BUT how to I do the same trick with XML-RPC?  I have done some
minimalistic XML-RPCs using the xmlrpclib module created by F.Lundh, but now
I ran into the real problem:
his module as is does not come with support for sending requests with basic
authentication
and needs to be extended!  (SEE "How to use XML-RPC with Zope" by Mr. Amos
at http://www.zope.org/Members/Amos/XML-RPC )  In that article, the author
does offer ONE example code on how to extended this via addition of a
BasicAuthTransport class.  And here's what I have tried to do to make this
work:
 1. copied the xmlrpclib module into another module "xmlrpclibx.py" so I
can play with it safely..
 2. make sure the string and httplib were imported (if they weren't I
added the statement in at the beginning)
 3. copied the class definition of BasicAuthTransport class into this
module, with only one change:  instead of xmlrpclib.Transport the first line
parameter is just Transport)
 4. made one change in the class Server definition (that calls the
Transport functions)
 where it says: if transport is None:
transport = Transport()
self.__transport = transport
 I changed the middle statement to:  transport =
BasicAuthTransport() in order to
 try to get the modified method called.

Then I just discovered that in BasicAuthTransport codes there's a NameError
with "encodestring" (that's NOT defined in string module).  And as it
stands, I have attempted to replace that block with what I think would be
the string involved, only to see that, when I execute that call, I don't get
ANY feedback-the DOS prompt simply "stalled"-nothing was done,as if the
program ran into the Abyss..

Help!  Someone!  What should I do?Thanks and happy Holidays
  I-Min




___
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] CZAN Anyone?

2000-12-22 Thread Jonathan \(ListServ Account\)

> It would be a very good idea. The CPAN is the main strenght
> of Perl (if someone cites the Vaults as a Python equivalent,
> it means he never used the CPAN).
>
> In the mean time, I've reserved czan.org and .net (for the
> community: of course, I will give them back freely when
> someone will implement it) unless people prefer zopefind.net
> (like rpmfind.net)?

Somebody has to own the domain :)  I'm got space available for a CZAN
mirror if necessary. It might be something that benefits the Python
community as a whole, not just Zope users, in which case 'CZAN' is not
entirely correct ;)  But hey, let's start somewhere right?

Such a product would allow users to access CZAN from within the Zope
Interface and work a bit like MS' Windows Update (if you're not familiar
with it, it rules for upgrading Windows machines over the Internet).
Install new products, new versions, hotfixes. Upgrade Zope itself.
Integrate with ZEO etc. to upgrade clusters of machines all at once...

Just thinking out loud here :)  Anyone from DigiCool care to comment?
How much of it is already in the pipeline?

Cya
Jonathan


___
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] finding by which object uses which methods

2000-12-22 Thread Tom Deprez

I think you misunderstood me here

I don't want to find the standard_html_footer itself
I want to find the objects which USE standard_html_footer.

as in 

eg. if index_html contains the line above. The find should return index_html
and not standard_html_footer.

I'm looking which objects depend on certain objects.

Regards, Tom.

- Original Message -
From: "Andy McKay" <[EMAIL PROTECTED]>
To: "Tom Deprez" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 21, 2000 8:18 PM
Subject: Re: [Zope] finding by which object uses which methods


> Its called "Find", a tab in the top right hand corner. Type in
> standard_html_footer in the containing field.
>
> --
>   Andy McKay, Developer.
>   ActiveState.
>
> - Original Message -
> From: "Tom Deprez" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, December 21, 2000 10:08 AM
> Subject: [Zope] finding by which object uses which methods
>
>
> > Hi,
> >
> > Has somebody created a tool which can tell all the objects which uses a
> > specified object?
> >
> > eg.
> >
> > ask zope to return a list of objects which use standard_html_footer.
> >
> > This tool would come handy to me... perhaps to others also. So if you've
> > created it for yourself, perhaps you want to share it to us?
> >
> > Tom.
> >
> >
> > ___
> > 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 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] CZAN Anyone?

2000-12-22 Thread Stephane Bortzmeyer

On Friday 22 December 2000, at 12 h 50, the keyboard of "Jonathan \(ListServ 
Account\)" <[EMAIL PROTECTED]> wrote:

> Does anyone have any plans for CPAN like functionality for Zope? 

It would be a very good idea. The CPAN is the main strenght of Perl (if someone cites 
the Vaults as a Python equivalent, it means he never used the CPAN). 

In the mean time, I've reserved czan.org and .net (for the community: of course, I 
will give them back freely when someone will implement it) unless people prefer 
zopefind.net (like rpmfind.net)?



___
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] Editing the z2.py File

2000-12-22 Thread Stephane Bortzmeyer

On Friday 22 December 2000, at 10 h 38, the keyboard of Martijn Pieters 
<[EMAIL PROTECTED]> wrote:

> There are several ways of telling the SiteAccess rule
> not to kick in. See the SiteAccess pages for more info on the URL
> modifiers and environment variables that do this.

When I had the problem and was in an emergency, I did not find it. Now that 
I'm cooler, I find it at a glance :-}

If an Access Rule is broken, and is preventing normal access, it can be 
disabled by
restarting Zope with environment variable SUPPRESS_ACCESSRULE set.

Thanks.



___
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] He Lived Alone

2000-12-22 Thread Rich Pezzullo

,

I couldn't let the season go by without passing this along.
Best wishes for a happy holiday season and a joyous and prosperous new year.  If you 
need to reach me, you can always call my 1 800 number.
Rich Pezzullo

This poem was written by a Marine stationed in Okinawa Japan. The following is his 
request. I think it is  reasonable.
PLEASE. Would you do me the kind favor of sending this to as many people as you can? 
Christmas will be coming soon and some credit is due to our U.S. service men and women 
for our being able to celebrate these festivities. Let's try in this small way to pay 
a tiny bit of what we owe. Make people stop and think of our heroes, living and dead, 
who sacrificed themselves for us. Please, do your small part to plant this small seed.


Subject: 'TWAS THE NIGHT IT WAS THE NIGHT BEFORE CHRISTMAS, HE LIVED ALL ALONE

'TWAS THE NIGHT
IT WAS THE NIGHT BEFORE CHRISTMAS,
HE LIVED ALL ALONE,
IN A ONE BEDROOM HOUSE MADE OF
PLASTER AND STONE.

I HAD COME DOWN THE CHIMNEY
WITH PRESENTS TO GIVE,
AND TO SEE JUST WHO
IN THIS HOME DID LIVE.

I LOOKED ALL ABOUT,
A STRANGE SIGHT I DID SEE,
NO TINSEL, NO PRESENTS,
NOT EVEN A TREE.
> >
NO STOCKING BY MANTLE,
JUST BOOTS FILLED WITH SAND,
ON THE WALL HUNG PICTURES
OF FAR DISTANT LANDS.

WITH MEDALS AND BADGES,
AWARDS OF ALL KINDS,
A SOBER THOUGHT
CAME THROUGH MY MIND.

FOR THIS HOUSE WAS DIFFERENT,
IT WAS DARK AND DREARY,
FOUND THE HOME OF A SOLDIER,
ONCE I COULD SEE CLEARLY.

THE SOLDIER LAY SLEEPING,
SILENT, ALONE,
CURLED UP ON THE FLOOR
IN THIS ONE BEDROOM HOME.

THE FACE WAS SO GENTLE,
THE ROOM IN SUCH DISORDER,
NOT HOW I PICTURED
A UNITED STATES SOLDIER.

WAS THIS THE HERO
OF WHOM I'D JUST READ?
CURLED UP ON A PONCHO,
THE FLOOR FOR A BED?

I REALIZED THE FAMILIES
THAT I SAW THIS NIGHT,
OWED THEIR LIVES TO THESE SOLDIERS
WHO WERE WILLING TO FIGHT.

SOON ROUND THE WORLD,
THE CHILDREN WOULD PLAY,
AND GROWNUPS WOULD CELEBRATE
A BRIGHT CHRISTMAS DAY.

THEY ALL ENJOYED FREEDOM
EACH MONTH OF THE YEAR,
BECAUSE OF THE SOLDIERS,
LIKE THE ONE LYING HERE.

I COULDN'T HELP WONDER
HOW MANY LAY ALONE,
ON A COLD CHRISTMAS EVE
IN A LAND FAR FROM HOME.

THE VERY THOUGHT
BROUGHT A TEAR TO MY EYE,
I DROPPED TO MY KNEES
AND STARTED TO CRY.

THE SOLDIER AWAKENED
AND I HEARD A ROUGH VOICE,
"SANTA DON'T CRY,
THIS LIFE IS MY CHOICE,

I FIGHT FOR FREEDOM,
I DON'T ASK FOR MORE,
MY LIFE IS MY GOD,
MY COUNTRY, MY CORPS.

THE SOLDIER ROLLED OVER
HE'D SOON DRIFTED TO SLEEP,
I COULDN'T CONTROL IT,
I CONTINUED TO WEEP.

I KEPT WATCH FOR HOURS,
SO SILENT AND STILL
AND WE BOTH SHIVERED
FROM THE COLD NIGHT'S CHILL.

I DIDN'T WANT TO LEAVE
ON THAT COLD, DARK, NIGHT,
THIS GUARDIAN OF HONOR
SO WILLING TO FIGHT.

THEN THE SOLDIER ROLLED OVER,
WITH A VOICE SOFT AND PURE,
WHISPERED, "CARRY ON SANTA,
IT'S CHRISTMAS DAY, ALL IS SECURE."

ONE LOOK AT MY WATCH,
AND I KNEW HE WAS RIGHT.
"MERRY CHRISTMAS MY FRIEND,
AND TO ALL A GOOD NIGHT."

This poem was written by a Marine stationed in Okinawa Japan. The following is his 
request. I think it is  reasonable.
PLEASE. Would you do me the kind favor of sending this to as many people as you can? 
Christmas will be
coming soon and some credit is due to our U.S. service men and women for our being 
able to celebrate these festivities. Let's try in this small way to pay a tiny bit of 
what we owe. Make people stop and think of our heroes, living and dead, who sacrificed 
themselves for us. Please, do your small part to plant this small seed.


___
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] How to make two racks work under one specialist?

2000-12-22 Thread Steve Spicklemire


Hi Dirksen,

For your 'otherwise' case, could you have a single instance
that serves as an 'unknown' object:

WITH Deliverables.getItem(self.id) COMPUTE 
originalObject=RESULT or NOT_FOUND 
OTHERWISE originalObject=Deliverables.getItem('Unknown')

where it is known that the Deliverables Specialist has an 
instance with id='Unknown'. The problem with OTHERWISE is 
that it only works within the context of a single WITH/COMPUTE,
and if you don't get 'originalObject' then your WITH/COMPUTE
will never fire.

-steve

> "Dirksen" == Dirksen  <[EMAIL PROTECTED]> writes:

Dirksen> Hi Steve,

Dirksen> The first thing is, my ZPatterns' version was
Dirksen> 0.4.3.b1. So I quickly downloaded b2, which passed my
Dirksen> nameorassignlist, but still didn't fixed the fail-through
Dirksen> problem.

Dirksen> The 2nd thing is, your script turned out just fine in my
Dirksen> case when calling existent deliverable objects. It just
Dirksen> didn't fail-through, not even the 'otherwise' clause is
Dirksen> applied. This is weird!

Dirksen> cheers Dirksen


___
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] How to make two racks work under one specialist?

2000-12-22 Thread Steve Spicklemire


Hi Dirksen,

   OK.. the problem was that DataSkinAddons:DummyDataSkin doesn't
allow access to attributes of 'self'. Once I switched to a differnt
ZClass (which is a direct subclass of DataSkin) then everything
was fine again.. ) just for Facade instances:

I'm now using

WITH Deliverables.getItem(self.id) COMPUTE originalObject=RESULT or NOT_FOUND

with 'loaded by accessing attribute' set to 'originalObject'

and

WITH self.originalObject COMPUTE myName=name, myDescription=description, dueDate

then in the FacadeClass index_html:


I am a facade! 

Description:

I'm due: 



and all is working OK.  What ZClass are you using for your instances?

-steve

> "Steve" == Steve Spicklemire <[EMAIL PROTECTED]> writes:

Steve> Hi Dirksen,

Steve> Hmm.. this is starting to look like a bug. I tried the same
Steve> thing with the ZPatterns example. I have a real site using
Steve> this technique with ZPatterns-0.4.2a??  and it's working,
Steve> so it's probably something introduced in 0.4.3. Here's what
Steve> I did:

Steve> I created a new Specialist 'Facade' with a
Steve> DataSkinAddons:DummyDataSkin as it's storage class and
Steve> 'originalObject' as the attribute to check for existence.

Steve> Then I put in the following SkinScript:

Steve> WITH Deliverables.getItem(self.id) COMPUTE
Steve> originalObject=(RESULT is _.None) and NOT_FOUND or RESULT

Steve> WITH self.originalObject COMPUTE name

Steve> and ran in 'debug mode.' I get the following traceback on
Steve> the console when I try to access a known deliverable
Steve> through the Facade Specialist:

Steve> Traceback (innermost last): File
Steve> /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/AttributeProviders.py,
Steve> line 304, in _AttributeFor (Object: GAPMixin) File
Steve> /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/Expressions.py,
Steve> line 122, in eval File
Steve> /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_Util.py,
Steve> line 337, in eval (Object: Deliverables . getItem ( self
Steve> . id )) (Info: Deliverables) File , line 0, in ?
Steve> File
Steve> /usr/local/etc/Zope2a/lib/python/DocumentTemplate/DT_Util.py,
Steve> line 140, in careful_getattr File
Steve> /usr/local/etc/Zope2a/lib/python/Products/ZPatterns/Expressions.py,
Steve> line 53, in validate File
Steve> /usr/local/etc/Zope2a/lib/python/AccessControl/SecurityManager.py,
Steve> line 139, in validate File
Steve> /usr/local/etc/Zope2a/lib/python/AccessControl/ZopeSecurityPolicy.py,
Steve> line 159, in validate Unauthorized: id

Steve> I tried stepping through with the debugger... but got lost
Steve> in the details of the GAP evaluator. I'll try again after
Steve> breakfast and see what I can come up with.

Steve> ;-)

Steve> Look on the bright side. You're making ZPatterns a better
Steve> product.

Steve> -steve

> "Dirksen" == Dirksen  <[EMAIL PROTECTED]> writes:

Dirksen> Hi Steve,

Dirksen> I've made my experiment simple, by playing with the
Dirksen> DumbZPatterns examples, testing one rack under one
Dirksen> specialist. Here is the skinscript:

Dirksen> WITH Deliverables.getItem(self.id) COMPUTE name=name,
Dirksen> dueDate=dueDate, description=description, todoIDs=todoIDs

Dirksen> WITH SELF COMPUTE name=name, dueDate='1973/01/01',
Dirksen> description='unknown achee', todoIDs=[]

Dirksen> The virtual instance is loaded by accessing attribute of
Dirksen> 'name'. I thought any calls for inexistent objects in
Dirksen> Deliverables would turn out default values. Yet the test
Dirksen> result turned out an not_found error. The following
Dirksen> modification (change to 'otherwise' clause) didn't make a
Dirksen> difference:

Dirksen> WITH Deliverables.getItem(self.id) COMPUTE name=name,
Dirksen> dueDate=dueDate, description=description, todoIDs=todoIDs
Dirksen> OTHERWISE LET name='unknown', dueDate='1973/01/01',
Dirksen> description='unknown achee', todoIDs=[]


Dirksen> One more question, i.e. the following expression WITH
Dirksen> Deliverables.getItem(self.id) COMPUTE name, dueDate,
Dirksen> description, todoIDs

Dirksen> also trigered the 'not_known' error for every objects in
Dirksen> Deliverables. Where goes wrong?

Dirksen> Dirksen


Dirksen> __ Do You
Dirksen> Yahoo!?  Yahoo! Shopping - Thousands of Stores. Millions
Dirksen> of Products.  http://shopping.yahoo.com/

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


Steve> 

[Zope] CZAN Anyone?

2000-12-22 Thread Jonathan \(ListServ Account\)

Hi all,

Does anyone have any plans for CPAN like functionality for Zope? I'd
just love to install new products, update products already installed,
get notified when I need a Hotfix etc. The product listing at Zope.org
is getting longer all the time and I am having a hard time keeping up to
date...

Just a thought. Probably been thought of before :)

Cya
Jonathan


___
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] pb : transparent folder 0.3 and ZSQL methods

2000-12-22 Thread Didier Georgieff

Hello,

I have a (regular) folder on root level with ZSQL methods.
I have a transparent folder on root level with a ZMySQLdatabase connection

When i manage any of the ZSQL method, i get that :
Warning: There are no SQL database connections. You need to add a Zope 
SQL database connection before you can use an Zope SQL Method
BUT test tab works fine, and overall, the ZSQL methods called thru DTML are 
still working (it didn't broke my application)

When i put a ZMysqldatabase connection in the folder with ZSQL methods, 
suddently, managing the ZSQLmethod brings all the right informations (but with the 
"new" ZmySQLdatabase connection).

So, as all works fine, except the "edit" tab on ZSQLMethod, I tried to look at the 
"SQLConnectionIDs" to see if i can workaround it but this is (much) over my python 
knowledge so 
Is it a problem in TP 0.3 or in ZSQL methods ? Any idea ?

I'm on Linux, 2.2.4, siteroot, the 3 latest hotfix, and transparent Folder 0.3
ZMysqlDA 1.2.0

PS : i don't know if the problem was there on TP 0.2 because i didn't touched the 
ZSQL methods for a while (before reorganizing with the Tranparent Folder, which is a 
great great great (tm) product.

Regards.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
SIT du Bas-Rhin : http://www.bas-rhin.sit.gouv.fr
GéoWeb http://sertit10.u-strasbg.fr

___
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] Job listings?

2000-12-22 Thread Max Møller Rasmussen

From: Jiva DeVoe [mailto:[EMAIL PROTECTED]]

>Is it inappropriate to post a job listing looking for Zope
>knowledgable coders on this list?  I don't see anything in the list
>charter about it, but I don't want to be rude.  Let me know!  Thanks!

It happens from time to time, and I have seen no protests against it.

I guess that as long as it doesn't fill the list nobody minds.

Regards Max M

___
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] Editing the z2.py File

2000-12-22 Thread Martijn Pieters

On Fri, Dec 22, 2000 at 09:42:35AM +0100, Stephane Bortzmeyer wrote:
> It is possible with SiteAccess' "Set Access Rule". It has some nasty side-effects:
> - Zcatalogs will no longer work :-(

This is fixed by CHris Petrilli's patches, see elsewhere on the list (or
Zope-Dev, can't remember). These fixes will be in Zope 2.3.0.

> - do not make *one* mistake in the "root" method code or you will lose
> access to your Zope completely (that's the big problem with all-database
> systems like Zope). Even FTP access will fail, you will have to retrieve
> your ZODB from backups!

This is nonsense. There are several ways of telling the SiteAccess rule
not to kick in. See the SiteAccess pages for more info on the URL
modifiers and environment variables that do this.

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

___
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] [OT] New kind of Bud Wazzup ad ?

2000-12-22 Thread Pierre-Julien Grizel



What about making a "wazzup" remake but saying WAZZZOPE ?




(just kidding)



P.-J.

, ...


-- 
If the only tool you have is a hammer, 
you tend to see every problem as a nail.
Si le seul outil dont vous disposez est un marteau, 
vous avez tendance à voir chaque problème comme un clou. 
   --Abraham Maslow

___
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] Editing the z2.py File

2000-12-22 Thread Stephane Bortzmeyer

On Thursday 21 December 2000, at 14 h 59, the keyboard of "Ben Ocean" 
<[EMAIL PROTECTED]> wrote:

> I have my own server with virtual hosts. I'm going to build a large Web site
> on this server with Zope as the base platform. I intend to build more on the
> Zope platform, but already have several sites built without it. My question
> is, how do I edit the z2.py file in such a way that I can call up certain
> virtual hosts and not others through port 80? 

I use Squid as an accelerator for my Zope sites . Squid can bind itself to an IP address (http_port in recent 
Squids, tcp_incoming_addr or something like that in older Squids). Use an 
other IP address for Apache sites (BindAddress in Apache).

> Also, can I build the
> equivalent of a doc root off of the Zope root such that Zope could act, in
> effect, as a virtual host, 

It is possible with SiteAccess' "Set Access Rule". It has some nasty side-effects:
- Zcatalogs will no longer work :-(
- do not make *one* mistake in the "root" method code or you will lose access to your 
Zope completely (that's the big problem with all-database systems like Zope). Even FTP 
access will fail, you will have to retrieve your ZODB from backups!



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