[Zope-dev] Unsupported UserDb LoginRequired bug

2000-11-19 Thread francine broekhove

Hi everyone,

i know UserDb is not supported, but ...
I need a userlogin system on zope 2.1.6. and gave it a try with UserDb 1.3.0. It 
'seemed' (spooky stuff this authentication) to work fine, until i moved a folder it 
resided in. 
Now i get the usual (it's been mentioned as from around august 1999 in these lists - 
i've not found a solution for it helping anyone who has gone before me - who thought 
up UserDb anyway? :-(   ):


Traceback (innermost last):
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 214, in 
publish_module
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 179, in 
publish
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 151, in 
publish
  File /usr/local/bin/Zope-2.1.6-src/lib/python/ZPublisher/BaseRequest.py, line 430, 
in traverse
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Products/UserDb/UserDb.py, line 289, 
in validate
(Object: RoleManager)
  File /usr/local/bin/Zope-2.1.6-src/lib/python/Products/UserDb/UserDb.py, line 264, 
in cookie_validate
(Object: RoleManager)
LoginRequired: (see above)

I'd like to know why as i'm trying for two days now to get it fixed somehow - to those 
who experienced the same my heart goes out to you - you should go out and have fun 
instead, like i should.

HELP, anyone?

Greetings Francine

_
Get Your Private, Free Email at A HREF="http://www.burningmail.com" 
target="_new"http://www.BurningMail.com/A

___
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] Stupid Installation Question Remains Unanswered

2000-11-19 Thread Jens Vagelpohl

 Well, actually, the REAME.txt doesn't say ANYTHING about how to install it.
 It *does* refer to doc/INSTALL.txt, which, unfortunately, is nowhere to be
 found: there is no directory called *doc* nor any INSTALL.txt file that I
 can see. Here's what unzipped:

snip snip
 drwxr-xr-x   3 webmaste users4096 Sep 18 11:22 doc
snip snip

umh, what's that part of your listing if not a "doc" directory..?

sigh

jens









On 11/18/00 22:53, "Ben Ocean" [EMAIL PROTECTED] wrote:

 Well, actually, the REAME.txt doesn't say ANYTHING about how to install it.
 It *does* refer to doc/INSTALL.txt, which, unfortunately, is nowhere to be
 found: there is no directory called *doc* nor any INSTALL.txt file that I
 can see. Here's what unzipped:
 
 drwxr-xr-x  11 webmaste users4096 Nov 18 13:57 .
 drwxr-xr-x   3 webmaste users4096 Nov 18 00:58 ..
 -rw-r--r--   1 webmaste users  28 Nov  9  1999 .cvsignore
 drwxr-xr-x   2 webmaste users4096 Sep 18 11:22 Extensions
 -rw-r--r--   1 webmaste users3479 Mar  9  1999 LICENSE.txt
 -rw-r--r--   1 webmaste users2074 Jul 23  1999 README.txt
 drwxr-xr-x   4 webmaste users4096 Sep 18 11:22 ZServer
 drwxr-xr-x   3 webmaste users4096 Sep 18 11:22 doc
 drwxr-xr-x   2 webmaste users4096 Sep 18 11:22 import
 drwxr-xr-x   2 webmaste users4096 Sep 18 11:22 inst
 drwxr-xr-x   4 webmaste users4096 Sep 18 11:22 lib
 drwxr-xr-x   7 webmaste users4096 Sep 18 11:22 pcgi
 drwxr-xr-x   2 webmaste users4096 Sep 18 11:22 utilities
 drwxr-xr-x   2 webmaste users4096 Sep 18 11:22 var
 -rw-r--r--   1 webmaste users4492 Jul 22  1999 w_pcgi.py
 -rw-r--r--   1 webmaste users4578 Oct 14  1999 wo_pcgi.py
 -rw-r--r--   1 webmaste users   22630 Aug 29 08:41 z2.py
 -rw-r--r--   1 webmaste users8832 May 10  2000 zpasswd.py
 
 So, back to my original question: How the $)@#* do I install this???
 TIA,
 BenO
 
 At 08:07 PM 11/18/2000 +, you wrote:
 * Ben Ocean [EMAIL PROTECTED] [001118 09:51]:
 Hi;
 Okay, hope I did this right... Installed Zope in a directory at doc root
 (called zope) and untarred it. Now I have a directory called
 Zope-2.2.2-src
 with a bunch of stuff in it. What do I do from here? How do I see it
 working?
 TIA,
 BenO
 
 umm, try reading the the README.txt file in that directory.  and the
 INSTALL.txt file in the docs directory.
 
 seb
 


___
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] expiring dtml documents

2000-11-19 Thread Cees de Groot


[EMAIL PROTECTED] said:
 any insight as to how one might code something like that? 

Document traversal is a simple recursive Python function - with one call to 
objectValues on a folder you can extract all documents (and iterate over them, 
check their creation date, remove them if necessary); with a second call to 
objectValues you get all subfolders and recurse into them.

objectValues matches on meta type, which is 'Folder' for a folder, and 'DTML 
Method' for a DTML method. So you'd get something like:

def expire(folder):
for i in self.objectItems('DTML Method'):
id = i[0]; value = i[1]
if value.bobobase_modification_time()  """now minus two weeks""":
# remove i. Maybe tricky because you're iterating
# and removing from a collection. check. 
folder.manage_delObjects(id)
for i in folder.objectValues('Folder'):
expire(i)

Add this as a Python method (or similar) to the top-level folder where you 
want to expire, and kicking it off is as simple as a HTTP GET from a cron job 
(I think there's a job scheduler for Zope as well, should make it even easier).

Disclaimer: untested, untested, and I never tried this out.


-- 
Cees de Groot   http://www.cdegroot.com [EMAIL PROTECTED]
GnuPG 1024D/E0989E8B 0016 F679 F38D 5946 4ECD  1986 F303 937F E098 9E8B



___
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] Still More Problems On the Install...

2000-11-19 Thread Ben Ocean

At 12:19 PM 11/19/2000 +, you wrote:
* Ben Ocean [EMAIL PROTECTED] [001119 06:38]:
  Hi;
  Okay, I've untarred the distro. The instructions said to type in *python
  w_pcgi.py*. Did so and lots of stuff printed to screen, the last of which
  was *SystemError 512*. Should I worry about that? Then I thought I was
  supposed to type in *./start* but it didn't recognize that command. I'm
  running Python 2.2.2. Thanks for your help.

You shouldn't get any errors.  What OS are you running?

RedHat 6.?

Version of
python?

Python 2.0

Is there any more information apart from SystemError 512?
What's the output just before that error?

Okay, I ran the line again and here's what I got:

Traceback (most recent call last):
   File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 111, in ?
 if __name__=='__main__': main(sys.argv[0])
   File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 109, in main
 import wo_pcgi; wo_pcgi.main(me)
   File "/apache/vhosts/zope/Zope-2.2.2-src/wo_pcgi.py", line 104, in main
 import build_extensions
   File "/apache/vhosts/zope/Zope-2.2.2-src/inst/build_extensions.py", line 
96, in ?
 make('lib','python')
   File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 135, in make
 do('make')
   File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 104, in do
 if i and picky: raise SystemError, i
SystemError: 512
[webmaster@thor Zope-2.2.2-src]$

Thanks for your help.
BenO


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




Re: [Zope] Still More Problems On the Install...

2000-11-19 Thread Jens Vagelpohl

ben,

as far as i know python 2.0 is not (yet) fully supported. if you look at
that famous INSTALL.txt again you will see this:


Important notes

   ZOPE 2.0 REQUIRES PYTHON 1.5.2!

   See CHANGES.txt for important notes on Zope 2.0.


so i suggest you try it with python 1.5.2.

jens



On 11/19/00 16:06, "Ben Ocean" [EMAIL PROTECTED] wrote:

 At 12:19 PM 11/19/2000 +, you wrote:
 * Ben Ocean [EMAIL PROTECTED] [001119 06:38]:
 Hi;
 Okay, I've untarred the distro. The instructions said to type in *python
 w_pcgi.py*. Did so and lots of stuff printed to screen, the last of which
 was *SystemError 512*. Should I worry about that? Then I thought I was
 supposed to type in *./start* but it didn't recognize that command. I'm
 running Python 2.2.2. Thanks for your help.
 
 You shouldn't get any errors.  What OS are you running?
 
 RedHat 6.?
 
 Version of
 python?
 
 Python 2.0
 
 Is there any more information apart from SystemError 512?
 What's the output just before that error?
 
 Okay, I ran the line again and here's what I got:
 
 Traceback (most recent call last):
  File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 111, in ?
if __name__=='__main__': main(sys.argv[0])
  File "/apache/vhosts/zope/Zope-2.2.2-src/w_pcgi.py", line 109, in main
import wo_pcgi; wo_pcgi.main(me)
  File "/apache/vhosts/zope/Zope-2.2.2-src/wo_pcgi.py", line 104, in main
import build_extensions
  File "/apache/vhosts/zope/Zope-2.2.2-src/inst/build_extensions.py", line
 96, in ?
make('lib','python')
  File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 135, in make
do('make')
  File "/apache/vhosts/zope/Zope-2.2.2-src/inst/do.py", line 104, in do
if i and picky: raise SystemError, i
 SystemError: 512
 [webmaster@thor Zope-2.2.2-src]$
 
 Thanks for your help.
 BenO
 
 


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




Re: [Zope] Problem with escaped double quotes

2000-11-19 Thread Steve Spicklemire


Another option... if you care ;- is to use _.chr() to include any
ascii character..

dtml-let foo="'Look--' + _.chr(0x22) + '-- Here '"
dtml-var foo
/dtml-let

produces..

Look--"-- Here 

-steve

 "Spicklemire," == Spicklemire, Jerry [EMAIL PROTECTED] writes:

Spicklemire, Aitor asked:

 My problem is this :
 
 dtml-let foo=3D" ' blaublau : " fdsaf " df ' " /dtml-let
 
 It doesn't work 'cause I can't escape the doble quotes inside
 the string= I'm trying to eval.
 
 Any solution???

Spicklemire, If I recall correctly, the work around I've used is
Spicklemire, to store the text, including the double quotes, as a
Spicklemire, property of a parent folder, so that it can be found
Spicklemire, by acquisition.

Spicklemire,   for example, create a String Property named
Spicklemire, "fdsaf_alias" with a value of :

Spicklemire, " fdsaf "

Spicklemire,   and then change your DTML to :

Spicklemire, dtml-let foo=3D" ' blaublau : " + fdsaf_alias + "
Spicklemire, df ' "

Spicklemire, Other than that, reconsider whether there might be a
Spicklemire, way to do this with single quotes. HTML will usually
Spicklemire, accept either single or double quotes, but nesting
Spicklemire, quotes is of course the common reason to use both
Spicklemire, types in an expression. Since I have no idea what
Spicklemire, the item actually represents, it's not a call I can
Spicklemire, make from this end.

Spicklemire, Good Luck!  Jery S.

Spicklemire, ___ Zope
Spicklemire, maillist - [EMAIL PROTECTED]
Spicklemire, http://lists.zope.org/mailman/listinfo/zope ** No
Spicklemire, cross posts or HTML encoding!  ** (Related lists -
Spicklemire, http://lists.zope.org/mailman/listinfo/zope-announce
Spicklemire, 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] Search and replace

2000-11-19 Thread Lee Hunter

Is there any way to do a 'search and replace' in a Zope folder (and it's
subfolders)?

TIA

Lee
Hum Communications Ltd.


___
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] Need some help with installing ZPatterns

2000-11-19 Thread Dieter Maurer

Steve Waterbury writes:
  make: Fatal error: Don't know how to make target 
 `/vol01/software/zope/lib/python1.5/config/Makefile'
  Current working directory /vol01/software/zope/lib/python/Products/ZPatterns
  *** Error code 1
  make: Fatal error: Command failed for target `boot'
Apparently, the Python in Zope's binary distribution is not complete
enough to run the "setup".

Maybe you can get the missing pieces from DC.

If not or you are in a hurry:

  *  fetch the Python source (-- www.python.org)
  *  configure it to enable threads:

 ./configure  --with-threads

  *  make and install it:   make install

  *  fetch Zope's source distribution

  *  build it with you Python



Dieter

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




RE: [Zope] Still More Problems On the Install...

2000-11-19 Thread Ben Ocean

At 11:14 AM 11/19/2000 -0500, you wrote:
Are you sure you need the source version? The binary is easier to install.

Well, that *was* easier (now that I figured out which is which). First of 
all, apologies to all you hard-core techies for whom this is so easy, *but*...
I got as far as *./install* and all worked fine (on the binary). Now 
what??? I've combed the README and INSTALL texts looking for answers, been 
on the Web site, still can't figure out what I'm supposed to do next. 
Thanks again for your help.
BenO


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




Re: [Zope] expiring dtml documents

2000-11-19 Thread Dieter Maurer

wade naveja writes:
  i maintain a zope server that collects several hundred dtml documents per
  day.  there is a need to have dtml documents removed 2 weeks after they
  are created.  any suggestions on how to go about doing this?
You find them with "ZopeFind" (- built-in API documentation),
and delete them with "manage_delObjects" (- built-in API documentation)
(you may need nested "ZopeFind"s as "manage_delObjects" is a folder
method).

You can automate this be an external script (- HowTo on zope.org).


Dieter

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




[Zope] Double quotes in (Python) strings (was: Problem with escaped double quotes)

2000-11-19 Thread Dieter Maurer

Inside Python strings, i.e. inside expr="'...'", you
can use "\042" or "\x22" to embed a '"'.

How it works:

  Python recognizes various escapes inside strings.
  Usually, they are used to insert characters that otherwise
  are difficult to include (usually, because they are unprintable
  or there is not widely knows key on the standard keyword).

  For your purpose, two escape types are interesting:
  octal escapes and hexadecimal excapes.
  An octal escape is a "\" followed by up to 3 octal digits.
  The octal digits are interpreted as an octal number
  defining the code of the character to be embedded.
  A hexadecimal excape is a "\x" followed by a sequence
  of hexadecimal digits. Python takes the last two digits,
  interprets it as a hexadecimal number defining the code
  of the character to be embedded.

  The code for '"' is octal 042 and hexadecimal 0x22.


Dieter

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




Re: [Zope] Still More Problems On the Install...

2000-11-19 Thread Michel Pelletier

Ben Ocean wrote:
 
 At 11:14 AM 11/19/2000 -0500, you wrote:
 Are you sure you need the source version? The binary is easier to install.
 
 Well, that *was* easier (now that I figured out which is which). First of
 all, apologies to all you hard-core techies for whom this is so easy, *but*...
 I got as far as *./install* and all worked fine (on the binary). Now
 what??? I've combed the README and INSTALL texts looking for answers, been
 on the Web site, still can't figure out what I'm supposed to do next.

All of your questions so far are answered in the Book.

http://www.zope.org/Members/michel/ZB/UsingZope.html

You've gotten to the section "Starting Zope on UNIX".

-Michel

___
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] ZMailIn - alternatives?

2000-11-19 Thread Vincent - D. Ertner

Hi Zope,

I tried to install ZMailIn but due to several
x-envelope-to-header problems from different providers I think
it'll not become a viable way of getting articles into the
system.

Is there any alternative to ZMailIn?

Cheers,

Vince

 '''
 ô¿ô
  -



___
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: ANNOUNCE Zope 2.2.3 release...

2000-11-19 Thread Curtis Maloney

On Saturday 18 November 2000 09:07, Joachim Werner wrote:
  FYI - someone has noticed a problem with the posted
  2.2.3 release that needs looking into, so I've unlisted
  it for the time being. I'll send out a note and re-list
  it after we dig into this a bit...

 Oh no, not this one again ...

 How good that I learned my lesson from the infamous 2.1.x series, when you
 always replaced or withdrew the latest bugfix release due to "some errors"
 right after we had updated all our servers ...


You mean I'm not the only person who always stays one version behind? (o8

 What about having a "beta" phase for every release, even the x.x.x ones?


I think this would be a great idea...

I don't mean to pry, but what level of regression testing do you guys at DC 
have in place?  Or was this a new bug shown up by fixing others?

 Cheers,

 Joachim.

Have a better one,
Curtis Maloney.

___
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] ZMailIn - alternatives?

2000-11-19 Thread Morten W. Petersen

[[EMAIL PROTECTED]]

| Is there any alternative to ZMailIn?

You can probably take a look at ZopeGUM,
url:http://www.zope.org/Members/morphex/ZopeGUM.

I'm currently looking into ways to make the distinct parts
of ZopeGUM into separate products, and it's quite possible
that a archive-like product will pop us as well.

But don't hold your breath..  =)

-Morten


___
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] Search and replace

2000-11-19 Thread Martin Winkler

At 21:03 19.11.2000, you wrote:
Is there any way to do a 'search and replace' in a Zope folder (and it's
subfolders)?

AFAIK: no. But on the other hand: why do you need it? That's what objects 
are for... Just create a method with the text that may change sometimes and 
is displayed on many pages, and include it with dtml-var ...
One possibility I see is: export the folder as XML, edit the file in your 
favourite text-editor and do a search 'n replace. (with the dtml-var, of 
course ;-)
Then import the file again.

Hope this helps,

Martin



___
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] Still More Problems On the Install...

2000-11-19 Thread Ben Ocean

At 09:50 PM 11/19/2000 +, you wrote:
from INSTALL.txt:

   snip

 ./start

I apparently didn't mention in my last email that I *tried* ./start and it 
hung my computer. It got this far:

[webmaster@thor Zope-2.2.2-linux2-x86]$ ./start
--
2000-11-19T23:11:01 PROBLEM(100) ZServer Computing default hostname
--
2000-11-19T23:11:01 INFO(0) ZServer Medusa (V1.16.4.3) started at Sun Nov 
19 15:11:01 2000
 Hostname: thor.galaxynet.com
 Port:8080

--
2000-11-19T23:11:01 INFO(0) ZServer FTP server started at Sun Nov 19 
15:11:01 2000
 Authorizer:None
 Hostname: thor.galaxynet.com
 Port: 8021
--
2000-11-19T23:11:01 INFO(0) ZServer PCGI Server started at Sun Nov 19 
15:11:01 2000
 Unix socket: /apache/vhosts/Zope-2.2.2-linux2-x86/var/pcgi.soc
--
2000-11-19T23:11:01 INFO(0) ZServer Monitor Server (V1.8.4.1) started on 
port 8099


Then it hung. I did a ^C and it printed this:


òTraceback (innermost last):
   File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 719, in ?
 asyncore.loop()
   File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py", 
line 138, in loop
 poll_fun (timeout, map)
   File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py", 
line 66, in poll
 r,w,e = select.select (r,w,e, timeout)
KeyboardInterrupt
Traceback (innermost last):
   File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 537, in ?
 zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid))
   File "/apache/vhosts/Zope-2.2.2-linux2-x86/lib/python/zdaemon.py", line 
208, in run
 p,s = os.waitpid(pid, 0)
KeyboardInterrupt
[webmaster@thor Zope-2.2.2-linux2-x86]$


It would appear (from my limited knowledge of programming) that it's having 
trouble finding that port. Now, for the record, I own the machine, and it's 
co-located (goes through a server called *galaxynet.com*). Again, your help 
is appreciated. Thank you in advance.
BenO


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




Re: [Zope] Still More Problems On the Install...

2000-11-19 Thread Phil Harris

The result you got is what is supposed to happen.

By default Zope runs in 'debug' mode and doesn't unattach itself from the
console.

To make it unattach itself, basically making it run in the background, you
need to edit the start script and remove the '-D'.

See z2.py for more start options.

My start script looks something like this for instance.

"f:\zope\bin\python.exe" "f:\zope\z2.py" -X -w80 -f 21 %1 %2 %3 %4 %5 %6 %7
%8 %9

Which turns off all servers by default (-X), and then selectively turns on
http on port 80 (-w80) and ftp on port 21 (-f21).

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Ben Ocean" [EMAIL PROTECTED]
To: "seb bacon" [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Sunday, November 19, 2000 11:16 PM
Subject: Re: [Zope] Still More Problems On the Install...


| At 09:50 PM 11/19/2000 +, you wrote:
| from INSTALL.txt:
| 
|snip
| 
|  ./start
|
| I apparently didn't mention in my last email that I *tried* ./start and it
| hung my computer. It got this far:
|
| [webmaster@thor Zope-2.2.2-linux2-x86]$ ./start
| --
| 2000-11-19T23:11:01 PROBLEM(100) ZServer Computing default hostname
| --
| 2000-11-19T23:11:01 INFO(0) ZServer Medusa (V1.16.4.3) started at Sun Nov
| 19 15:11:01 2000
|  Hostname: thor.galaxynet.com
|  Port:8080
|
| --
| 2000-11-19T23:11:01 INFO(0) ZServer FTP server started at Sun Nov 19
| 15:11:01 2000
|  Authorizer:None
|  Hostname: thor.galaxynet.com
|  Port: 8021
| --
| 2000-11-19T23:11:01 INFO(0) ZServer PCGI Server started at Sun Nov 19
| 15:11:01 2000
|  Unix socket: /apache/vhosts/Zope-2.2.2-linux2-x86/var/pcgi.soc
| --
| 2000-11-19T23:11:01 INFO(0) ZServer Monitor Server (V1.8.4.1) started on
| port 8099
|
|
| Then it hung. I did a ^C and it printed this:
|
|
| òTraceback (innermost last):
|File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 719, in ?
|  asyncore.loop()
|File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py",
| line 138, in loop
|  poll_fun (timeout, map)
|File "/apache/vhosts/Zope-2.2.2-linux2-x86/ZServer/medusa/asyncore.py",
| line 66, in poll
|  r,w,e = select.select (r,w,e, timeout)
| KeyboardInterrupt
| Traceback (innermost last):
|File "/apache/vhosts/Zope-2.2.2-linux2-x86/z2.py", line 537, in ?
|  zdaemon.run(sys.argv, os.path.join(CLIENT_HOME, Zpid))
|File "/apache/vhosts/Zope-2.2.2-linux2-x86/lib/python/zdaemon.py", line
| 208, in run
|  p,s = os.waitpid(pid, 0)
| KeyboardInterrupt
| [webmaster@thor Zope-2.2.2-linux2-x86]$
|
|
| It would appear (from my limited knowledge of programming) that it's
having
| trouble finding that port. Now, for the record, I own the machine, and
it's
| co-located (goes through a server called *galaxynet.com*). Again, your
help
| is appreciated. Thank you in advance.
| BenO
|
|
| ___
| Zope maillist  -  [EMAIL PROTECTED]
| http://lists.zope.org/mailman/listinfo/zope
| **   No cross posts or HTML encoding!  **
| (Related lists -
|  http://lists.zope.org/mailman/listinfo/zope-announce
|  http://lists.zope.org/mailman/listinfo/zope-dev )


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




[Zope] Permission problems...

2000-11-19 Thread Curtis Maloney


Green things,


I really can't understand this...  I am logged in as my normal Manager role 
user, editing away on my site.  In the management section, no problems...  I 
can edit, add and delete to my hearts content.

However, when I try the normal view, one a certain page I get permission 
problems... It won't let me log in with _any_ users, even tho my permissions 
seem set correctly.

The object in question is, in fact, standard_html_header, of all things.
With the way the objects are set up, it's only rendering the same objects as 
from the previous page, with a little extra processing due to submitted form 
values.


System:

Zope 2.1.6 installed from source.
Python 1.5.2
RedHat 6.1 (with many updates)

many thanks in advance,

Have a better one,
Curtis Maloney.

___
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] snappier zope.org/how to make sites as snappy

2000-11-19 Thread Bak @ kedai

hi all
it looks to me that zope.org is reponding better than previous days.  what
was done?  any tips on how to go about this?

my site (http://www.emedia.com.my) currently suffers from long latency
between the request and loading the page.  tables may be the cause but a
request for normal html with no tables (try the printable page) still
responded poorly.

i've increased the cache numbers in Control_Panel.  i've also increased the
thread numbers.  i've moved graphics to be served by apache.

so, i'm pleading for knobs i need to turn, things i need to change, etc

i'm using zope2.2.2, ZEO0.41, on rh6.2 with 4G RAM

maybe something i overlooked, or don't know

thanks


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




[Zope] Problem Solved!

2000-11-19 Thread Ben Ocean

Thanks, everyone! Works fine now :) Especially thanks for showing me *the 
book* :))
BenO

At 02:04 PM 11/19/2000 -0800, you wrote:
Ben Ocean wrote:
 
  At 11:14 AM 11/19/2000 -0500, you wrote:
  Are you sure you need the source version? The binary is easier to install.
 
  Well, that *was* easier (now that I figured out which is which). First of
  all, apologies to all you hard-core techies for whom this is so easy, 
 *but*...
  I got as far as *./install* and all worked fine (on the binary). Now
  what??? I've combed the README and INSTALL texts looking for answers, been
  on the Web site, still can't figure out what I'm supposed to do next.

All of your questions so far are answered in the Book.

http://www.zope.org/Members/michel/ZB/UsingZope.html

You've gotten to the section "Starting Zope on UNIX".

-Michel


___
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] NESTED IN STATEMENTS AND PASSING VARIABLES in DTML

2000-11-19 Thread Kelvin Cheong


dtml-in "category_method(id='1')" size=100 start=query_start
id=dtml-var idseq=dtml-var seqvid=dtml-var vid

where can i find out more about these properties, i.e. the seq...vid... and
so on..?

thanx for any directions in advance,
later,
amoebia

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my. 
or http://www.vcnlinux.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 : [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES inDTML

2000-11-19 Thread Bak @ kedai

ZQR is a good bundle of joy to keep on the desk top.  search at zope.org.
also, with zope2.2.2, there's a help button that'll put out the API.


-Original Message-
From: Kelvin Cheong [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Monday, November 20, 2000 12:23 PM
Subject: [Zope] RE : [Zope] NESTED IN STATEMENTS AND PASSING VARIABLES in
DTML



dtml-in "category_method(id='1')" size=100 start=query_start
id=dtml-var idseq=dtml-var seqvid=dtml-var vid

where can i find out more about these properties, i.e. the seq...vid... and
so on..?

thanx for any directions in advance,
later,
amoebia

VCN - The Leader In Corporate Communication Solutions
Visit our website at http://www.vcn.com.my.
or http://www.vcnlinux.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] Search and replace

2000-11-19 Thread Lee Hunter

Ouch!

Zope has no built in way to do search and replace? As an editor, that is a
*very* serious drawback indeed!

The first workaround you suggest may be useful when  creating new pages
although  only when you can guess what might change in the future and it
also requires that all of the people creating content think like
programmers, not writers.

The second approach seems somewhat risky, complex and challenging for an
unsophisticated user.

Isn't replacing text one of the most fundamental tasks when creating and
maintaining a web site or any other set of documents, for that matter?

Shouldn't there be a S  R tab on every folder object that provides a choice
of replacing html, dtml or text and that spits out a report on what was
changed? Or even better, that first gives you a report of *proposed* changes
and then allows you to check off the ones you want to ok.

Lee Hunter
Hum Communications Ltd.

 -Original Message-
I wrote:
 Is there any way to do a 'search and replace' in a Zope
 folder (and it's
 subfolders)?

Martin Winkler replied
 AFAIK: no. But on the other hand: why do you need it? That's
 what objects
 are for... Just create a method with the text that may change
 sometimes and
 is displayed on many pages, and include it with dtml-var ...
 One possibility I see is: export the folder as XML, edit the
 file in your
 favourite text-editor and do a search 'n replace. (with the
 dtml-var, of
 course ;-)
 Then import the file again.

 Hope this helps,

 Martin



 ___
 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] Search and replace

2000-11-19 Thread Paul Winkler

Lee Hunter wrote:
 Shouldn't there be a S  R tab on every folder object that provides a choice
 of replacing html, dtml or text and that spits out a report on what was
 changed?

Oho, I like it. Yes, please!!!

 Or even better, that first gives you a report of *proposed* changes
 and then allows you to check off the ones you want to ok.

Yes, definitely you should have a chance to verify.

--Paul  (no relation to Martin AFAIK!)


-- 
.paul winkler..
slinkP arts:   music, sound, illustration, design, etc.
   web page:  http://www.slinkp.com
  A member of ARMS:   http://www.reacharms.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] How exactly do I restart zope?

2000-11-19 Thread NYNewMedia

  How exactly do I restart zope?
  I have an eight month old zope box running on Linux 5.1 We had to
manually restart the server. The question for us now is how exactly to
restart zope? 
  We tried to restart http, and tried some of the intructions on zope.org,
but have not been able to get it to run, mainly because we are not zope
experienced. Result: we are not able to run the web site or the content
admin tool.
  Can anyone give exact instructions?
Thanks,

Wil

__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

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