Re: [Zope-dev] Python 2.0

2000-07-24 Thread Toby Dickenson

On Fri, 21 Jul 2000 16:29:23 +0100, Toby Dickenson
[EMAIL PROTECTED] wrote:

This problem goes away if I don't compile python with garbage
collection support. I guess I shouldn't be suprised.

Is anyone else using Zope with python 2.0? (on NT, fwiw)

I am occasionally seeing protection faults as Zope starts up. When it
happens, the fault is repeatable until I truncate data.fs. There may
be some correlation to changing a help file (Zope's new help system
will reindex its help files at startup if any have changed).

Annoyingly, the it doesnt happen with a debugging build. Is anyone
else seeing this? Or not seeing this?

Toby Dickenson
[EMAIL PROTECTED]

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


Toby Dickenson
[EMAIL PROTECTED]

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




[Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Does anyone know what this means?

The page views fine for me and this is the first error of this type I've
seen since we launched the archives. I wonder what WebWhacker is doing
to cause this?

cheers,

Chris

Automatic Zope Response wrote:
 
 Zope reported an error for:
   http://zope.nipltd.com/public/lists.html
 Error Type:  Error
 Error Value: Incorrect padding

 Traceback:
  Traceback (innermost last):
   File /mnt/data/2/zope/external/2-1-6/lib/python/ZPublisher/Publish.py, line 151, 
in publish
   File 
/mnt/data/2/zope/external/2-1-6/lib/python/Products/SiteAccess/ChangeBehaviors.py, 
line 228, in traverse
   File /mnt/data/2/zope/external/2-1-6/lib/python/AccessControl/User.py, line 433, 
in validate
 (Object: RoleManager)
   File /var/tmp/python/python-root/usr/lib/python1.5/base64.py, line 46, in 
decodestring
   File /var/tmp/python/python-root/usr/lib/python1.5/base64.py, line 32, in decode
 Error: Incorrect padding

 HTTP_USER_AGENT = Mozilla/4.0 (compatible; WebWhacker 4.0; Windows)
 PARENTS = [Folder instance at 88d4e10, Application instance at 869e048]
 PATH_INFO = /public/lists.html
 PATH_TRANSLATED = /public/lists.html
 REMOTE_ADDR = 127.0.0.1
 REQUEST_METHOD = GET
 RESPONSE = HTTP/1.0 204 No Content
 Server: Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) ZServer/1.1b1
 Date: Sun, 23 Jul 2000 05:12:21 GMT
 Connection: close
 Content-Length: 0
 SERVER_SOFTWARE = Zope/Zope 2.1.6 (source release, python 1.5.2, linux2) 
ZServer/1.1b1

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




Re: [Zope-dev] Security Strangeness

2000-07-24 Thread Chris Withers

Johan Carlsson wrote:
 First, you can't delegate the permissionto add and delete user except
 by assigning the user the role "manager".
 IMHO this is to limiting.

 Second, if you give a user the permission to Change Persmissions, that
 user can change permissions that she doesn't have the right to manage
 in the first place. In that way she can upgrade here permissions.
 That's no good.

This is a little inflexible isn't it?

Chuck it in the collector I guess... :S

cheers,

Chris

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




[Zope-dev] System error

2000-07-24 Thread Andre Schubert

Hi,

I have a problem on deleting a folder.
I have made a product, which has some bugs. After i have added it to a
Folder named test i can't open the Folder and a can't delete the Folder
test because a System Error occurs.

The following Error message occurs:

!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151,
in publish
  File
/usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py, line
227, in traverse
  File /usr/lib/python1.5/site-packages/ZPublisher/BaseRequest.py, line
502, in old_validation
  File /usr/share/zope/lib/python/ZODB/Connection.py, line 396, in
setstate
SystemError: Failed to import class ImplicitAcquirerWrapper from module
Acquisition

--

Who can help to delete this Folder.

mfg as


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




[Zope-dev] mxODBC, ExtensionClass.Missing and Results puzzle???

2000-07-24 Thread Jay, Dylan

I've compiled up a mxODBC DA for use under windows so that multi-threaded
odbc drivers can be me used in a  multi-threaded way.

This works good so far except for one aspect. NULL values are being returned
as "None" objects. This seems reasonable but it is not how ZODBC returns
results. It will return a NULL as a "Missing" object (whatever that is?). I
can't find any documentation to find out what this object is or means. 
My biggest problem is that the UserDB product doesn't like None objects
being return for passwords. It seemed to handle the Missing objects fine.

To add to the mystery I noticed that the result object returned by an sql
method connected to first ZODBC and then ZmxODBC was of two different types.
ZmxODBC was returning a ZRDB.Results object. ZODBC was returning a
ZRDB.RDB.DatabaseResults object. The latter is apparently a "Class for
reading RDB files" but as this is the only documentation I can find I have
no idea how it differs from the ZRDB.Results class or rather why ZODBC
returns it and thus has NULL's replaced Missing objects.

Can anyone shed any light on any of this?


Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 5, 15 Talavera Road   FAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile:+61 409 606 171
AUSTRALIA   ICQ:   520341


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




[Zope-dev] Old broken product...

2000-07-24 Thread * Lucky

After a modification of the python source code, my product
remains broken with the same error... No modification seems
to be made to the line which leads to the error. Does
somebody know why and how to cope with this ?

___
Vendez tout... aux enchères - http://www.caraplazza.com




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Chris Withers wrote:
 
 Does anyone know what this means?
 
 The page views fine for me and this is the first error of this type I've
 seen since we launched the archives. I wonder what WebWhacker is doing
 to cause this?

Well... you can get an incorect padding error like this:

 import binascii
 binascii.a2b_base64('a ') 

Traceback (innermost last):
  File "stdin", line 1, in ?
binascii.Error: Incorrect padding

You can also get by adding arbitrary non-space characters to the end of
a basic authentication string.

Here's the line that'll be causing the problem.

(Zope 2.2final, lib/python/AccessControl/User.py line 441)

  name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))

My guess is that the argument "auth" passed to validate() has some
trailing characters. Either that, or WebWhacker passed just "Basic " as
an auth string.

Maybe log the auth argument and re-whack your site. (Warning... this is
certainly a nasty security hole. Be sure to get rid of the logging
afterwards.)

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Steve Alexander wrote:
 My guess is that the argument "auth" passed to validate() has some
 trailing characters. Either that, or WebWhacker passed just "Basic " as
 an auth string.

Yuk, that sounds like a Zope bug. Collector time with patch? A judicious
string.strip should solve the problem, surely?

 Maybe log the auth argument and re-whack your site. (Warning... this is
 certainly a nasty security hole. Be sure to get rid of the logging
 afterwards.)

I didn't whack my site, I just got mailed the error...

Okay, own up, who tried to WebWhack the list archives?! ;-)

cheers,

Chris

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Chris Withers wrote:
 
 Steve Alexander wrote:
  My guess is that the argument "auth" passed to validate() has some
  trailing characters. Either that, or WebWhacker passed just "Basic " as
  an auth string.
 
 Yuk, that sounds like a Zope bug. Collector time with patch? A judicious
 string.strip should solve the problem, surely?

 from base64 import decodestring
 from string import *
 auth="Basic"
 tuple(split(decodestring(split(auth)[-1]), ':', 1))
Traceback (innermost last):
  File "stdin", line 1, in ?
  File "/usr//lib/python1.5/base64.py", line 46, in decodestring
decode(f, g)
  File "/usr//lib/python1.5/base64.py", line 32, in decode
s = binascii.a2b_base64(line)
binascii.Error: Incorrect padding

The problem is in the expression "split(auth)[-1]". If the auth string
contains no space but at least one character, then split(auth)[-1] ==
split(auth)[0].

Perhaps what we should do is change this
(lib/python/AccessControl/User.py, line 438)

# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
name,password=tuple(split(decodestring(split(auth)[-1]), ':',
1))

to this:

# Only do basic authentication
if lower(auth[:6])!='basic ' and len(auth)6:
return None
name,password=tuple(split(decodestring(split(auth)[-1]), ':',
1))

or even:

# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
name,password=tuple(split(decodestring(auth[6:]), ':', 1))

(Need to check the last one with the RFC -- are you allowed anything
else other than "basic blarglebase64usernamepassword" ? )


  Maybe log the auth argument and re-whack your site. (Warning... this is
  certainly a nasty security hole. Be sure to get rid of the logging
  afterwards.)
 
 I didn't whack my site, I just got mailed the error...

Well... try whacking yourself and see what the whacker actually sends --
we're just guessing until then.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Chris Withers wrote:
 
 Steve Alexander wrote:
  My guess is that the argument "auth" passed to validate() has some
  trailing characters. Either that, or WebWhacker passed just "Basic " as
  an auth string.
 
 Yuk, that sounds like a Zope bug. Collector time with patch? A judicious
 string.strip should solve the problem, surely?

PS:

A string.upper wouldn't go amiss either, then earlier versions of
Mozilla that send an incorrectly capitalised 'Basic' might also be
allowed to authenticate with Zope :-)

cheers,

Chris

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




Re: [Zope-dev] Python 2.0

2000-07-24 Thread Jeff K. Hoffman

On Mon, 24 Jul 2000, Toby Dickenson wrote:

 On Fri, 21 Jul 2000 16:29:23 +0100, Toby Dickenson
 [EMAIL PROTECTED] wrote:
 
 This problem goes away if I don't compile python with garbage
 collection support. I guess I shouldn't be suprised.

Python 2.0? Garbage collection? Huh? What?

Last I checked, Python 1.5.2 was the newest stable release, with 1.6 being
under development. 1.7 due out by the end of the year, and Python 3000
being a redesign from the ground up.

Is there a 2.0 somewhere that I don't know about?

 Toby Dickenson
 [EMAIL PROTECTED]

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.com/


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




Re: [Zope-dev] Python 2.0

2000-07-24 Thread Jeff K. Hoffman

On Tue, 25 Jul 2000, Anthony Baxter wrote:

 What was once known as 1.6 is now called 2.0.
 
 There's probably more at the pythonlabs website.
 ah, here we go
 
 http://www.pythonlabs.com/tech/python2.html
 
 
 Note that the release is currently held up for some reasons to do
 with the python team all leaving CNRI and going to BeOpen - sounds
 like some sort of licensing or copyright ugliness.
 
 The python development's moved to sourceforge in the meantime, so you
 can track it in CVS if you feel so inclined.

Ahh hah. I had looked on python.org and found nothing, but this explains
why.

That clears it up. Thanks.

 Anthony

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.com/


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




[Zope-dev] ts_regex.gsub() doesn't work with compiled expressions

2000-07-24 Thread Steve Alexander

I'm trying to do the following:

 import ts_regex
 Z=ts_regex.compile('\(^\|[^%]\)%Z')
 ts_regex.gsub(Z, '\\1BAR', '%Z foo %Z')
Traceback (innermost last):
  File "stdin", line 1, in ?
  File "/usr/local/zope/SiteBox/lib/python/ts_regex.py", line 109, in
__call__
try: return apply(self._f, args, kw)
  File "/usr//lib/python1.5/regsub.py", line 38, in gsub
regs = prog.regs
AttributeError: regs

This works just fine if you don't compile the regex first:
 import ts_regex
 ts_regex.gsub('\(^\|[^%]\)%Z', '\\1BAR', '%Z foo %Z')
'BAR foo BAR'

The problem is that a ts_regex.compile instances do not expose the
attribute "regs" that the method gsub of lib/python1.5/regsub.py
requires.

I don't know the details of what is thread-safe and what is not in the
regsub module, so I won't hazard a patch here. Perhaps overriding
__getattr__ to return "regs" safely would help? I don't know.

I can also get it to work if I pass in the unwrapped compiled regular
expression:

 ts_regex.gsub(Z._r, '\\1BAR', '%Z foo %Z')
'BAR foo BAR'

Is doing this in Zope threadsafe?

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] DateTime formatting with strftime: patch

2000-07-24 Thread Steve Alexander

This is now in the Collector, as bug number 1457.

  http://classic.zope.org:8080/Collector/1457/view

Incidentally, http://classic.zope.org:8080/Collector/1409/view is
another patch to the same problem. However, that patch doesn't address
the root of the problem, which is that DateTime instances are associated
with a particular timezone, and users expect all formatting to occur
with respect to that particular timezone. The fix in collector #1409
makes all strftime formatting happen in the local timezone of the Zope
installation, not the timezone given in the particular DateTime instance
being formatted.


Steve Alexander wrote:
 
 Here's a working patch to make formatting of a DateTime instance work as
 generally expected, when you use
 
   dtml-var "_.DateTime()" fmt="%d %G %z"
 
 or whatever.
 
 It could be made more efficient by compiling the two regex (regexes?
 regexen? regular expressions :-) ) into class attributes.

There's a problem with this optimisation -- see my other posting to
zope-dev today.
 
--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Chris Withers wrote:
 
 Chris Withers wrote:
 
  Steve Alexander wrote:
   My guess is that the argument "auth" passed to validate() has some
   trailing characters. Either that, or WebWhacker passed just "Basic " as
   an auth string.
 
  Yuk, that sounds like a Zope bug. Collector time with patch? A judicious
  string.strip should solve the problem, surely?
 
 PS:
 
 A string.upper wouldn't go amiss either, then earlier versions of
 Mozilla that send an incorrectly capitalised 'Basic' might also be
 allowed to authenticate with Zope :-)

It is already there in 2.2final: if lower(auth[:6])!='basic ':
^

RFC 1945 has it as "Basic".

http://www.freesoft.org/CIE/RFC/1945/67.htm

I also checked, and this version of the patch *should* work:

# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
name,password=tuple(split(decodestring(strip(auth[6:])), ':',
1))


The "strip" is in there just in case a client responds with

"basic  base64blah" instead of
"basic base64blah".

However, it still doesn't work if the client sends something bogus --
the tuple will only be one item long, rather than two.

If you want to be protected against bogosity in basic authentication,
you can stick with the original line, and put it inside a try-except
block:

# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
try:
name,password=\
tuple(split(decodestring(split(auth)[-1]), ':', 1))
except:
# Bogus basic authentication. Perhaps log something?
return None

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Steve Alexander wrote:
snip excellent patches

Well, I think Brian Lloyd'd have to make the call...

Nice work though, 2 for 2 on the day, that's pretty good going, are DC
paying you yet? ;-)

cheers,

Chris

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




[Zope-dev] Wiki apps other than ZWiki 0.6.1

2000-07-24 Thread Geoff Gardiner

Perhaps more suited to this list than Zope, so I'll ask again...

I've been happily adding ManagedMode functionality to ZWiki 0.6.1 but wonder
what other Wiki-on/in-Zope technologies there are that I should consider
working with. I'm looking for cataloging, graphics upload, differencing,
rename and delete and don't really want to have to work on them myself if
these have been done or are soon to be done.

Searching on 'Wiki' appears to be useless, since the word crops up in so
many contexts, hence my appeal for information.

Thank you,
Geoff Gardiner


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




[Zope-dev] ZODB : mystery

2000-07-24 Thread jdiebold

Hi,


I've a question : How could I store and retrieve object in the ZoDB ?
I know that I must create a persistent object. 

thanks in advance .

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




Re: [Zope-dev] Zope 2.2.0 and SiteAccess 2.0.0b2 -- doesn't work?-- FIXED

2000-07-24 Thread Michael Monsen

I'm sorry I didn't post back to the list like I said I would.

The issue I was having with Zope 2.2.0 and SiteAccess 2.0.0b2 has
been resolved.  In short, it was user error.

Being new to Zope I didn't realize that the superuser account has
special status.  I thought it was just the name of the default user that
gets created when you install Zope.
When I created the SiteRoot object I was using the superuser
account, and Zope was complaining that the superuser cannot be the owner
of the object.  SiteAccess 2.0.0b3 fixes the error reporting so that it
doesn't cover up the error with a generic "this folder already has a
SiteRoot object."  Once I saw the real error I easily resolved it by
creating a new account and using that to add the SiteRoot object.

Thanks again to those who helped me out.  I am learning more and
more about Zope, slowly but surely.

--
Michael Monsen   | Due to lack of interest,
[EMAIL PROTECTED] |next week has been cancelled.
http://www.xmission.com/~phydoux |


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




Re: [Zope-dev] ZODB : mystery

2000-07-24 Thread Chris Withers

Every time you create a Zope object, such as a DTML document or Folder,
it gets stored in the ZODB. Perhaps you could be a little more specific
in your aims?

cheers,

Chris

[EMAIL PROTECTED] wrote:
 
 Hi,
 
 I've a question : How could I store and retrieve object in the ZoDB ?
 I know that I must create a persistent object.
 
 thanks in advance .
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )

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




Re: [Zope-dev] Zope 2.2.0 and SiteAccess 2.0.0b2 -- doesn't work?-- FIXED

2000-07-24 Thread Chris Withers

Michael Monsen wrote:
 When I created the SiteRoot object I was using the superuser
 account, 

I thought this wasn't supposed to be possible in the first place?!

Chris

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




RE: [Zope-dev] Request for amplification on new Product permissions API.

2000-07-24 Thread Brian Lloyd

  
  Are you calling:
  
  Globals.default__class_init__(MyBasketClass)
  
  on your Basket class? This is (poorly documented but)
  necessary for permissions declared in __ac_permissions__
  to be correctly initialized.
 
 Should I have this in Squishdot too?
 
 Chris

Yes - basically any class that defines *or inherits from a 
class that defines* permissions should do this to make sure 
that the permissions along the inheritance heirarchy are 
cobbled together correctly at class initialization time.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 



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




Re: [Zope-dev] Zope bug (w/ patch): hard coded Unix separator in special_dtml.py

2000-07-24 Thread Chris Withers

Yves-Eric Martin wrote:
 Does that sound right to you? If no one disagrees, I'll fill a bug
 report w/ patch in the Collector.

Sounds great, is it in the collector yet?

Chris

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




Re: [Zope-dev] getting request variables values

2000-07-24 Thread Chris Withers

Steve Alexander wrote:
   def __getitem__/__getattr__ from HTTPRequest.py:
 
 """Get a variable value
 
 Return a value for the required variable name.
 The value will be looked up from one of the request data
 categories. The search order is environment variables,
 other variables, form data, and then cookies.
 

Doesn't mention URL parameters on there, does it ;-)
I wonder where they figure in?

 The code certainly doesn't stick exactly to its docstring. The "other"
 dictionary is seached first, then URLx where x is a number.
 Then "environ" is searched, but *only* if the key begins with 'HTTP_' or
 is in the following list:

This looks really messy. I bet it tallies up with what's in the Zope
DTML Reference near the REQUEST description in more ways than with the
docstring...

Shane wrote:
 I think the issue is that environ may include the Zope process
 environment variables, such as PATH, LD_LIBRARY_PATH, CVSROOT, USER,
 etc.  Publish.publish_module() appears to pass in os.environ .  That's
 just a quick analysis, though.

Hurm, there's still the order issue. And that fact that they're visible
if you do dtml-var REQUEST.

Wow, should this go in dev.zope.org or the Collector (phrased for
collector, but that can change):

The handling of variable in REQUEST is a bit messy. The following should
all behave the same, in terms of the order variables are searched and
what variables are included:

- dtml-var REQUEST

- __getitem__ in HTTPRequest.py

- variables that appear in the DTML/other type of method namespace

Should the patch to HTTPRequest.py below be included into Zope?

 """ #"
 +   environ=self.environ
 +   if environ.has_key(key) and (not hide_key(key)):
 +   return environ[key]
 other=self.other
 if other.has_key(key):
 if key=='REQUEST': return self
 return other[key]

if key[:1]=='U' and URLmatch(key) = 0:
path = self._script + self._steps
n = len(path) - atoi(key[3:])
if n  0:
raise KeyError, key
URL=join([other['SERVER_URL']] + path[:n], '/')
other[key]=URL
self._urls = self._urls + (key,)
return URL

-   if isCGI_NAME(key) or key[:5] == 'HTTP_':
-   environ=self.environ
-   if environ.has_key(key) and (not hide_key(key)):
-   return environ[key]
-   return ''

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




Re: [Zope-dev] Request for amplification on new Product permissions API.

2000-07-24 Thread Chris Withers

Brian Lloyd wrote:
 Yes - basically any class that defines *or inherits from a
 class that defines* permissions should do this to make sure
 that the permissions along the inheritance heirarchy are
 cobbled together correctly at class initialization time.

I'm sure someone said recently that this got called autmoatically for
you if you forgot...

Hmm, Squishdot's worked fine without it AFAIK up until now.

Is this only really required in 2.2, or even then not entirely?

cheers,

Chris

PS: It's not ZClass basses or something else that require it? Just
cheking I'm not being too dense...

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Martijn Pieters

On Mon, Jul 24, 2000 at 05:22:25PM +0100, Steve Alexander wrote:
 Chris Withers wrote:
  A string.upper wouldn't go amiss either, then earlier versions of
  Mozilla that send an incorrectly capitalised 'Basic' might also be
  allowed to authenticate with Zope :-)

Heh, and allow Mozilla to gain the bug again? Zope wan't the only server Moz
broke on though..

 It is already there in 2.2final: if lower(auth[:6])!='basic ':
 ^
 
 RFC 1945 has it as "Basic".
 
 http://www.freesoft.org/CIE/RFC/1945/67.htm

RFC 1945 says one paragraph before that that the header should be matched
case-insensitively. That was what the Moz bug was all about.

 I also checked, and this version of the patch *should* work:
 
 # Only do basic authentication
 if lower(auth[:6])!='basic ':
 return None
 name,password=tuple(split(decodestring(strip(auth[6:])), ':',
 1))
 
 
 The "strip" is in there just in case a client responds with
 
 "basic  base64blah" instead of
 "basic base64blah".

The split already takes out the whitespace. No need to strip.

 However, it still doesn't work if the client sends something bogus --
 the tuple will only be one item long, rather than two.

That is a bug in the client then.

 If you want to be protected against bogosity in basic authentication,
 you can stick with the original line, and put it inside a try-except
 block:
 
 # Only do basic authentication
 if lower(auth[:6])!='basic ':
 return None
 try:
 name,password=\
 tuple(split(decodestring(split(auth)[-1]), ':', 1))
 except:
 # Bogus basic authentication. Perhaps log something?
 return None

This would mask bugs in clients. Not a good idea.

-- 
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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Martijn Pieters wrote:
 
 RFC 1945 says one paragraph before that that the header should be matched
 case-insensitively. That was what the Moz bug was all about.

Thanks for the clarification.

  # Only do basic authentication
  if lower(auth[:6])!='basic ':
  return None
  name,password=tuple(split(decodestring(strip(auth[6:])), ':',
  1))
 
 
  The "strip" is in there just in case a client responds with
 
  "basic  base64blah" instead of
  "basic base64blah".
 
 The split already takes out the whitespace. No need to strip.

There's a base64.decodestring() between the strip and the split.

Leading and/or trailing spaces make base64 strings invalid.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Martijn Pieters

On Mon, Jul 24, 2000 at 08:36:26PM +0200, Martijn Pieters wrote:
  I also checked, and this version of the patch *should* work:
  
  # Only do basic authentication
  if lower(auth[:6])!='basic ':
  return None
  name,password=tuple(split(decodestring(strip(auth[6:])), ':',
  1))
  
  
  The "strip" is in there just in case a client responds with
  
  "basic  base64blah" instead of
  "basic base64blah".

Oops. You took out the strip. But IIRC, base64 does a strip as well.

-- 
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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Martijn Pieters wrote:
 
 Oops. You took out the strip. But IIRC, base64 does a strip as well.

Not according to the original error which started this thread :(

Chris

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Steve Alexander wrote:
 Martijn Pieters wrote:
 
  Oops. You took out the strip. But IIRC, base64 does a strip as well.
 
 So it does!
 
  from base64 import *
  s = encodestring('foo')
  decodestring(s)
 'foo'
  decodestring(s+' ')
 'foo'
  decodestring(' '+s)
 'foo'

So what was causing the original error then?

Chris

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Chris Withers

Martijn Pieters wrote:
  So what was causing the original error then?
 
 Buggy client?

If so, surely Zope should just return an Unauthorized error rather than
exposing its internals?!

If you're a server and the client is buggy, tell it so, but don't look
like you just screwed up really badly ;-)

cheers,

Chris

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Martijn Pieters

On Mon, Jul 24, 2000 at 07:57:00PM +0100, Chris Withers wrote:
 Martijn Pieters wrote:
   So what was causing the original error then?
  
  Buggy client?
 
 If so, surely Zope should just return an Unauthorized error rather than
 exposing its internals?!
 
 If you're a server and the client is buggy, tell it so, but don't look
 like you just screwed up really badly ;-)

Oops. Speed read fumble. 

We partly agree, and this is tricky. Unauthorised is wrong, it should return a
Bad Request (or whatever the correct HTTP error is in this case). File a
patch! =)

-- 
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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Martijn Pieters

On Mon, Jul 24, 2000 at 07:57:00PM +0100, Chris Withers wrote:
 Martijn Pieters wrote:
   So what was causing the original error then?
  
  Buggy client?
 
 If so, surely Zope should just return an Unauthorized error rather than
 exposing its internals?!
 
 If you're a server and the client is buggy, tell it so, but don't look
 like you just screwed up really badly ;-)

I disagree. The client used is bad, this kind of error doesn't show often and
serves a purpose here; fix the client!

-- 
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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Chris Withers wrote:
 
 So what was causing the original error then?

string.split('basic')[-1] was returning 'basic'.

base64.decodestring('basic') causes an "Incorrect padding" error.

base64.decodestring('basic ') causes an "Incorrect padding" error too.

Martijn Pieters wrote:
 We partly agree, and this is tricky. Unauthorised is wrong, it should return a
 Bad Request (or whatever the correct HTTP error is in this case). File a
 patch! =)

I've attached a patch to lib/python/AccessControl/User.py. If there are
no suggestions of improvements, or complaints :-)  I'll stick it into
the Collector.

I looked over the RFC, and Bad Request seems to be the best response
code.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

*** lib/python/AccessControl/User.py.original   Mon Jul 24 20:31:40 2000
--- lib/python/AccessControl/User.pyMon Jul 24 20:51:33 2000
***
*** 438,444 
  # Only do basic authentication
  if lower(auth[:6])!='basic ':
  return None
! name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
  
  # Check for superuser
  super=self._super
--- 438,451 
  # Only do basic authentication
  if lower(auth[:6])!='basic ':
  return None
! try:
! name,password=\
! tuple(split(decodestring(split(auth)[-1]), ':', 1))
! except: # not a proper basic auth string
! request.response.setStatus(400)
! raise 'InternalError', request.response._error_html(
! "Internal Error",
! "Zope could not understand the Basic Authentication supplied.")
  
  # Check for superuser
  super=self._super



Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Martijn Pieters

On Mon, Jul 24, 2000 at 08:56:54PM +0100, Steve Alexander wrote:
 I've attached a patch to lib/python/AccessControl/User.py. If there are
 no suggestions of improvements, or complaints :-)  I'll stick it into
 the Collector.
 
 I looked over the RFC, and Bad Request seems to be the best response
 code.

Agreed.

 *** lib/python/AccessControl/User.py.original Mon Jul 24 20:31:40 2000
 --- lib/python/AccessControl/User.py  Mon Jul 24 20:51:33 2000
 ***
 *** 438,444 
   # Only do basic authentication
   if lower(auth[:6])!='basic ':
   return None
 ! name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
   
   # Check for superuser
   super=self._super
 --- 438,451 
   # Only do basic authentication
   if lower(auth[:6])!='basic ':
   return None
 ! try:
 ! name,password=\
 ! tuple(split(decodestring(split(auth)[-1]), ':', 1))
 ! except: # not a proper basic auth string
 ! request.response.setStatus(400)
 ! raise 'InternalError', request.response._error_html(
 ! "Internal Error",
 ! "Zope could not understand the Basic Authentication supplied.")
   
   # Check for superuser
   super=self._super

Would it be a good idea to add the header? And let's make that a less generic
except clause, we don't want to mask Zope bugs =)

-- 
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-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Shane Hathaway

Steve Alexander wrote:
 
 Chris Withers wrote:
 
  So what was causing the original error then?
 
 string.split('basic')[-1] was returning 'basic'.
 
 base64.decodestring('basic') causes an "Incorrect padding" error.
 
 base64.decodestring('basic ') causes an "Incorrect padding" error too.
 
 Martijn Pieters wrote:
  We partly agree, and this is tricky. Unauthorised is wrong, it should return a
  Bad Request (or whatever the correct HTTP error is in this case). File a
  patch! =)
 
 I've attached a patch to lib/python/AccessControl/User.py. If there are
 no suggestions of improvements, or complaints :-)  I'll stick it into
 the Collector.

Mention in the collector that the padding that's incorrect doesn't
refer to spaces, but to equal signs.  The ASCII representation of
base64 is in sets of 4 characters, which translate to 3 bytes.  If the
ASCII data is of a length that doesn't evenly divide by 4, the string
is supposed to end with equal signs as "padding".  If it doesn't,
you'll get the "incorrect padding" error.

Incidentally, try the following:

base64.decodestring('basic===')

This products gibberish, but it does work. :-)

Shane

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




Re: [Zope-dev] Incorrect Padding?

2000-07-24 Thread Steve Alexander

Martijn Pieters wrote:
 
 On Mon, Jul 24, 2000 at 08:56:54PM +0100, Steve Alexander wrote:
  I've attached a patch to lib/python/AccessControl/User.py. If there are
  no suggestions of improvements, or complaints :-)  I'll stick it into
  the Collector.
 
  I looked over the RFC, and Bad Request seems to be the best response
  code.
 
 Agreed.
 
  *** lib/python/AccessControl/User.py.original Mon Jul 24 20:31:40 2000
  --- lib/python/AccessControl/User.py  Mon Jul 24 20:51:33 2000
  ***
  *** 438,444 
# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
  ! name,password=tuple(split(decodestring(split(auth)[-1]), ':', 1))
 
# Check for superuser
super=self._super
  --- 438,451 
# Only do basic authentication
if lower(auth[:6])!='basic ':
return None
  ! try:
  ! name,password=\
  ! tuple(split(decodestring(split(auth)[-1]), ':', 1))
  ! except: # not a proper basic auth string
  ! request.response.setStatus(400)
  ! raise 'InternalError', request.response._error_html(
  ! "Internal Error",
  ! "Zope could not understand the Basic Authentication supplied.")
 
# Check for superuser
super=self._super
 
 Would it be a good idea to add the header?

I don't quite follow.

 And let's make that a less generic
 except clause, we don't want to mask Zope bugs =)

Ok.

I was thinking of just using HTTPResponse.badRequestError().
However, it has a "name" argument, and I don't quite understand how it
is meant to be used.

def badRequestError(self,name):
self.setStatus(400)
if regex.match('^[A-Z_0-9]+$',name) = 0:
raise 'InternalError', self._error_html(
"Internal Error",
"Sorry, an internal error occurred in this Zope
resource.")

raise 'BadRequest',self._error_html(
"Invalid request",
"The parameter, em%s/em, " % name +
"was omitted from the request.p" + 
"Make sure to specify all required parameters, " +
"and try the request again."
)

So, any of name="FOO", name="123", name="FOO123", name="" produces an
internal error; name="foo", name="Foo", name="foo123" produces a bad
request.

What's the rationale?


Should I just use this, then?

  request.response.badRequestError(name="0") # internal error


--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

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




[Zope-dev] Online Docs

2000-07-24 Thread Kapil Thangavelu

I've been playing around with the ACS a bit lately. Its got one feature
which i would desparately like to see in zope. namely that every ACS
server is self documenting with regards to all of its methods. to see it
in an action check out 
http://www.arsdigita.com/doc/procs

this documentation is generated on startup of the server for all
available functions which make a call to a function proc_doc.

i looked at the existing python code auto documentors and the one i saw
that looked the best was
http://www.lfw.org/python (at the bottom of the page)
for documenting live objects. it could use some modifiying to generate
zope objects which would get cataloged and also to include a
functions/modules source.

does anyone think that this would be a good resource to have in zope.
searchable docs for developers on their servers of all the Zope Internal
Python Code and the Code for all the installed Products?


Kapil

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




Re: [Zope-dev] Zope bug (w/ patch): hard coded Unix separator in special_dtml.py

2000-07-24 Thread Yves-Eric Martin

On Mon, 24 Jul 2000 19:23:56 +0100
Chris Withers [EMAIL PROTECTED] wrote:

 Sounds great, is it in the collector yet?

Yes, I filled a bug report yesterday. It's under number 1453.


-- 
Yves-Eric Martin
Digital Garage Inc.
[EMAIL PROTECTED]

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




Re: [Zope] ZEO

2000-07-24 Thread Jørgen Skogstad

Martijn Pieters wrote:
 
 On Fri, Jul 21, 2000 at 12:46:11PM +0200, Sven Hohage wrote:
  is the filesize of the Zope Storage Server also  limited to 2 GB?
 
 If you are running on a default Linux filesystem, the answer is yes. ZODB
 FileStorage isn't limited to 2GB, it's the filesystem that can't handle larger
 files that is the problem.

Oh .. ok .. but then; if you run on Solaris which removed
that limitation some years ago .. we're in the clear!? ;)

-- 


Med vennlig hilsen,
Jørgen Skogstad


  /\System Specialist
 \\ \   
\ \\ /  Sun Microsystems AS
   / \/ / / Gjerdrums vei 12  
  / /   \//\N-0486 Oslo, NORWAY  
  \//\   / /  
   / / /\ / Phone:+ 47 22 02 39 00 
/ \\ \  Cellular: + 47 92 41 30 23
 \ \\   Fax:  + 47 22 02 39 99  
  \/EMail:[EMAIL PROTECTED]
Web:  www.sun.no  

BTW; Opinions formed by myself in informal mailings are 
 mine and not of my employer.

___
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] Sybase in Remote Machine

2000-07-24 Thread Herbert Kwong

Hello,

I have SuSE 6.4, Zope 2.1.6, Sybase 11.9.2 and SybaseDAv2 in my
machine.  It works fine.  However, is it possible to make my local
Zope create a connection to a remote Sybase server?  As I would like
to separate the Sybase Database from the Apache/Zope server.  Thanks.

Regards,
Herbert Kwong
[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] ODBC SQL DA

2000-07-24 Thread Curtis Maloney

Greetings,

I have been digging about for a couple of weeks, and either I'm missing 
something (most likely :) or where there once was a mxODBC adapter, there is 
no longer?

I am going to need to dig into an ODBC based DB (DataFlex), for which we 
have an ODBC interface.  The db was not my choice, so there's no option there.

However, I saw a few references to various ODBC DAs in the product lists.  
With ODBC supposedly being a 'generic' interface, why does each different DB 
require a different DA?  Is this just tailoring the DA for that specific DB?  
In which case, would it be possible to build a "Generic" ODBC DA?

Fortunately, this is not a priority project, but I would appreciate some 
details in this matter.

Oh well, back to the archives.

Have a better one,
Curtis Maloney

dtml-var standard_work_disclaimer

___
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] [FAQTS] Zope Knowledge Base Update -- July 24th, 2000

2000-07-24 Thread Fiona Czuczman


Hi Guys,

Here are the latest entries to be entered into http://zope.faqts.com

I'm sending this out now so list subscribers get an idea how the 
summaries work, if they haven't seen the python summaries I mentioned in 
the thread

"[Zope] FAQ Wiki and What happend @ O'Reilly Conference" from earlier 
today.

regards,

Fiona Czuczman


## New Entries #


-
installing Zope 2.2.0b4 via CVS
http://www.faqts.com/knowledge-base/view.phtml/aid/4845
-
Fiona Czuczman
T.J. Mannos

I'd just like to announce that I've installed Zope 2.2.0b4 via CVS and 
done a complete run-through of my site.  It seems to work flawlessly 
now, and I've gone ahead and installed it on my main port for a trial 
period.  I hope to launch the site using the final version of 2.2.0 (so 
hurry up, developers!!)  :)

Anyway, upgrading wasn't without its problems, so let me share with you 
some tips that will help those in my situation upgrade more 
successfully.  Note that I've skipped some steps, with the assumption 
that since your upgrading an existing Zope version, you already know how 
to install Zope.

Directories cited:
Original installation:
/usr/Zope-2.1.6
Fresh install of 2.1.6 (for diff'ing changes I made in the python
modules):
/temp/Zope-2.1.6
New CVS install of Zope-2.2.0b4:
/usr/local/Zope2 (I moved it to the /usr/local volume because I 
had more space there).

Products installed:
SQLSession
SiteAccess
TinyTable
ZMySQLDA
(your product list may vary)

FIRST, I like to hack the source a lot.  I have my own special comment 
tags, such as !--#c ... -- instead of dtml-comment ... 
/dtml-comment, and I have my own special dtml-var modifier, 
js_friendly, which quotes all special characters so I can use them in 
JavaScript code.  On a tip from Shane, I started using CVS to download 
the Zope source code so that it would merge the changes made in each 
upgrades with the changes I've made to the source.  (Do a search for 
"CVS" on Zope.org).  However, this was my first CVS, so I still needed 
to bring over the changes I'd previously made. So...

cd /usr/local/Zope2
diff -rc /temp/Zope-2.1.6/lib/python /usr/Zope-2.1.6/lib/python
MyChanges.diff
patch -p3 MyChanges.diff

NOTE: Results may vary.

By the way, in case you don't want to mess around with CVS (or you're 
like me and can't figure out how it works), the above commands should 
achieve the same effect, although you might get a few failed hunks and 
have to fix them manually.  If you don't modify the Zope source, you can 
skip this step.

SECOND, I had all my data, external methods, and installed products on 
my old installation.  I didn't want to lose them.  Now, don't be tempted 
to just copy all your Products over from the lib/python/Products folder. 
Some of them, such as SiteAccess and SQLSession, if you have them, WON'T 
WORK. (Furthermore, they'll break your installation, and you won't even 
be able to get to a management screen).  Here's what you do:

1. Back up your new var directory (in case something goes terribly 
wrong) and copy the old data over.
cd /usr/local/Zope2
mv var var.bak
cp -R /usr/Zope-2.1.6/var .

2. Copy your external methods over.
cp -R /usr/Zope-2.1.6/Extensions

3. Copy *some* (not all) of your Products over.
cd lib/python/Products
cp -R /usr/Zope-2.1.6/lib/python/Products/TinyTable .
cp -R /usr/Zope-2.1.6/lib/python/Products/ZMySQLDA .

4. Start Zope (you may have to modify the startup script and the
superuser password) and load the management interface.  Delete all your
SiteRoots and SQLSessions.  You'll have to re-create them.

5. If you're like me, you created all your 2.1.6 objects using the
superuser account.  You can't do that in 2.2.0.  So, go to your 
acl_users folder and create a new account having Manager and Owner 
privileges.

6. Download and install new versions of SQLSession, SiteAccess, and
possibly ZMySQLDA, if you have it.
(Be warned, though, you may have to re-create all of your 
database connections and SQL methods!)

7. Re-start Zope and log in as the new account you just created.  
Take ownership of your root directory.  (Click "Ownership" tab, then 
"Take Ownership").

8. Re-create your SQLSessions and SiteRoots.  Check your database 
folder to make sure your SQL sessions are all intact.  (If not, you have 
no sympathy from me.  I had to re-create all 40 of mine when I tried 
beta 2).

9. Check for bugs -- I'm sure you'll find plenty!  If you're getting 
a lot of Unauthorized errors using external methods, check all your 
external methods and make sure each class has the property
"__allow_access_to_unprotected_subobjects__" set equal to "1".  For
instance, I had a bunch of simple objects 

[Zope] zope 2.2.0 simply dies

2000-07-24 Thread Andy Pahne


I have a Zope-2.2.0 installation running on a Redhat 6.0 Linux Box. It
simply dies sometimes. Three times in the last 72 hours?!?

There's only DCOracle and ZOracleDA installed, nothing more. I cannot see
any other problems on the machine and it does not have that much load.

Is there a solution? Has anybody had the same problem?

Andy Pahne
[EMAIL PROTECTED]

net22 GmbH
Bad Meinberger Strasse 1
32760 Detmold
Tel.: 05231 - 580 640



___
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] Zope 2.2 installation error....missing header files (?)

2000-07-24 Thread Felipe E Barousse Boue

I'm trying to build Zope 2.2 from the sources in a RedHat Linux 6.1 box
(which has Gnome-Helixcode intalled as a GUI).

The following happens after "python w_pcgi.py" executed as root,
nevertheless other things do build, compile and install ok. Obviously
Zope is not finding some include files.

What would be the best approach to solve this:

Thanks in advance, all help and suggestions are appreciated.

Ed

P.D: I know I could use the pre-compiled Zope distribution.  I prefer
and need to use sources.

[root@server Zope-2.2.0-src]# python w_pcgi.py

--

Building the PCGI wrapper
./configure
loading cache ./config.cache
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking MACHDEP... linux2
checking for inet_addr in -lnsl... (cached) yes
checking for socket in -lsocket... (cached) no
checking for ANSI C header files... (cached) yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for unistd.h... (cached) yes
checking for syslog.h... (cached) yes
checking for working const... (cached) yes
checking for pid_t... (cached) yes
checking return type of signal handlers... (cached) int
checking for putenv... (cached) yes
checking for socket... (cached) yes
checking for strerror... (cached) yes
checking for union semun... no
creating ./config.status
creating Makefile
make
gcc -c -I. -I.  -DPCGI_WRAPPER_MAIN -DVERSION=\"2.0a5\" -DSTDC_HEADERS=1
-DHAVE_SYS_WAIT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYSLOG_H=1 -DRETSIGTYPE=int
-DHAVE_PUTENV=1 -DHAVE_SOCKET=1 -DHAVE_STRERROR=1  -DUNIX
-DOPT_NO_STDERR -DCLOSE_FDS ./pcgi-wrapper.c
In file included from /usr/include/errno.h:36,
 from pcgi.h:49,
 from ./pcgi-wrapper.c:51:
/usr/include/bits/errno.h:25: linux/errno.h: No existe el fichero o el
directorio
In file included from /usr/include/signal.h:294,
 from pcgi.h:56,
 from ./pcgi-wrapper.c:51:
/usr/include/bits/sigcontext.h:28: asm/sigcontext.h: No existe el
fichero o el directorio
In file included from /usr/include/bits/posix1_lim.h:126,
 from /usr/include/limits.h:30,
 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:117,
 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/syslimits.h:7,
 from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/limits.h:11,
 from /usr/include/bits/socket.h:31,
 from /usr/include/sys/socket.h:34,
 from pcgi.h:58,
 from ./pcgi-wrapper.c:51:
/usr/include/bits/local_lim.h:27: linux/limits.h: No existe el fichero o
el directorio
In file included from /usr/include/sys/socket.h:34,
 from pcgi.h:58,
 from ./pcgi-wrapper.c:51:
/usr/include/bits/socket.h:295: asm/socket.h: No existe el fichero o el
directorio
make: *** [pcgi-wrapper.o] Error 1
Traceback (innermost last):
  File "/usr/local/Zope-2.2.0-src/w_pcgi.py", line 111, in ?
if __name__=='__main__': main(sys.argv[0])
  File "/usr/local/Zope-2.2.0-src/w_pcgi.py", line 104, in main
import build_pcgi
  File "/usr/local/Zope-2.2.0-src/inst/build_pcgi.py", line 97, in ?
do('make')
  File "/usr/local/Zope-2.2.0-src/inst/do.py", line 104, in do
if i and picky: raise SystemError, i
SystemError: 512
[root@server Zope-2.2.0-src]#



___
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] all DTML Methods of current folder and subfolder

2000-07-24 Thread Jerome Alet

Hi,

now I'm at work I've tested your solution, read below.

On Sun, 23 Jul 2000, Dieter Maurer wrote:

 Jerome ALET writes:
   I want to do the following loop in Zope 2.1.6:
   dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], search_sub=1, obj_expr=XXX"
   where XXX is "not objectValues(['Folder'])"
   
   What is the correct syntax (', " and """ nesting) for that ?
 
 You can use:
   ... obj_expr='''not objectValues(['Folder'])''' ...
 or
   ... obj_epxr='not objectValues[\'Folder\']=' ...

Thanks to you, the syntax you gave me is accepted by the dtml parser, but
both

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'], 
  obj_expr='''not objectValues(['Folder'])''', 
  search_sub=1)"

and 

dtml-in "ZopeFind(this(), obj_metatypes=['Folder'],  
  obj_expr='not objectValues([\'Folder\'])',
  search_sub=1)"

have given me an empty list.

If I don't use obj_expr then I've got the full recursive list of all
subfolders from the current folder.

Knowing that the Zope Search Interface allows me to type this expression
in the obj_expr field and gives me the correct result, what could be the
problem I encounter ? 

I know I could build a correct list by putting a test inside my dtml-in
loop, but I really prefer to understand why this doesn't work, and all I
can say now is: I don't understand at all.

Does anyone have an idea about where the problem comes from ?

thanks in advance.

Jerome ALET - [EMAIL PROTECTED] - http://cortex.unice.fr/~jerome
Faculte de Medecine de Nice - http://noe.unice.fr - Tel: 04 93 37 76 30 
28 Avenue de Valombrose - 06107 NICE Cedex 2 - FRANCE
 


___
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] Sybase in Remote Machine

2000-07-24 Thread Holger Lehmann

Hi,

you should be able to specify the hostname/IP-Adress in the connection string.
It should be similar (or the same) to the MySQL DA connection string I am using:
database@hostname user password
where hostname being the (correct !) hostname as being seen from the database,
i.e. I have to use the fqdn to connect since my MySQL server sees me with the
full domainname. Furthermor you have to set the access rights in your database
correctly for the user to be able to connect from that host ...

- Holger

Am Mon, 24 Jul 2000 schrieb Herbert Kwong:
 Hello,
 
 I have SuSE 6.4, Zope 2.1.6, Sybase 11.9.2 and SybaseDAv2 in my
 machine.  It works fine.  However, is it possible to make my local
 Zope create a connection to a remote Sybase server?  As I would like
 to separate the Sybase Database from the Apache/Zope server.  Thanks.
 
 Regards,
 Herbert Kwong
 [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 )
-- 
---
catWorkX GmbH Hamburg
Dipl.-Ing. Holger Lehmann
Stresemannstr. 364
22761 Hamburg
Tel: +49 40 890 646-0
Fax: +49 40 890 646-66
mailto:[EMAIL PROTECTED]
http://www.catworkx.de
http://www.catbridge.de

___
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] problem with rss

2000-07-24 Thread Gerard Metrailler Jr.

Hello,

At 12:43 23.07.2000 +, Oliver Frommel wrote:
When I change the XML encoding type to ISO-8859-1 the problem still
persists.
I suspect that Zope silently sets the encoding type to something different.
My DTML method looks like this:

dtml-call "RESPONSE.setHeader('Content-Type', 'text/rdf')"
?xml version="1.0" encoding="ISO-8859-1"?
!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
 "http://my.netscape.com/publish/formats/rss-0.91.dtd"
rss version="0.91"

rdf:RDF
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns="http://my.netscape.com/rdf/simple/0.9/"

channel
...
/rdf:RDF

when I try to change the dtml-call to set the charset to ISO-8859-1 Zope
produces the "htmlhead/head" sequence again.
Any ideas on how to solve this problem?

Here is the code I use on a Squishdot server containing french text (with 
accents) which works fine:

---
dtml-call "RESPONSE.setHeader('content-type', 'text/rdf')"?xml 
version="1.0" encoding="ISO-8859-1"?
!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"
 "http://my.netscape.com/publish/formats/rss-0.91.dtd" 
rss version="0.91"
   channel
 titledtml-var "striptags(rss_title)" /title
 languagefr/language
 linkdtml-var site_url/link
 descriptiondtml-var "striptags(rss_description)"/description
.
   /channel
/rss
--

I believe an important point is to have the first line containing the 
dtml-call and the ?xml tags, without a line brake. This is used on a 
2.1.6 server with Squishdot 0.3.2.

Best regards,

Gérard Métrailler Jr.

Meeting Maker Inc.
... the intelligent choice for collaborative scheduling

Email: [EMAIL PROTECTED]
Web: http://www.meetingmaker.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] Re: Folderish objects and that BASE tag...

2000-07-24 Thread Chris Withers

"R. David Murray" wrote:
 
 On Mon, 17 Jul 2000, Chris Withers wrote:
  If you go to:
  http://my.zope/site/file.html/
 
  It will just return the DTML document :-)
 
  I wonder if it is redirecting to http://my.zope/site/file.html?
 
 I belive that it is returning:
 
 http://my.zope/site/file.html/index_html

I wonder what index_html that is then? :S

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] Datebug?

2000-07-24 Thread Chris Withers

Erich Seifert wrote:
 I had the same problem.
 The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(),
 year(), etc. do not. So I used them.

That's really horrible, I'd chuck it in the collector:
http://classic.zope.org:8080/Collector/

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] Zope and Mac

2000-07-24 Thread Chris Withers

Tom Scheidt wrote:
   icon = 'survey_icon.gif'
   )
  ^
  SyntaxError: invalid syntax

Looks like a line ending problem.

I'd download the .tar.gz, ftp it to your server and unpack it there
using tar.

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] Catalog contains items, but no results

2000-07-24 Thread Chris Withers

ed colmar wrote:
 This is a sample of a call that I make to the Catalog.
 
 base_url=self.site_url()
 self.Catalog.catalog_object(ob,base_url+'/Promoters/'+id)

I'd go to 2.2 and use the relevent bits of the Traversal interface for
all of this.

This whole area was notoriously problematic in the past (particularly
when things like SiteAccess come into play...)

I hope it's improved in 2.2. What's the 'correct' way to do this sort of
thing in 2.2? Where is it documented? ;-)

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] more catalog issues

2000-07-24 Thread Chris Withers

ed colmar wrote:
 Now my 2.2 catalog is giving me the problems were supposed to be bugs in
 zope (catalog) 2.1.5 and lower...  Inconsistancy, and missing indexes...???

I think there are still problems, check with Ethan Fremen, I think he's
been having fun with zope.org recently ;-)

 Is there a better syntax to use than 'catalog_object()'?

I think that's what you should be using, check out the interfaces Wiki
or 2.2 API help.

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] Datebug?

2000-07-24 Thread Peter Arvidsson

The most hirrible thing is that I chunked it in the collector but the Zope
developers rejected it! Apparently they seem to claim this is a feature. Feature or
not I can't use dates in forms because of this.

Peter

Chris Withers skrev:

 Erich Seifert wrote:
  I had the same problem.
  The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(),
  year(), etc. do not. So I used them.

 That's really horrible, I'd chuck it in the collector:
 http://classic.zope.org:8080/Collector/

 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] request for advice

2000-07-24 Thread Chris Withers

Patrick Lewis wrote:
 - I think it would be kind of interesting to use RCS for something like
 this on the backend. Build your methods in Zope to manipulate RCS, and
 then you get all the functionality of RCS "for free", and don't have to
 reinvent the wheel. You may run into problems with people not working with
 the most current document (I grab something from the database, Jill
 commits some changes to the same document, I make some changes, commit
 them, and destroy Jill's changes), but you would have that problem anyway
 as you initially described it.

Checkout the ZCVS Mixin class producty thing...

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] ZClass tutorial

2000-07-24 Thread Firestar

Hi, some thoughts(and frustrations) from a newbie having his "first time"
with Zope.

The documentation needs a lot of improvement. Since October last year,
there's still only ONE chapter(which is on ZClasses) in the Zope Developer's
Guide?? Are there any more chapters forthcoming? Or do i have to fork out
money and purchase the commercial version one?:( (And don't refer me to ZDP,
please...)

As for the "Zope Content Manager Guide", the examples are easy enough for
newbies to understand, but some of the screenshots accompanying the examples
are not 'consistent'. Perhaps DC can do some proof-reading there.

As for the DTML reference, i felt "lost" after reading a few sections. At
first, I thought it would be as easy as when i first read the PHP manual,
but somehow it doesn't seem 'user-friendly' enough. Maybe i will try it
again after i have read the rest of the Reference Guides.

I'm not an expert in web development, and could not really pick up new
"technologies" fast. But i still remembered learning PHP was not that
difficult; the manual is comprehensive, easy-to-use and tutorials
contributed by other websites really speed up my learning process.

I understand that Zope is a different thing altogether from a programming
language like PHP. I have yet to read up the Z SQL Methods User Guide, but
from the docs that i have read so far, i still feel lost as to where and how
to start building an 'advanced' website, e.g. converting my current
PHP/MySQL website to Zope. Someting is missing here... Perhaps the Reference
Guides could add more explanation and details, instead of just "click here
and you will see this" kind of instructions. OR give more complex
(real-world)examples, like building an e-commerce site(with sessions, cart 
authentication).

sigh...i foresee a rocky road ahead for this newbie to master the 'Zen' of
Zope. Hopefully it's not a long one:(

regards,
firestar


__
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup


___
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] An observation about manage_* methods

2000-07-24 Thread Chris Withers

albert boulanger wrote:
snip "go somewhere else after usign a manage_ method"

All good points, there's a thread on this on zope-dev right now.

I think this area is a good candidate for a new interface...

Maybe it should be discussed on the zope-dev thread and then have
somethign done on dev.zope.org?

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] Extra info: Can not import XML export

2000-07-24 Thread Marcin Kasperski

I made some experiments and found, that removing from the generated XML
file all tags named klass, state and object (together with their
contents) changes something - loading takes longer and is finished with
different error:

Error Type: AttributeError
Error Value: 'string' object has no attribute '__dict__'

I can not find word __dict__ anywhere in my xml file, maybe some of
Base64 encoded object contain such a thing...

My main suspicion is that I have problem with importing ZCatalog objects

--
Marcin.Kasperski | As a slow-witted human being I have a very small head
  @softax.com.pl | and I had better learn to live with it and to respect
Marcin.Kasperski | my limitations, rather than to try to ignore them.   
@bigfoot.com | (Dijskstra)

___
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] re: Meta Type Registry

2000-07-24 Thread Chris Withers

Andrew Kenneth Milton wrote:
 What about code like this ? While this one is explicitly searching for
 sub objects, I have code that searches the acquisition path for
 known meta_types, if someone else has a product with a meta_type I think
 is mine, then bad things can happen... Cataloging also might cause an issue.

This looks like a pretty nasty can of worms...

I like the idea of a meta_type registry on zope.org just as a guide. It
shouldn't be too hard to set up.

However, I think Zope(and its peripheries) need to handle this in some
more defined and 'safe' way. I know I've written code like AKM's many a
time and now I'm not confident it will work :(

Perhaps a combined meta_type and product name to serve as the 'unique
meta_type' is called for? Mayeb this could replace meta_type all
together?

Another thing I've wondered about is 'inherited' meta_types. Subclassing
is easy in Zope and python which is cool, but the OO nature is currently
hard to exploit when it comes to meta_type. When I say 'find me all
ZCatalogs', I might well want to include anything the subclasses
ZCatalog as well, like Squishdot and ZDiscussions for example.

I wonder how this could be implemented? I wonder how python handles this
with the __class__ attribute or something similar?

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] can't install squishdot with 2.2.

2000-07-24 Thread Tom Smith

I upgraded to zope 2.2 and most products migrated OK, but squishdot won't. I
always get the "broken" product icon.

I'm on Windows2000.

any ideas?

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 )




Re: [Zope] zcatalog and squishdot newbie question

2000-07-24 Thread Chris Withers

George Donnelly wrote:
 you shouldn't need to create a Catlog and then put your Squishdot site in
 it. The main squishdot site *is* a Catalog, or has Catalog-like qualities.
 (i think).

Well, it is a subclass of ZCatalog as of Squishdot 0.4.0

 if you want to be able to search the Squishdot site *and* other stuff you
 should be able to select the Squishdot site as well as whatever other
 Catalogs you have when you add a Z Search Interface.

Sounds liek great advice :-)

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] off topic: How do I run a python cgi?

2000-07-24 Thread Tom Smith

Sorry for the off-topic-ness, but can anyone tell me "exactly" what I have
to do to get a python script cgi working under IIS?  Or point me at a web
page?

when I request http://mysite/test.py I just get the contents of the file
back...ala

print "Content-type: text/html"
print
print "h1Why doesn't this work?/h1"

thanks

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 )




Re: [Zope] can't install squishdot with 2.2.

2000-07-24 Thread Chris Withers

So much for checking the mail archives before asking a question :(

Tom Smith wrote:
 I upgraded to zope 2.2 and most products migrated OK, but squishdot won't. I
 always get the "broken" product icon.

Squishdot doesn't currently work with 2.2.
It won't do until I get some time to work on it or someone gives me the
patch to make it happen.

Sorry,

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] Datebug?

2000-07-24 Thread Chris Withers

What was the issue number?

Chris

Peter Arvidsson wrote:
 
 The most hirrible thing is that I chunked it in the collector but the Zope
 developers rejected it! Apparently they seem to claim this is a feature. Feature or
 not I can't use dates in forms because of this.
 
 Peter
 
 Chris Withers skrev:
 
  Erich Seifert wrote:
   I had the same problem.
   The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(),
   year(), etc. do not. So I used them.
 
  That's really horrible, I'd chuck it in the collector:
  http://classic.zope.org:8080/Collector/
 
  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] Datebug?

2000-07-24 Thread Peter Arvidsson

#1445 (http://classic.zope.org:8080/Collector/1445/view)

Chris Withers skrev:

 What was the issue number?

 Chris

 Peter Arvidsson wrote:
 
  The most hirrible thing is that I chunked it in the collector but the Zope
  developers rejected it! Apparently they seem to claim this is a feature. Feature or
  not I can't use dates in forms because of this.
 
  Peter
 
  Chris Withers skrev:
 
   Erich Seifert wrote:
I had the same problem.
The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), month(),
year(), etc. do not. So I used them.
  
   That's really horrible, I'd chuck it in the collector:
   http://classic.zope.org:8080/Collector/
  
   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] zeo and rdb backend

2000-07-24 Thread Bak @ kedai

hi
i have a few questions about zeo and how it works (newbie)
i managed to get zeo runniing, and i have two hosts serving one zodb.  that's
great.

but i can't access some of the data that resides in a rdbms (postgres).  i
guess the db connection points to the wrong host since i use 
dbname@localhost username (for postgres).

tried changing host to something else (host1 as defined in /etc/hosts) but cant
change properties.  zope said bad request.  the same error if i use zPoPyDA.

does this mean that i need to use zodb to use zeo?  what should i do to use rdb
for some of my data?

i'm stuck and in need of help, pointers, docs from the great ones.
help

thanks
-- 
--
http://www.kedai.com.my/kk
Am I Evil?


___
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] Re: Datebug?

2000-07-24 Thread Peter Arvidsson

I already used the things in AlexR's howto but still he uses fmt or strftime() and 
that is
the problem. AlexR claims the base is GMT though (the Zope developers said the 
base-time was
UTC). Nevertheless this is a problem... I'll try to chunk it in the collector once 
more with
a bit more explaination.

Thanks for your help.

Peter

Chris Withers skrev:

 Ah, OK, I see what happened.

 Did you try AlexR's how-to and did it help?

 I'd suggest submiting another bug along the lines of "fmt should use the
 local time and nto be locked to UTC", which is what I think is the
 'horribel' bit of this :-)

 cheers,

 Chris

 Peter Arvidsson wrote:
 
  #1445 (http://classic.zope.org:8080/Collector/1445/view)
 
  Chris Withers skrev:
 
   What was the issue number?
  
   Chris
  
   Peter Arvidsson wrote:
   
The most hirrible thing is that I chunked it in the collector but the Zope
developers rejected it! Apparently they seem to claim this is a feature. 
Feature or
not I can't use dates in forms because of this.
   
Peter
   
Chris Withers skrev:
   
 Erich Seifert wrote:
  I had the same problem.
  The fmt tag outputs GMT time but the methods of DateTime, i.e. day(), 
month(),
  year(), etc. do not. So I used them.

 That's really horrible, I'd chuck it in the collector:
 http://classic.zope.org:8080/Collector/

 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] ZClass tutorial

2000-07-24 Thread George Donnelly

yeah i know how ya feel. even for little stuff i have to scrounge and beg
for help. :-(

hopefully this will improve when the O'Reilly Zope book comes out.

btw have you checked out the pdf files of all the howto's and tip's? i've
found them to be really helpful

http://www.zope.org/Members/AlexR/

also this list archives is really useful i think. i get a lot of stuff from
here

http://zope.nipltd.com/public/lists/zope-archive.nsf/$$Search?OpenForm

hth

Regards,
GEORGE DONNELLY
[EMAIL PROTECTED]
http://cyklotron.com/
He that always gives way to others will end in having no principles of his
own. --Aesop 

 Hi, some thoughts(and frustrations) from a newbie having his "first time"
 with Zope.
 
 The documentation needs a lot of improvement.
snip
 sigh...i foresee a rocky road ahead for this newbie to master the 'Zen' of
 Zope. Hopefully it's not a long one:(


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

2000-07-24 Thread Oleg Broytmann

On Sat, 22 Jul 2000, Ronald F. Tagra wrote:
 I have tried the dtmlObject.document_src() to view the source code of the
 script but it has error that says something like  there are 3 arguments

   dtmlObject.document_src(REQUEST, RESPONCE)

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
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] Re: Datebug?

2000-07-24 Thread Peter Arvidsson

I think I found the posting that you meant but he later said his patch unfortunately 
didnt do
any good. Anyway I have posted the bug to the collector now.

Chris Withers skrev:

 Peter Arvidsson wrote:
  I already used the things in AlexR's howto but still he uses fmt or strftime() and 
that is
  the problem.

 Someone posted a replacement module/patch for strftime() on zope-dev(I
 think, maybe it's in the collector)

 Try searching the archives at:
 http://zope.nipltd.com/public/lists.html

  AlexR claims the base is GMT though (the Zope developers said the base-time was
  UTC).

 Same thing I think... GMT technically doesn't exist since they got rid
 of the observatory in Grenwich ;-)

 Nevertheless this is a problem... I'll try to chunk it in the collector once more 
with
  a bit more explaination.

 cool :-)

 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 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] LoginManager, User Sources, ...

2000-07-24 Thread Wolfgang Klinger

Hi!

I searched the archives and found some entries, all 
concerning the same problem ... 

I read this:

"LoginManager currently comes with a default 
 User Source called Generic User Source (GUS), 
 that is a GUF-like roll-your-own system.  It uses
 GUF-compatible methods (userExists, userRoles, etc),
 so converting any GUF-using site to a LM site 
 . "

and wondered where this GUS is hidden and how I
actually add users ??

(I'm still a newbie and want to know how it works!)

Can somebody please help?

TIA
Wolfgang



___
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] mxODBC, ExtensionClass.Missing and Results puzzle???

2000-07-24 Thread Jay, Dylan

I've compiled up a mxODBC DA for use under windows so that multi-threaded
odbc drivers can be me used in a  multi-threaded way.

This works good so far except for one aspect. NULL values are being returned
as "None" objects. This seems reasonable but it is not how ZODBC returns
results. It will return a NULL as a "Missing" object (whatever that is?). I
can't find any documentation to find out what this object is or means. 
My biggest problem is that the UserDB product doesn't like None objects
being return for passwords. It seemed to handle the Missing objects fine.

To add to the mystery I noticed that the result object returned by an sql
method connected to first ZODBC and then ZmxODBC was of two different types.
ZmxODBC was returning a ZRDB.Results object. ZODBC was returning a
ZRDB.RDB.DatabaseResults object. The latter is apparently a "Class for
reading RDB files" but as this is the only documentation I can find I have
no idea how it differs from the ZRDB.Results class or rather why ZODBC
returns it and thus has NULL's replaced Missing objects.

Can anyone shed any light on any of this?


Dylan Jay   mailto:[EMAIL PROTECTED]
Avaya Communication Tel:   +61 2 9886-8961
Level 5, 15 Talavera Road   FAX:   +61 2 9352 9224
Nth Ryde NSW 2113   Mobile:+61 409 606 171
AUSTRALIA   ICQ:   520341


___
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] timezone change and permission problem

2000-07-24 Thread Bart Holthuijsen

Hi list!

I have two problems with Zope, and I hope you will be able to help me.

First one: (probably very basic)

When I create / edit a document it says: Content changed, then date / time 
and GMT+2. Where can I set the time zone? I did not have this problem in 
2.1.4, it started after the upgrade to 2.2.0 (final). I just copied the 
data.fs file and the relevant installed products. Any suggestions on how to 
solve this problem?

Second problem:

I found a way to make a list of the folders at the same level in the tree in 
a How-to on the Zope site. I'm using the following code to do this:

dtml-in "PARENTS[0].objectValues(['Folder'])" sort=title

dtml-if "title != '' and 
AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) "

   a href="dtml-var "_.getitem(id).absolute_url()"  "dtml-var 
title/aBR

/dtml-if

/dtml-in

This works for a User with the role Manager, but not with a user-defined 
role. I have created a Viewer class with all the available permissions (for 
testing purposes), but the above code returns nothing. If I remove the "and 
AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) " part it does 
show up. What should I do to make that part work?

Thanks in advance,
Bart Holthuijsen.


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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] Help Needed for creating : Page 1 2 3 4 Previous:Next

2000-07-24 Thread Holger Hoffmann

Hi,

Peter Marriott wrote:
 
 Hi,
 
 I would really appreciate it if someone could point me to some example dtml
 that gives navigation links like the following at the bottom of a list of
 items.
 
 Page 1 2 3 4 5Previous:Next   (with the current page highlighted bold)

it is ugly, but it works for me ...
the following creates links like:

[  previous ]  1  2  3  4  5  6  7  8  [ next  ] 



dtml-call "REQUEST.set('i', 1)"

dtml-in somelist previous size=10 start=qs
a href="dtml-var URLdtml-var sequence-queryqs=dtml-var
previous-sequence-start-number"[  previous ]/anbsp;nbsp;nbsp;
/dtml-in

dtml-in somelist previous size=10 start=qs
dtml-in previous-batches mapping
a href="dtml-var URLdtml-var sequence-queryqs=dtml-var
batch-start-number"dtml-var i/anbsp;
dtml-call "REQUEST.set('i',i+1)"
/dtml-in
/dtml-in

dtml-var inbsp;
dtml-call "REQUEST.set('i', i+1)"

dtml-in somelist next size=10 start=qs
dtml-in next-batches mapping
a href="dtml-var URLdtml-var sequence-queryqs=dtml-var
batch-start-number"dtml-var i/anbsp;
dtml-call "REQUEST.set('i',i+1)"
/dtml-in
/dtml-in

dtml-in somelist next size=10 start=qs
nbsp;nbsp;nbsp;a href="dtml-var URLdtml-var
sequence-queryqs=dtml-var next-sequence-start-number"[ next  ]/a
/dtml-in

... Holger

___
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] RPM

2000-07-24 Thread Paul Aviles



Is there an RPM for 2.2 that does not include the 
http server so you can you upgrade from the previous 2.1.6 and still use 
Apache?

Thanks
-pa


[Zope] Old broken product...

2000-07-24 Thread * Lucky

After a modification of the python source code, my product
remains broken with the same error... No modification seems
to be made to the line which leads to the error. Does
somebody know why and how to cope with this ?

___
Vendez tout... aux enchères - http://www.caraplazza.com




[Zope] Adding an XMLDocument instance Programmatically

2000-07-24 Thread Gaspard, Bradley S

I am trying to write a python method which will programmatically create an
instance of an (existing) XML document.  (I am using Zope2.1.6 and
XMLDocument 1.0a6)  I am able to add an XML document by selecting the
XMLDocument from the available objects ... so XMLDocument is installed
correctly.

Essentially I have taken the 'add' method of XMLDocument and tried to turn
it into an external method.  [I was able to successfully do this for the
Parrot product so hopfully I am on the right track]

I can' t seem to get beyond importing Document (cannot import name
Document).  Do I need to import other modules?  Is this the best/only way to
do this??  Appreciate any help.

from Products.XMLDocument import Document

def add(self, id, title='', file='', REQUEST=None, submit=None):
"""
Add a XML Document object with the contents of file.
"""
ob=Document()
ob.title=title
ob.id=id
if file: ob.parse(file)
id=self._setObject(id, ob)
if REQUEST is not None:
try: u=self.DestinationURL()
except: u=REQUEST['URL1']
if submit==" Add and Edit ": u="%s/%s" % (u,quote(id))
REQUEST.RESPONSE.redirect(u+'/manage_main')
return ''

I appologize in advance if I have missed something obvious.

Brad


___
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] timezone change and permission problem

2000-07-24 Thread Chris Withers

Bart Holthuijsen wrote:
 This works for a User with the role Manager, but not with a user-defined
 role. I have created a Viewer class with all the available permissions (for
 testing purposes), but the above code returns nothing. If I remove the "and
 AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) " part it does
 show up. What should I do to make that part work?

Try giving your DTML method a proxy role or 'Manager'...

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] Old broken product...

2000-07-24 Thread Chris Withers

Restart Zope...

Chris

* Lucky wrote:
 
 After a modification of the python source code, my product
 remains broken with the same error... No modification seems
 to be made to the line which leads to the error. Does
 somebody know why and how to cope with this ?
 
 ___
 Vendez tout... aux enchères - http://www.caraplazza.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] Zope 2.2 installation error....missing header files (?)

2000-07-24 Thread Felipe E Barousse Boue

Hi, thanks for your reply:

Actually all headers are installed, in fact every other compilation works
fine so far.

[root@server Zope-2.2.0-src]# rpm -qa | grep kernel
kernelcfg-0.5-5
kernel-utils-2.2.16-3
kernel-ibcs-2.2.16-3
kernel-doc-2.2.12-20
kernel-2.2.16-3
kernel-pcmcia-cs-2.2.16-3
kernel-BOOT-2.2.16-3
kernel-headers-2.2.16-3
kernel-source-2.2.16-3
[root@server Zope-2.2.0-src]#

Thanks

Ed.



"Bak @ kedai" wrote:

  In file included from /usr/include/errno.h:36,
   from pcgi.h:49,
   from ./pcgi-wrapper.c:51:
  /usr/include/bits/errno.h:25: linux/errno.h: No existe el fichero o el
  directorio

 i may be wrong, but i think you need to install the kernel-headers too

 -
 --
 http://www.kedai.com.my/kk
 Am I Evil?


begin:vcard 
n:Barousse Boué;Felipe E.
tel;fax:+(52)5247-0272
tel;work:+(52)5247-0272
x-mozilla-html:FALSE
url:http://www.piensa.com/
org:Bufete Consultor de Mexico - Piensa Systems;Supercomputer Cluster Systems group
version:2.1
email;internet:[EMAIL PROTECTED]
title:CEO, Director General
note:Tel: +(52)5247-0272
adr;quoted-printable:;;Ap. CAP Polanco 336=0D=0ACol. Anzures;Mexico City;D.F.;11550;Mexico
x-mozilla-cpt:;-27680
fn:Felipe E. Barousse Boué
end:vcard



[Zope] com error

2000-07-24 Thread michael montagne

I'm using HTMLgen to add a small table to a page.  It works the first time I
try it and then I get this error:
Error Type: com_error
Error Value: (-2147221008, 'CoInitialize has not been called.', None, None)
What can I do?

-mjm

 winmail.dat


Re: [Zope] zope 2.2.0 simply dies

2000-07-24 Thread Daniel Rusch


Make sure that ALL your dtml-in's are wrapped in try/excepts
we have seen this happened when there is a problem with either the sql
or database adaptor.
DR

Andy Pahne wrote:
I have a Zope-2.2.0 installation running on a Redhat
6.0 Linux Box. It
simply dies sometimes. Three times in the last 72 hours?!?
There's only DCOracle and ZOracleDA installed, nothing more. I cannot
see
any other problems on the machine and it does not have that much load.
Is there a solution? Has anybody had the same problem?
Andy Pahne
[EMAIL PROTECTED]
net22 GmbH
Bad Meinberger Strasse 1
32760 Detmold
Tel.: 05231 - 580 640
___
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] timezone change and permission problem

2000-07-24 Thread Bart Holthuijsen

From: Chris Withers [EMAIL PROTECTED]

Bart Holthuijsen wrote:
  This works for a User with the role Manager, but not with a user-defined
  role. I have created a Viewer class with all the available permissions 
(for
  testing purposes), but the above code returns nothing. If I remove the 
"and
  AUTHENTICATED_USER.has_permission('View',_.getitem('id',1)) " part it 
does
  show up. What should I do to make that part work?

Try giving your DTML method a proxy role or 'Manager'...

Thanks for the quick reply... BUT

It still isn't working. I even created a user in the root folder with the 
Viewer role and all the rights granted, but I'm still greeted with a blank 
screen where the list should be :(

I added the proxy role "Manager" to the methods, but still nothing. I also 
checked all the "Acquire permission settings" boxes, so it couldn't be that.

Any other suggestions?

TIA,
Bart Holthuijsen

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




[Zope] Inserting Python object in Zope !

2000-07-24 Thread pbiot



I'm a newbie, and I wonder : how could I use a personal Python object in Zope. 
I've a second question : how could I display (in html page) the results from the Pythons function ?


thanks In advance 

[Zope] selecting namespaces with with (was RE: [Zope] Enitity syntax and2.2) 2.2)

2000-07-24 Thread Jeffrey Shell

 
 And how about:
 
 dtml.missing-REQUEST.form['foo'];
 
 That is, allow expressions to be used. I guess this makes the 
 entity syntax
 act more like dtml-var.
 
 This would allow a really clear syntax for refilling input 
 type=text tags
 with previously entered values in a form.

You can explicitly select a namespace (and exclude others) using
dtml-with ... only,
for example:

dtml-with expr="REQUEST.form" only
form
 input  value="dtml.missing-foo;"
/form
/dtml-with

If you don't use the "only", this still enforces that the REQUEST.form
namespace is the first searched.


___
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] zope.org down

2000-07-24 Thread ethan mindlace fremen

Cary O'Brien wrote:

 Hold on. I am confused, and I really need to understand this.
 Why do you need a 40 gb drive to store something that might get to 2GB?
 Do thing get really big during packing?  (Thinking PostgreSQL index creation
 here, where it uses temp files for sorting, which has bit me more than
 once).  Or do you just want to keep N old versions around?

I need to have n versions for various testing purposes: this is what got
me in trouble in the first place- I was packing to try to make room. 
The pack makes a full backup of your data, so it needs about 1.75*n
space where n is the size of your current Data.fs

 Also, (besides "upgrade to alpha"), what is the workaround for Data.fs
 bigger than 2GB?  Are there any plans to split it across multiple
 files? (Once again, the PostgreSQL people recently added this -- database
 files don't exceed 1GB, when the table gets that big it splits them
 across multiple files).

One solution is to have your Data.fs actually be split using mounted
databases, something I consider a sub-optimal solution.  Another option
would be to store the entire zodb in a relational database, but as far
as I know none of the products that attempt to provide that are
full-featured.

The bottom line is that the OS should support the creation of very large
files.  Note that any of the BSD variants, or Solaris for x86, or SCO
unix, all will let you have a ZODB larger than 2gb, assuming python was
compiled properly.

I have spent literally about 40 hours trying to get Linux to support
large files.  While the code is integrated into kernels 2.3.27 and up,
something still isn't quite right because I cannot get python to support
large files although I can get c to create 17GB files using lseek().

Hope that helps,
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] zope.org down

2000-07-24 Thread Chris McDonough

The InterbaseStorage product is full-featured (undo, versioning).  But
I've gotten little response to releasing it, and I don't think anyone is
using it, so bugs are sure to exist.

 -Original Message-
 From: ethan mindlace fremen [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 24, 2000 11:11 AM
 To: Cary O'Brien; [EMAIL PROTECTED]
 Subject: Re: [Zope] zope.org down
 
 
 Cary O'Brien wrote:
 
  Hold on. I am confused, and I really need to understand this.
  Why do you need a 40 gb drive to store something that might 
 get to 2GB?
  Do thing get really big during packing?  (Thinking 
 PostgreSQL index creation
  here, where it uses temp files for sorting, which has bit 
 me more than
  once).  Or do you just want to keep N old versions around?
 
 I need to have n versions for various testing purposes: this 
 is what got
 me in trouble in the first place- I was packing to try to make room. 
 The pack makes a full backup of your data, so it needs about 1.75*n
 space where n is the size of your current Data.fs
 
  Also, (besides "upgrade to alpha"), what is the workaround 
 for Data.fs
  bigger than 2GB?  Are there any plans to split it across multiple
  files? (Once again, the PostgreSQL people recently added 
 this -- database
  files don't exceed 1GB, when the table gets that big it splits them
  across multiple files).
 
 One solution is to have your Data.fs actually be split using mounted
 databases, something I consider a sub-optimal solution.  
 Another option
 would be to store the entire zodb in a relational database, but as far
 as I know none of the products that attempt to provide that are
 full-featured.
 
 The bottom line is that the OS should support the creation of 
 very large
 files.  Note that any of the BSD variants, or Solaris for x86, or SCO
 unix, all will let you have a ZODB larger than 2gb, assuming 
 python was
 compiled properly.
 
 I have spent literally about 40 hours trying to get Linux to support
 large files.  While the code is integrated into kernels 2.3.27 and up,
 something still isn't quite right because I cannot get python 
 to support
 large files although I can get c to create 17GB files using lseek().
 
 Hope that helps,
 -- 
 ethan mindlace fremen
 Zopatista Community Liason
 Abnegate I!
 
 ___
 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] calendar problem

2000-07-24 Thread F.Richter

Hi,

after an upgrade of zope 2.2.0-1 the calendar doesn't work. (I have no
valid backup of the old version :o(  )
I have override (the directory) the old version of the calendar with the
new version 0.9.17, but I get errors.
In the new directory doesn't exist a calendar.pyc. Do I need this file
and
how can I create this??? I can't programming in python.
How can I solve this problem
  
Thanks 
Frank

___
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] zope.org down

2000-07-24 Thread Chris Withers

Chris McDonough wrote:
 The InterbaseStorage product is full-featured (undo, versioning).  But
 I've gotten little response to releasing it, and I don't think anyone is
 using it, so bugs are sure to exist.

I don't think you announced this loudly enough ;-)

Is interbase stable/OSS? Where can I get it from? Where is the
InterBaseStorage product (and documentation ;-) available?

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] zope.org down

2000-07-24 Thread Chris McDonough

See
http://www.zope.org/Members/mcdonc/RS/InterbaseStorage/InterbaseStorage.
txt for answers to the Interbase questions and InterbaseStorage docs and
see http://www.zope.org/Members/mcdonc/RS/InterbaseStorage to download
the InterbaseStorage product.



 -Original Message-
 From: Chris Withers [mailto:[EMAIL PROTECTED]]
 Sent: Monday, July 24, 2000 11:34 AM
 To: Chris McDonough
 Cc: Ethan Fremen; Cary O'Brien; [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [Zope] zope.org down
 
 
 Chris McDonough wrote:
  The InterbaseStorage product is full-featured (undo, 
 versioning).  But
  I've gotten little response to releasing it, and I don't 
 think anyone is
  using it, so bugs are sure to exist.
 
 I don't think you announced this loudly enough ;-)
 
 Is interbase stable/OSS? Where can I get it from? Where is the
 InterBaseStorage product (and documentation ;-) available?
 
 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 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] Viewing Dependencies in the ZDB

2000-07-24 Thread Stuart Foster

I thought I saw a product that would let you view object dependencies in the
ZDB.

Is there such a product?


___
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] Subdirs in IIS - broken by upgrade of IIS from 3.0 - 4.0

2000-07-24 Thread jholland

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just added the option pack to bring a NT (ugh) server up to option pack
4,  (NT4) Service pack 6.

pcgi to redirect zope stuff to the iis port 80 so there are no port 8080
parts to the url stopped working for all parts of the site in lower
directories.

That is, 

myhost.com/scripts/zope.pcgi/DIR1/file_html

works

and

myhost.com/scripts/zope.pcgi/DIR1/DIR2/file_html

does not. Everything more than one directory deep in Zope returns a 404.

IIS 3 didn't have this problem.

Any advice would be great; I can't find anything in mailing archives,
newsgroups or at zope.org.

  
John Holland
- ---

Email:   [EMAIL PROTECTED]
Web: http://jbhsoft.linuxave.net
Public key : finger -s or
 http://jbhsoft.linuxave.net/pubkey.html


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.2

iQA/AwUBOXx2ChPWCCE2yAKHEQI1sACg4b4j1rC9aVgfWPRUdIZstLN668AAoLJe
OQe8lCzOIWtONJIjoZnG5KBB
=n5ty
-END PGP SIGNATURE-


___
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] Bi-directional update of Data.fs

2000-07-24 Thread Jim Fulton

Chris Withers wrote:
 
(snip)
 Definitely, can someone say whether QuorumBasedReplication would handle
 this on whether it's designed more for real-time replication between
 storage servers in the ZEO world?

It's designed for real-time replication.

Jim

--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

___
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] Zope performance ratios

2000-07-24 Thread andres

I'm interested in getting performance statistics for Zope. I'm scouring the
mailing lists for previous messages but I would also be interested in
anything else people may want to say about it. For example, what is the
record for average web hits from a Zope site? Does someone have a feel for
useful ratios like: "a Zope page takes, on average, twice as a static page
to serve"? I'm not interested in being anal about the numbers, seat of
the pants estimates are what I'm looking for.

--
Andres Corrada-Emmanuel   Email: [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] Re: [Zope-Annce] July 20th Zope Weekly News

2000-07-24 Thread ethan mindlace fremen

Simon Michael wrote:
 
 ethan mindlace fremen [EMAIL PROTECTED] writes:
 o Wikis are now searchable - and they have history,
   too! This was a little bumpy, with Steve
   Alexandar pointing out a search bug.
 
 Yay! where can we see this ?

Search for anything.  If the icon is a white page with a bunch of funny
black squiggies, that's a zWiki page :)
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] Announcement: zCommerce First Public Release!

2000-07-24 Thread Chris Withers

Hi Nick,

Is zCommerce OSS?
It's a pretty M$-like press release (blegh!) but the 'download here' bit
implies it's going to be Open Source. If so, then it sounds very cool
:-)

cheers,

Chris

PS Did you have to spam zope-dev in as well? ;-)

Nick Garcia wrote:
 
 CodeIt announces the much-anticipated release of zCommerce. zCommerce,
 in it's first public release, provides a flexible shopping cart and
 order processing engine that you can use along with a few lines of DTML
 to develop just about any kind of e-commerce application. Our hope is
 that along with your help, we can develop a standard for e-commerce
 components that are fully customizable and scalable to meet the needs of
 even the most demanding e-commerce sites.
 
 "CodeIt is a strong believer in Zope and open source in general. Being a
 recognized leader in the Zope community we believe we have a
 responsibility to Zope and everyone else in the community to help
 improve it, hence the alpha release of zCommerce. We look forward to
 your comments, suggestions and patches."  - Jason Reid, CEO CodeIt
 Computing
 
 zCommerce can be downloaded from
 http://www.zope.org/Members/ngarcia/zCommerce.  More information on
 ZCommerce in general will be available at http://www.zope-store.com.
 
 CodeIt Computing is one of the leading providers of Zope based
 solutions.  We offer a full range of services from Zope Hosting to
 custom application development. Located in Southern California, we
 design custom sites and applications exclusively in Zope.  Please visit
 our website at http://www.codeit.com to find out more about us, and our
 exciting career opportunities.
 
 --
 Nick Garcia | [EMAIL PROTECTED]
 CodeIt Computing | http://codeit.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 )

___
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] Zope performance ratios

2000-07-24 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 For example, what is the
 record for average web hits from a Zope site? 

I've heard of 7 or 8 hundred thousand hits a day of a dual PIII-500. If
whoever mentioned that to me on #zope could shout, it might sound better
:-)

 Does someone have a feel for
 useful ratios like: "a Zope page takes, on average, twice as [long as] a static page
 to serve"? I'm not interested in being anal about the numbers, seat of
 the pants estimates are what I'm looking for.

Dunno, but for what it does it's pretty damn quick :-)

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] Zope/Apache/ProxyPass

2000-07-24 Thread ethan mindlace fremen

Joshua Brauer wrote:
 
 I'm having trouble getting Zope and Proxy Pass to work the way I expect
 
 Specifically if you look at this site:
 
 http://www.bmb.colostate.edu:8111/

I can't get to this url at all.  In fact, I don't know how this relates
to the proxypass rules below...

 it's really supposed to proxypass to webdev.bmb.colostate.edu, but the 
ProxyPassReverse directive doesn't seem to clean/modify/correct the base tag in the 
header as I understand it should

You have to use siteAccess to correct the base tag  any generated
URL's.
 
 Here's the proxypass section of my httpd.conf for apache:
 ProxyRequests   on
 NoCache *
 ProxyPass / http://webdev.bmb.colostate.edu/
 ProxyPassReverse / http://webdev.bmb.colostate.edu/
 ProxyPass /misc_ http://webdev.bmb.colostate.edu/misc_
 ProxyPass /p_ http://webdev.bmb.colostate.edu/p_

Josh,

the proxypass rules on zope.org are pretty simple:

VirtualHost 209.67.167.55
 ServerName www.zope.org
 ProxyPass / http://www.zope.org:93/
 ProxyPassReverse / http://www.zope.org:93/
/VirtualHost

and everything seems to work fine, with a SiteRoot that says that
SiteRootBASE is http://www.zope.org

hope that helps,
-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

___
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] Bi-directional update of Data.fs

2000-07-24 Thread Chris Withers

Jim Fulton wrote:
  Definitely, can someone say whether QuorumBasedReplication would handle
  this on whether it's designed more for real-time replication between
  storage servers in the ZEO world?
 
 It's designed for real-time replication.

Aww :~(

And there was me hoping I could do the Lotus Notes 'go to the beach and
work, then replicate the changes when I got back' or the 'work from
home, replicate the stuff when I can next be bothered to go into work'
;-)

Seriously though, is there anything in the pipeline (even just simple
ideas) for Notes-styel replication at any point in the future? It's the
only sticking point for quite a big project we're working on that's
forcing us to stay with Notes.

cheers,

Chris

PS: No, none of us has enough Zen to do it ourselves... ;(

___
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] Problem with dtml-sendmail from external method

2000-07-24 Thread Kent Polk

I have two DTML Methods:
-
dtml-sendmail smtphost="xxx"
To: dtml-var tolist
From: xxx
Subject: dtml-var subject

dtml-var body
/dtml-sendmail
-
To: dtml-var tolist
From: xxx
Subject: dtml-var subject

dtml-var body
/dtml-sendmail
-
(fill in the 'xxx's)

When I call either from a form or via xml-rpc they work properly.
However, when I call the one with the dtml-sendmail tags from an
external method, it triggers an exception (the second version does
not trigger an exception).

For instance:
self.test(tolist=towhom, subject=subject, body=message)

 Fault: 
 Fault -2: 'Unexpected Zope error value:
 Error Type: AttributeError
 Error Value: this

Evidently the dtml-sendmail tag is looking for this(), probably in
globals, which is provided by the xml-rpc or dtml-dtml calls?
What is the recommended way of providing this information?

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 )




  1   2   >