[Zope] Help! I Screwed Up a Source File

2006-09-05 Thread beno

Hi;
I inherited this box so I don't know exactly how this file got built; 
however, it's python 2.3.5 and zope 2.7.8. I apparently screwed up this 
file:

278/lib/python/Zope/Startup/zeoctl
which incorrectly reads like this:

#!/bin/sh
# ZEO instance control script

# The following two lines are for chkconfig.  On Red Hat Linux (and
# some other systems), you can copy or symlink this script into
# /etc/rc.d/init.d/ and then use chkconfig(8) to automatically start
# ZEO at boot time.

# chkconfig: 345 90 10
# description: start a ZEO server

PYTHON=/usr/local/zope/py235/bin/python
ZODB3_HOME=/usr/local/zope/278/lib/python

CONFIG_FILE=/usr/local/zope/instance2/var/zeo/etc/zeo.conf

PYTHONPATH=$ZODB3_HOME
export PYTHONPATH

ZEOCTL=$ZODB3_HOME/ZEO/zeoctl.py

exec $PYTHON $ZEOCTL -C $CONFIG_FILE ${1+$@}
~

Where can I grab a copy of the correct file?
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] TinyTablesPlus How To??

2006-09-04 Thread beno

Andreas Jung wrote:



--On 3. September 2006 17:12:04 -0400 beno [EMAIL PROTECTED] wrote:


Hi;
I've installed TinyTablesPlus, but how do I use it? I can't find any
documentation!



Beno, do yourself and us a favor: open your eyes before posting.
TinyTablesPlus contains a 250 line long README.txt which explains the 
usage

of the product.
Strange. I have version 0.9 and I could not find it! So, I just now 
downloaded a new copy and untarred it and there it was. Must have gotten 
deleted somehow.
As for Dennis Allison's comment, of course, I just want to know about 
this feature so I can add it to my toolbox :)

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] MailBoxer Problem Found...But Not Solved

2006-09-04 Thread beno

Hi;
I believe I have traced the mailboxer problem I am having. I have caught 
the following seemingly innocuous error in the ZMI error log:


Time2006/09/04 14:16:02.371 Universal
User Name (User Id) beno (beno)
Request URL http://202.71.106.119:7080/error_log/manage_workspace
Exception Type  Redirect
Exception Value http://202.71.106.119:7080/error_log/manage_main

Traceback (innermost last):

   * Module ZPublisher.Publish, line 101, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 39, in call_object
   * Module App.Management, line 85, in manage_workspace

Redirect: http://202.71.106.119:7080/error_log/manage_main

Display traceback as text59 
http://202.71.106.119:7080/error_log/getLogEntryAsText?id=1157379362.370.195668928932


51


 REQUEST


 form


 cookies

dtpref_rows '20'
dtpref_cols '95%'
tree-s  'eJzTyCkw5NLIKTDiClZ3hANPW3WuAmOuxEQ9AIO2B9g'
_ZopeId '79820811A2fzfXbQQGY'


 lazy items

SESSION 	bound method SessionDataManager.getSessionData of 
SessionDataManager instance at cf4faa0



 other

TraversalRequestNameStack   []
AUTHENTICATED_USER  beno
URL 'http://202.71.106.119:7080/error_log/manage_workspace'
SERVER_URL  'http://202.71.106.119:7080'
AUTHENTICATION_PATH ''
PUBLISHED 	bound method SiteErrorLog.manage_workspace of SiteErrorLog 
at /error_log

URL1'http://202.71.106.119:7080/error_log'
ACTUAL_URL  'http://202.71.106.119:7080/error_log/manage_workspace'
URL0http://202.71.106.119:7080/error_log/manage_workspace
URL1http://202.71.106.119:7080/error_log
URL2http://202.71.106.119:7080
BASE0   http://202.71.106.119:7080
BASE1   http://202.71.106.119:7080
BASE2   http://202.71.106.119:7080/error_log
BASE3   http://202.71.106.119:7080/error_log/manage_workspace


 environ

HTTP_COOKIE 	'dtpref_cols=95%; dtpref_rows=20; 
tree-s=eJzTyCkw5NLIKTDiClZ3hANPW3WuAmOuxEQ9AIO2B9g; 
_ZopeId=79820811A2fzfXbQQGY'
SERVER_SOFTWARE 	'Zope/(Zope 2.7.8-final, python 2.3.5, freebsd5) 
ZServer/1.1 Plone/Unknown'

SCRIPT_NAME ''
REQUEST_METHOD  'GET'
PATH_INFO   '/error_log/manage_workspace'
SERVER_PROTOCOL 'HTTP/1.1'
channel.creation_time   1157378993
CONNECTION_TYPE 'keep-alive'
HTTP_ACCEPT_CHARSET 'ISO-8859-1,utf-8;q=0.7,*;q=0.7'
HTTP_USER_AGENT 	'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 
rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6'

HTTP_REFERER'http://202.71.106.119:7080/error_log/manage_main'
SERVER_NAME 'localhost.web.vi'
REMOTE_ADDR '67.46.93.3'
PATH_TRANSLATED '/error_log/manage_workspace'
SERVER_PORT '7080'
HTTP_HOST   '202.71.106.119:7080'
HTTP_ACCEPT 
'text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5' 


GATEWAY_INTERFACE   'CGI/1.1'
HTTP_ACCEPT_LANGUAGE'en-us,en;q=0.5'
HTTP_ACCEPT_ENCODING'gzip,deflate'
HTTP_KEEP_ALIVE '300'


Now, that error is definitely from the email I sent. Even the 
REMOTE_ADDR matches. Here's where the problem arises:
* I don't use Apache, and I'd rather not have to if I can get away with 
it. Just one more program to maintain.
* I use Pound on my front end, which passes requests to Squid, which in 
turn passes them to Zope. This is a pretty common procedure for people 
using Pound/Zope.
* As a result, if I want to send requests *directly* to Zope, I need to 
use the IP address. That's why I've entered the following in my 
/etc/aliases file (which is also now in my 
/var/qmail/aliases/.qmail-l33tm4il file, which one how-to said to use if 
qmail is your mail server, as mine is):
   rejoice: |smtp2zope.py 
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer 2


Apparently, MailBoxer doesn't like that. Apparently, it wants a web 
address, like rejoice.2012.vi, in my case. But that won't get past Pound 
:( What do? Which file should I hack to get it to accept the IP address?

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Problem Found...But Not Solved

2006-09-04 Thread beno

Dieter Maurer wrote:

beno wrote at 2006-9-4 10:24 -0400:
  
I believe I have traced the mailboxer problem I am having. I have caught 
the following seemingly innocuous error in the ZMI error log:


Time2006/09/04 14:16:02.371 Universal
User Name (User Id) beno (beno)
Request URL http://202.71.106.119:7080/error_log/manage_workspace
Exception Type  Redirect
Exception Value http://202.71.106.119:7080/error_log/manage_main



Not sure whether I already told *you* (or someone else) that
Redirect exceptions are *NORAML* behaviour and no error conditions
*AT ALL*.

Thus, reconfigure your error_log to ignore Redirect and
forget about any error analysis for them
  
I've done as you suggested. That being the case, however, I'm back to 
square one. Now, all the how-to's I've read on MailBoxer indicate it's 
easy to set up. Therefore, that suggests the problem I'm experiencing is 
probably rooted in something different about my system. The most logical 
difference to me is Pound. But it could be a combination of things, such 
as Pound, Qmail, Squid and FreeBSD. At any rate, I need to track this 
down. Frankly, I though (and still suspect) that the fact that the site 
2012.vi:7080 doesn't resolve because of the Pound/Squid/Zope interface 
but 202.71.106.119:7080 does combined with the fact that I have to send 
my email to [EMAIL PROTECTED] (mail being the SMTP) was causing the 
problem. But what I really need is to catch an error, and so far I 
haven't been able to. I've looked in

Z2.log
events.log
/var/log/squid/cache.log
/var/log/messages
/var/log/qmail/qmail-send/current
qmail-smtp/current
qmail-pop3/current
with no luck. Where else should I be looking?
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] TinyTablesPlus How To??

2006-09-03 Thread beno

Hi;
I've installed TinyTablesPlus, but how do I use it? I can't find any 
documentation!

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZEO Problem

2006-09-02 Thread beno

Hi;
I'm reading the Plone book. It states that for Zope 2.7 (I have 2.78) 
ZEO is built in by default but must be instantiated thus:


cd /opt/Zope-2/7/bin
./mkzeoinstance /var/zeo

or some such code. So I tried this:

cd /usr/local/zope/278/bin
./mkzeoinstance.py ../../instance2/var/zeo

where 278 is my installation, instance2 is a Zope instance (I have 3), 
and mkzeoinstance.py is the command that works (mkzeoinstance by itself 
doesn't print anything to screen other than a command failed message). 
The Plone book then states that I must move Data.fs into the new 
/zeo/var dir, which I did. Everything seems to go well. If I start Zope 
using runzope I get this output at the tail end:


--
2006-09-02T13:15:35 INFO(0) Zope Ready to handle requests

However, if I try to log into the ZMI my passwords don't work. I even 
tried creating an emergencyuser and that didn't work, either. What to 
do? Also, should I move these other files into the new zeo/var dir?


Data.fs.index   
Data.fs.lock
Data.fs.old  
Data.fs.tmp 

I tried that, also, with negative results, but it seems to me that if 
I'm moving Data.fs I should move these others as well.

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZEO Problem

2006-09-02 Thread beno

I got this working by changing the following in zope.conf:
   server localhost:7080
to
   server 202.71.106.119:
Apparently, it needs its own port?
TIA,
beno


Jonathan wrote:


- Original Message - From: beno [EMAIL PROTECTED]
To: zope@zope.org
Sent: Saturday, September 02, 2006 9:24 AM
Subject: [Zope] ZEO Problem



Hi;
I'm reading the Plone book. It states that for Zope 2.7 (I have 2.78) 
ZEO is built in by default but must be instantiated thus:


cd /opt/Zope-2/7/bin
./mkzeoinstance /var/zeo

or some such code. So I tried this:

cd /usr/local/zope/278/bin
./mkzeoinstance.py ../../instance2/var/zeo

where 278 is my installation, instance2 is a Zope instance (I have 
3), and mkzeoinstance.py is the command that works (mkzeoinstance by 
itself doesn't print anything to screen other than a command failed 
message). The Plone book then states that I must move Data.fs into 
the new /zeo/var dir, which I did. Everything seems to go well. If I 
start Zope using runzope I get this output at the tail end:


--
2006-09-02T13:15:35 INFO(0) Zope Ready to handle requests


In your .../log/events.log file you should see some zeo connection 
activity, like:



2006-09-02T08:11:17 INFO Zope Ready to handle requests
--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) ClientStorage 
(pid=3196) created RW/normal for storage: '1'

--
2006-09-02T08:11:44 INFO ZEO.cache created temporary cache file 
'fdopen'

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Testing connection 
ManagedClientConnection ('194.164.124.4', 8100)

--
2006-09-02T08:11:44 INFO ZEO.zrpc.Connection(C) (194.164.124.4:8100) 
received handshake 'Z303'

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Server 
authentication protocol None

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Connected to 
storage: ('sparrow.conetra.com', 8100)

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Verifying cache
--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Waiting for cache 
verification to finish

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) Waiting for cache 
verification to finish

--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) endVerify finishing
--
2006-09-02T08:11:44 INFO ZEO.ClientStorage (3196) endVerify finished
--


This will tell you that your zeo client is connected to the zeo server



However, if I try to log into the ZMI my passwords don't work. I even 
tried creating an emergencyuser and that didn't work, either. What to 
do? Also, should I move these other files into the new zeo/var dir?


Data.fs.index   Data.fs.lockData.fs.old 
Data.fs.tmp


All you need is Data.fs.

Data.fs.index will be recreated if it is not found when zope starts
Data.fs.old is created when you pack your zodb
You can safely ignore the .lock and .tmp files (they are created by 
Zope as needed)




Jonathan





___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ZEO Problem

2006-09-02 Thread beno

Jonathan wrote:

I got this working by changing the following in zope.conf:
   server localhost:7080
to
   server 202.71.106.119:
Apparently, it needs its own port?
TIA,
beno


You need to make sure that the entry in your zeo client config file 
(zope.conf)

eg

zeoclient
  server 194.123.123.123:8100


matches the entry in your zeo server config file (zeo.conf)
eg.

zeo
  address 8100

and that your zeo server is running on the ip address specified in the 
zeoclient entry in zope.conf

That's logical. Why does zeo need its own port?
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] SecurityInfo Conflicting security declarations

2006-09-02 Thread beno

Hi;
I noticed in my events log the following:

2006-09-02T15:13:50 PROBLEM(100) SecurityInfo Conflicting security 
declarations for getViewTOCValue

--
2006-09-02T15:13:50 PROBLEM(100) SecurityInfo Class 
PloneArticleMultiPage had conflicting security declarations


How do I trouble-shoot these?
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Question

2006-08-24 Thread beno

Philip Kilner wrote:

Hi,

beno wrote:
  

Apache duplicates 95% of what Zope's server does, so if you're only
using Zope, then it's un-elegant to use Apache.



Not so - Apache is a mature production web server, Zope is an
application server that serves over HTTP, but it's HTTP server is *not*
designed for production use.
  
Well, all I know is that Pound has a strong following of Zopistas that 
use it in combination with Zope (and without Apache) for high volume 
production work and seem to be happy.
  

the rewrite rules you have to throw at Apache are awkward



You may think so, but they are the supported, documented solution: -

http://www.plope.com/Books/2_7Edition/VirtualHosting.stx
  

Pound is also supported :)
  

Zope can't handle cgi
scirpts



That is because Zope is an application server, not a web server.
  

Whatever, but if I don't need cgi scripts, what do I care?
  

I find the tokens yourMailHost
and yourDomain terribly unclear.




I simply don't understand that. It's off topic, but here goes: -

My domain is xfr.co.uk, and I have a mail host called smtp (because
that is what it serves). So, the token yourMailHost refers to the mail
host name and the yourDomain refers to the domain name, so to send me
mail, you make an SMTP connection to smtp.xfr.co.uk.
  

Ah! So *that's* what it meant! Thank you!
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] MailBoxer, Qmail and smtp2zope.py

2006-08-24 Thread beno

Hi;
Apparently, MailBoxer must be configured a little differently for qmail:

http://www.zope.org/Members/adytumsolutions/docs/MailBoxer

Following their advice, I created the following file:

server167# vi /var/qmail/alias/.qmail-rejoice
rejoice:| smtp2zope.py 
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer 2


where rejoice is the name of the list, the IP and port are correct, 
rejoice.2012.vi is the folder and rejoice the instance of MailBoxer.

Incidentally, surfing to that URL throws an error (see below).

I have put a copy of smtp2zope.py here:

/var/qmail/bin/smtp2zope.py

Is that correct?

My mailto is
[EMAIL PROTECTED]
where mail is the smtp and rejoice.2012.vi is the URL.
I try subscribing by sending an email to that address with subscribe 
in the subject, but I collect it in the email box I set up for that 
address in vpopmail. I have also tried this without said mailbox in 
vpopmail, but then the email just bounces. Either way, nothing ever ends 
up in the maillist, nor do I ever get an email telling me I've been 
subscribed. What am I doing wrong?

TIA,
beno

PS. Error from surfing to 
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer


*KeyError*

Sorry, a site error occurred.

Traceback (innermost last):

   * Module ZPublisher.Publish, line 175, in publish_module_standard
   * Module Products.PlacelessTranslationService.PatchStringIO, line
 34, in new_publish
   * Module ZPublisher.Publish, line 132, in publish
   * Module Zope.App.startup, line 204, in zpublisher_exception_hook
   * Module ZPublisher.Publish, line 101, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 39, in call_object
   * Module Products.MailBoxer.MailBoxer, line 348, in manage_mailboxer
   * Module Products.MailBoxer.MailBoxer, line 661, in checkMail
   * Module Products.MailBoxer.MailBoxer, line 975, in getMailFromRequest
   * Module ZPublisher.HTTPRequest, line 1217, in __getitem__

KeyError: 'Mail' (Also, an error occurred while attempting to render the 
standard error message.)



___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Stupid Question

2006-08-23 Thread beno

Hi;
On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
|[EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example?
TIA,
beno
|
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Stupid Question

2006-08-23 Thread beno

Andreas Jung wrote:



--On 23. August 2006 13:38:10 -0400 beno [EMAIL PROTECTED] wrote:


Hi;
On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
| [EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example?


The docs say:


After adding a MailBoxer (see below) you can send all your messages to 
[EMAIL PROTECTED]



Is it so hard to understand to replace the example email address with
the one you have configured for your Mailboxer?
Well, the list is called rejoice, the Web site in question is called 
rejoice.2012.vi and I tried this address: [EMAIL PROTECTED]. It didn't 
work. So I tried this address: [EMAIL PROTECTED]. On that one, I 
didn't get a bounce but I didn't show up in the Properties::maillist, 
either, nor did I receive a welcome message :( You wouldn't mind 
providing an example for me, would you? Frankly, I find the tokens 
yourMailHost and yourDomain rather unclear.

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Let's Try This AGAIN::MailBoxer

2006-08-23 Thread beno
I would appreciate anyone's response to this question EXCEPT Andreas 
Jung, who responds, clogs things up, and provides no useful information.


On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
|[EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example? The list is 
called rejoice, the Web site in question is called rejoice.2012.vi 
and I tried this address: [EMAIL PROTECTED]. It didn't work. So I tried 
this address: [EMAIL PROTECTED]. On that one, I didn't get a 
bounce but I didn't show up in the Properties::maillist, either, nor did 
I receive a welcome message :( Frankly, I find the tokens yourMailHost 
and yourDomain terribly unclear.


TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ONE MORE TIME MAILBOXER!!!!!!!!

2006-08-23 Thread beno
I would appreciate anyone's response to this question EXCEPT Andreas 
Jung AND/OR Jens Vagenpohl, who respond, clogs things up, and provide no 
useful information.


On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
|[EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example? The list is 
called rejoice, the Web site in question is called rejoice.2012.vi 
and I tried this address: [EMAIL PROTECTED]. It didn't work. So I tried 
this address: [EMAIL PROTECTED]. On that one, I didn't get a 
bounce but I didn't show up in the Properties::maillist, either, nor did 
I receive a welcome message :( Frankly, I find the tokens yourMailHost 
and yourDomain terribly unclear.


TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] ONE MORE TIME MAILBOXER!!!!!!!!

2006-08-23 Thread beno

[EMAIL PROTECTED] wrote:

You're really not going to win any friends, or get any help, with this
approach. 
  
Sometimes it's the only way to get past the arrogant belligerent list 
subscribers who choose to make miserable the lives of those of us who 
ask questions they consider stupid :) And it worked, didn't it?

Your question is a very basic. If you don't understand what the
documentation is trying to describe you might want to read some
intro-level mail-related documentation. 
  
The question appears simple. Maybe it is. Maybe, however, it only 
appears to be simple. I've been working in Zope for years, and have done 
a lot in email, actually.

Additionally, when debugging it's always good to look at the
appropriate logs and provide the relevant entries from those as well as
error messages you received, as part of your question. A bounced
message will, generally, tell you why - which can be enlightening. The
mail logs on your system will provide other hints as to what's going
wrong. Obviously there's an assumption that you have tried to resolve
your problem based on the log/error information you've gotten.
  

Of course. And I did that. Here's what I found:

server167# grep [EMAIL PROTECTED] 
/usr/local/zope/instance2/log/Z2.log

Nothing.

Error Log (in Zope TTW interface)
Nothing.

Thank you for responding. Here is my question once again:

On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
|[EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example? The list is 
called rejoice, the Web site in question is called rejoice.2012.vi 
and I tried this address: [EMAIL PROTECTED]. It didn't work. So I tried 
this address: [EMAIL PROTECTED]. On that one, I didn't get a 
bounce but I didn't show up in the Properties::maillist, either, nor did 
I receive a welcome message :( Frankly, I find the tokens yourMailHost 
and yourDomain terribly unclear.


TIA,
beno

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Question

2006-08-23 Thread beno

Chris Withers wrote:

beno wrote:
As far as Andreas' comment of switching to Mailman, dunno why, but 
Mailman requires cgi scripts, and I use Pound as reverse proxy 
directly to Zope, 


Why don't you use Apache, like every other sane individual out there?
Actually, there are a *lot* of people who *don't* use Apache! Here's 
why: Apache duplicates 95% of what Zope's server does, so if you're only 
using Zope, then it's un-elegant to use Apache. Not a good, clean 
solution at all! Besides, the rewrite rules you have to throw at Apache 
are awkward, and that's the reason why!  However, Zope can't handle cgi 
scirpts, and Mailman uses cgi scripts. That's one reason I don't want 
Mailman. Furthermore, MailBoxer could be more easily integrated into 
Plone, because it's integrated into Zope, therefore sharing password 
information, etc., would be easier, and that makes MailBoxer a more 
logical choice. I always prefer Zope products over non-Zope products for 
integration purposes. Now...


Will *you* answer my question?

On this page (of a Zope product):
http://iungo.org/products/MailBoxer/
there is the instruction to send an email to this address:
|[EMAIL PROTECTED]
What exactly does that mean? Can someone give me an example? The list is 
called rejoice, the Web site in question is called rejoice.2012.vi 
and I tried this address: [EMAIL PROTECTED]. It didn't work. So I tried 
this address: [EMAIL PROTECTED]. On that one, I didn't get a 
bounce but I didn't show up in the Properties::maillist, either, nor did 
I receive a welcome message :( Frankly, I find the tokens yourMailHost 
and yourDomain terribly unclear.


TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] MailBoxer Question

2006-08-22 Thread beno

Hi;
The creator of this Product hasn't returned my email, so I am asking the 
list for help. I have done the following:


* OS is FreeBSD 6.1, Zope is 2.7.8
* Installed with MaildropHost (also have SecureMailHost). Followed all 
instructions in MaildropHost.
* Installed smtp2zope.py in /var/qmail/bin (I use qmail, so I presume 
this is correct??).

* Added a new alias in /etc/aliases as per instructions.
* I have an already existing MailHost (although this appears to not be 
an issue, because of MaildropHost).

* Successfully created and populated a MailBoxer folder.

Now...how does it work?? Surfing to the index page shows an empty 
archive! How does one subscribe to and email and administer the list?

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Question

2006-08-22 Thread beno

Joerg Baach wrote:

I can't tell about the qmail side of things, as I am pulling the email
from a pop3 box. But on the administration side: have a look at the
properties panel of the Mail Boxer in the ZMI. 

I think I've got a handle on that...

The variable 'maillist'
contains the subscribed emails.

Subscribing / unsubscribing via email is explained on:

http://iungo.org/products/MailBoxer/
  
Well, one thing I noticed I did wrong off the bat was in /etc/aliases I 
had a line .../manage_main where it should have been 
../manage_mailboxer. That's changed. However, that page you reference 
says: People can subscribe/unsubscribe your list by sending an 'signed' 
email with a specified email-subject (not body!!!) to the same address 
where the postings will go. What is the signature? How do I edit that?

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Question

2006-08-22 Thread beno

Andreas Jung wrote:
You might try it out yourself (before asking) by opening your mail 
client and sending an email with the subject subscribe to your new 
list address.
That did not work. It came to the mailbox directly. Here is my line from 
/etc/aliases:


rejoice:| smtp2zope.py 
http://202.71.106.119:7080/rejoice.2012.vi/rejoice/manage_mailboxer


where rejoice is the name of the list and the name of the mailboxer 
instance within folder rejoice.2012.vi.

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] MailBoxer Question

2006-08-22 Thread beno

Joerg Baach wrote:

For example: To subscribe to the list send a mail with the subject (not
the body) subscribe (without quotes!) to [EMAIL PROTECTED]
  
Yes, I did read that. I must misunderstand it. This is what I think it 
means, and I'm wrong, because my email client won't let me send it:


[EMAIL PROTECTED]://202.71.106.119:7080/MailHost/manage_main.rejoice.2012.vi

Can you provide me with a correct example of it? I did read the 
instructions. What they lack is examples for those of us less 
technically inclined than the author :)


As far as Andreas' comment of switching to Mailman, dunno why, but 
Mailman requires cgi scripts, and I use Pound as reverse proxy directly 
to Zope, so I don't even know how to run cgi scripts, since Zope doesn't 
support them. That's why I googled up MailBoxer, and it looks like a 
good product.

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope.conf File and Pound

2006-08-22 Thread beno

Hi;
I need to implement SSL. So I nosed around /etc/zope.conf and found 
several containers for ports, but no ssl-server container. Why? How 
do I get Zope to listen, for example, on port 8443?


For those who use Pound (and perhaps this is better addressed to the 
Pound ML), it is written one should add this:

python -X -w 8080 -y 8443
to the start file, but doesn't specify which file that is. It clearly 
isn't zope.conf, it doesn't look like zopectl or zopectl.py, either.

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: [Setup] Re: Can't Get Products To Show Up!

2006-08-21 Thread beno

René Pijlman wrote:

beno wrote:

$ln -s /path_to_products/ /path_to_zope_instance/Prodcuts/

^^
There's your problem.
But I did not write that! Someone else wrote/suggested that!! My 
symlinks were fine. I ripped them all out :) I emptied the Plone-2.5.0 
dir and dropped it all in the main Products dir. Then I stopped Zope and 
used runzope to track errors. I got a number of them, one quoted 
below. Here are the packages I had to take out of the Products dir to 
get Zope to boot:


ATContentTypes  CMFPloneMarshall
ATReferenceBrowserWidgetCMFQuickInstallerTool   
MimetypesRegistry
Archetypes  CMFSetup
PasswordResetTool
CMFActionIcons  CMFTopic
PloneLanguageTool

CMFCalendar CMFUid  PlonePAS
CMFCore DCWorkflow  
PluggableAuthService

CMFDefault  PortalTransforms
CMFDynamicViewFTI   Five
ResourceRegistries

CMFFormController   GenericSetup
CMFPlacefulWorkflow GroupUserFolder

In other words, almost everything! (The other prods have showed up in 
the Zope.) Here's a typical error message from trying to load one of them:


2006-08-21T17:43:03 ERROR(200) Zope Could not import Products.ATContentTypes
Traceback (most recent call last):
 File /usr/local/zope/278/lib/python/OFS/Application.py, line 673, in 
import_product

   product=__import__(pname, global_dict, global_dict, silly)
 File /usr/local/zope/instance2/Products/ATContentTypes/__init__.py, 
line 35, in ?

   from Products.ATContentTypes.config import HAS_LINGUA_PLONE
 File /usr/local/zope/instance2/Products/ATContentTypes/config.py, 
line 30, in ?

   from Products.ATContentTypes.configuration import zconf
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/__init__.py, 
line 25, in ?

   from Products.ATContentTypes.configuration.config import zconf
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/config.py, 
line 29, in ?

   from Products.ATContentTypes.configuration.schema import atctSchema
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/schema.py, 
line 29, in ?

   from Products.ATContentTypes.configuration import datatype
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/datatype.py, 
line 25, in ?

   from Products.CMFCore import permissions as CMFCorePermissions
ImportError: cannot import name permissions
Traceback (most recent call last):
 File /usr/local/zope/278/lib/python/Zope/Startup/run.py, line 50, in ?
   run()
 File /usr/local/zope/278/lib/python/Zope/Startup/run.py, line 19, in run
   start_zope(opts.configroot)
 File /usr/local/zope/278/lib/python/Zope/Startup/__init__.py, line 
52, in start_zope

   starter.startZope()
 File /usr/local/zope/278/lib/python/Zope/Startup/__init__.py, line 
231, in startZope

   Zope.startup()
 File /usr/local/zope/278/lib/python/Zope/__init__.py, line 47, in 
startup

   _startup()
 File /usr/local/zope/278/lib/python/Zope/App/startup.py, line 45, in 
startup

   OFS.Application.import_products()
 File /usr/local/zope/278/lib/python/OFS/Application.py, line 650, in 
import_products

   import_product(product_dir, product_name, raise_exc=debug_mode)
 File /usr/local/zope/278/lib/python/OFS/Application.py, line 673, in 
import_product

   product=__import__(pname, global_dict, global_dict, silly)
 File /usr/local/zope/instance2/Products/ATContentTypes/__init__.py, 
line 35, in ?

   from Products.ATContentTypes.config import HAS_LINGUA_PLONE
 File /usr/local/zope/instance2/Products/ATContentTypes/config.py, 
line 30, in ?

   from Products.ATContentTypes.configuration import zconf
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/__init__.py, 
line 25, in ?

   from Products.ATContentTypes.configuration.config import zconf
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/config.py, 
line 29, in ?

   from Products.ATContentTypes.configuration.schema import atctSchema
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/schema.py, 
line 29, in ?

   from Products.ATContentTypes.configuration import datatype
 File 
/usr/local/zope/instance2/Products/ATContentTypes/configuration/datatype.py, 
line 25, in ?

   from Products.CMFCore import permissions as CMFCorePermissions
ImportError: cannot import name permissions


TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


POUND AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!

2006-08-16 Thread beno -
To summarize, I'm newly using Pound as a reverse-proxy for Zope. I'm using VHM mapping to pass the requests to the appropriate folders in Zope. I have some clients who can't see their sites, but I and many others can. They get this message: "Zope \n Welcome to Web.vi" which is my site (web.vi). I can see the sites just fine. And I can't find a bug anywhere!!!jens wrote: "Posted with no comments"?? You can read, can you? This is now the third time (read: 3) that I'm telling  you that these entries are not errors. NotFound (or 404) is completely normal. Stop looking at them! Okay, okay, BUT JENS... It's been over a WEEK that my client can't see her site AND I DON'T KNOW WHY!! Here's what I'm doing:* Checking the error log for messages. The only ones I get are the ones you say are normal (even with those brackets "[" and "]", right?)* Checking the Z2.log and find nothing amiss.* What else should I check?I'm
 desperate! Please understand!! Here are examples (to which Jens complains) from Z2.log of client sites that apparently don't render for many people trying to hit them, but these examples look perfectly normal to me:202.71.106.119 - Anonymous [16/Aug/2006:00:27:36 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?sku=F-0400 HTTP/1.1" 200 24163 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_frame.pt?category=foxys_lager""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"202.71.106.119 - Anonymous [16/Aug/2006:00:27:36 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?sku=F-0450 HTTP/1.1" 200 12894 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_frame.pt?category=foxys_lager""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"202.71.106.119 - Anonymous [16/Aug/2006:00:27:37 +] "GET
 /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?sku=F-0480 HTTP/1.1" 200 37165 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_frame.pt?category=foxys_lager""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"202.71.106.119 - Anonymous [16/Aug/2006:00:27:37 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?sku=F-0500 HTTP/1.1" 200 15901 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_frame.pt?category=foxys_lager""Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" To be honest, looking at the insane _javascript_ stuff that you invoke several times over before even  showing any content I am surprised anyone can view the site. You should ditch all the useless code  that tries several times over to guess screen sizes. If you actually paid someone to write that steaming  pile of _javascript_ you need to get a
 lawyer.  Sorry you don't like my JS, Jens. I'm happy with it. But I thought perhaps it might be somehow interfere with the rendering of the site for the client, even though it hadn't before I went to Pound. So I replaced it with a bare-bones DTML page for the index_html and it still didn't render for the client.3TIA,beno 
	
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: POUND/VHM AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!

2006-08-16 Thread beno -
[EMAIL PROTECTED] wrote:i would suggest that you find out the ipnumbers of the users who arehaving problems. with that information, then search your logs forentries for their connections, and examine those. that way you'lllikely have a better idea of what to look at.Right, good idea :) Here are the beginnings of some of those numbers:66.185204.870.8512.161I opened Z2.log and tried to find those number like this:/66.185but nothing came of it. So I tried things like this:grep "66.185"
 /var/log/messagesand nothing came up that way either :( What do?[between your cookies and _javascript_ i did find the one site unusable -i default to having both off and your site just kept looping.]You must be using Firefox with plug-ins. I have the same problem, although people who use a more stripped-down version of FF apparently don't.Thanks,beno Original Message  Date: Wednesday, August 16, 2006 07:34:26 AM -0700 From: beno - <[EMAIL PROTECTED]> To: zope@zope.org Subject: POUND AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!  To summarize, I'm newly using Pound as a reverse-proxy for Zope. I'm using VHM mapping to pass the requests to the appropriate folders in Zope. I have some clients who can't see their sites, but I and many others can. They get this message: "Zope \n Welcome to Web.vi" which is my
 site (web.vi). I can see the sites just fine. And I can't find a bug anywhere!!!  jens wrote:  "Posted with no comments"?? You can read, can you? This is now the third time (read: 3) that I'm telling  you that these entries are not errors. NotFound (or 404) is completely normal. Stop looking at them!   Okay, okay, BUT JENS... It's been over a WEEK that my client can't see her site AND I DON'T KNOW WHY!!  Here's what I'm doing: * Checking the error log for messages. The only ones I get are the ones you say are normal (even with those brackets "[" and "]", right?) * Checking the Z2.log and find nothing amiss. * What else should I check? I'm desperate! Please understand!!   Here are examples (to which Jens complains) from Z2.log of client sites that apparently don't render for many people trying
 to hit them, but these examples look perfectly normal to me:  202.71.106.119 - Anonymous [16/Aug/2006:00:27:36 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?s ku=F-0400 HTTP/1.1" 200 24163 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_fram e.pt?category=foxys_lager"  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 202.71.106.119 - Anonymous [16/Aug/2006:00:27:36 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?s ku=F-0450 HTTP/1.1" 200 12894 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_fram e.pt?category=foxys_lager"  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 202.71.106.119 - Anonymous [16/Aug/2006:00:27:37 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?s ku=F-0480 HTTP/1.1" 200 37165
 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_fram e.pt?category=foxys_lager"  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)" 202.71.106.119 - Anonymous [16/Aug/2006:00:27:37 +] "GET /800/s/c/x/en-us/EMarket/Our_Store/marketItems/fetchPhotoThumb?s ku=F-0500 HTTP/1.1" 200 15901 "http://blackbeardale.com/800/s/c/x/en-us/EMarket/Our_Store/Main_fram e.pt?category=foxys_lager"  "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"  To be honest, looking at the insane _javascript_ stuff that you invoke several times over before even  showing any content I am surprised anyone can view the site. You should ditch all the useless code  that tries several times over to guess screen sizes. If you actually paid someone to write that steaming  pile of _javascript_ you need to get a
 lawyer.Sorry you don't like my JS, Jens. I'm happy with it. But I thought perhaps it might be somehow interfere with the rendering of the site for the client, even though it hadn't before I went to Pound. So I replaced it with a bare-bones DTML page for the index_html and it still didn't render for the client. 3 TIA, beno   - Do you Yahoo!?  Everyone is raving about the  all-new Yahoo! Mail Beta.-- End Original Message -- 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: POUND/VHM AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!

2006-08-16 Thread beno -
So...* I cannot find any IP addresses in Z2.log that these clients would be using to access their sites.* I can find plenty of examples of my own IP address, so I know it's logging correctly.Therefore, it would appear that the requests coming from these clients aren't reaching Zope. DO YOU AGREE WITH THAT CONCLUSION?However, if they *aren't* reaching Zope, why do they receive a screen message like this: "Zope \n Welcome to Web.vi" where web.vi is my personal site?TIA,beno 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates starting at 1¢/min.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: POUND/VHM AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!

2006-08-16 Thread beno -
3Jens Vagelpohl [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE-Hash: SHA1Instead of continuing to stab in the dark, which you have been doing  the whole time, you need to spend the time to get familiar with the  tools you are using and with basic troubleshooting techniques. Wonderful, Jens. So, what do you suggest? I would have thought Z2.py and/or the error logs would help me out here, but they aren't. Apparently, these aren't the tools I should be using, but what are if these aren't?? 
		Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: POUND AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug!

2006-08-16 Thread beno -
33Dennis Allison [EMAIL PROTECTED] wrote: On Wed, 16 Aug 2006, beno - wrote:Have you checked your Poound configuration file Since it sounds like you know something about Pound, here's a snip from the pound.cfg file: Service HeadRequire "Host:
 .*mrtablecloth-vi.com.*" BackEnd Address 202.71.106.119 Port 8080 End Endwhich is then mapped via VHM like this:mrtablecloth-vi.com/mrtablecloth-vi.comand the name of the client file in root is indeed "mrtablecloth-vi.com". Again, I can hit this site just fine, so why can't the client?One thing to be wary about although I am not sure whether it is the sourceof your problem the order in which thing appear in the Pouondcontifugation file.  The regular expressions are applied sequentially inthe order they appear in the configuration file, first match wins.  Youalso should be sure you have a default in the Pound configuration.I don't use any regex in that file.Also, since VHM is a match/rewrite system on the URLs, you need to be surethat what you are generating from Pound matches VHM's
 expectations.Answered above.BTW, which version of Pound are you using?2.1TIA,beno 
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: POUND AND ZOPE HELL!!! was: Re: [Zope] Can't Find This Bug

2006-08-16 Thread beno -
2Dennis Allison [EMAIL PROTECTED] wrote: Ummm... the HeadRequire directive is matched with a regex.  See the code to establish which of the several possible C libraries is used as there are minor variations in syntax.Why is the backend address on the open net?  I would have expected that you would have used 127.0.0.1 for a single machine or one a non-routable address for a cluster.  I was confused and found something that worked. I just updated to 127.0.0.1 as per your suggestion and restarted Pound, all is well.What does your zope.conf look like.  Here it is
 without comments:%define INSTANCE /usr/local/zope/instance1%define ZOPE /usr/local/zope/278instancehome $INSTANCE effective-user tickeventlog level INFO logfile path $INSTANCE/log/event.log level info /logfile/eventloglogger access level WARN logfile path $INSTANCE/log/Z2.log format %(message)s /logfile/loggerhttp-server # valid keys are "address" and "force-connection-close" address 8080 # force-connection-close on/http-serverftp-server # valid key is "address" address 8021/ftp-serverzodb_db main # Main FileStorage database
 filestorage path $INSTANCE/var/Data.fs /filestorage mount-point //zodb_dbzodb_db temporary # Temporary storage database (for sessions) temporarystorage name temporary storage for sessioning /temporarystorage mount-point /temp_folder container-class Products.TemporaryFolder.TemporaryContainer/zodb_dbI noticed as I copied this that the "effective-user" of "tick" was recently deleted from the ACL_Users folder, so I just re-added it. I'll contact the client and see if that helped.What IPs is Zope listening to?  What ports?   Well, I don't see that in the zope.conf file, but Zope published pages for me just fine when Pound was pointing to 202.71.106.119:8080 and now
 to 127.0.0.1:8080. Likewise, what IPs and ports is pound listening to? Pound listens to 202.71.106.119:80Thanks,beno 
	
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta. 
	
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Rebuilding, Got Questions

2006-08-16 Thread beno -
2Mikhail Goriachev [EMAIL PROTECTED] wrote:Read all your material, thank you! Got lots more questions, but this should clear it up:* Which ezm3 should I d/l if I want to build FBSD on an i386 box? Is this the option? ftp://ftp.freebsd.org/pub/FreeBSD/CVSup/ezm3/ezm3-1.0-NetBSDi386-boot.tar.bz2* Which one isn't set up to work with a GUI? The link on this page is broken: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html* Where do I get these files: /usr/src/UPDATING and /usr/src/Makefile? * What happens if my Internet connection is dropped while I'm doing mergemaster?* How do I make sure userland and the new kernel are synchronized before rebooting?* How do I make sure the new kernel is
 capable of booting before actually rebooting?After CVSup is installed...synch your source to 6.1 # How?cvsup -g -L 2 supfiled /usr/srcmake clean;make cleanworldmake buildworldcd /usr/src/sys/i386/conf/# back up any custom config there iscp GENERIC BACKUP_CONFIGcd /usr/srcmake buildkernel KERNCONF=MYKERNELmake installkernel KERNCONF=MYKERNELsh /etc/rc.shutdown  # kills all your servicespkill sendmailpkill syslogdmergemaster -pmake installworldmergemasterrebootportmaster -u -fmake delete-old-libsShould I throw these flags? make buildkernel KERNCONF=MYKERNEL make installkernel KERNCONF=MYKERNELThis won't kill my ssh, will it? sh /etc/rc.shutdownHow do I synch my source to 6.1?TIA,beno 
		Stay in the know. Pulse on the new Yahoo.com.  Check it out. 
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Can't Find This Bug!

2006-08-15 Thread beno

Hi;
I've been trying for days but I can't track this bug. My client and some 
of her customers can't hit their site:

http://mrtablecloth-vi.com/
but I can hit it just fine (as well as most people). The client reports 
a Welcome to Web.vi \n Zope page (where web.vi is my URL and the box 
is localhost.web.vi). I'm using Pound as a reverse proxy, but clearly 
it's passing Pound because Zope is coming up on the page. I'm using 
mapping in VHM which I assume is working since I can see the page. I've 
checked Z2.log and found nothing unusual (shared results in earlier 
posts). I see this in the errors log:


User (None) 	NotFound: http://www.mrtablecloth-vi.com/EMarket [ 
/Store/Tablecloths/images/men... 
http://202.71.106.119:8080/error_log/showEntry?id=1155662240.180.381228250462 

17:17:08 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ /corner_top_left.gif/resize ] 
http://202.71.106.119:8080/error_log/showEntry?id=1155662228.230.651302204005 

17:17:08 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ /pixel.gif ] 
http://202.71.106.119:8080/error_log/showEntry?id=1155662228.220.273020100189 

17:17:01 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ /border_top.gif/resize ] 
http://202.71.106.119:8080/error_log/showEntry?id=1155662221.920.195539952566 

17:16:56 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ /border_bottom.gif/resize ] 
http://202.71.106.119:8080/error_log/showEntry?id=1155662216.750.439680314462 

17:16:55 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ /clothing.jpg/resize ] 
http://202.71.106.119:8080/error_log/showEntry?id=1155662215.210.000893402756093 

17:16:51 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ 
/corner_bottom_right.gif/resiz... 
http://202.71.106.119:8080/error_log/showEntry?id=1155662211.310.876987707782 

17:16:49 	Anonymous User (None) 	NotFound: 
http://www.mrtablecloth-vi.com/images [ 
/corner_bottom_left.gif/resize... 
http://202.71.106.119:8080/error_log/showEntry?id=1155662209.830.156037522536 




and I've posted this kind of stuff before with no comments, however, I 
still don't understand what those brackets are all about and why it's 
throwing an error, although I suspect that the page would still try to 
render even if it couldn't pull down those graphics. Can anyone please 
suggest how I can track this bug?

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] LocalFS/Zope CGI Question

2006-08-09 Thread beno

Hi;
I've added a LocalFS folder for my cgi-bin dir and also Zope CGI, but 
I'm not clear how to integrate these two so that I can access my Mailman 
and Vqadmin cgi scripts, which are on the legacy system. Can someone 
give me an example of mapping in ZopeCGI? I think that may resolve the 
problem. Right now, I'm entering sh in the Extension box and 
cgi-bin/vqadmin/vqadmin.cgi in the Handler box. I can surf to that 
because it's correctly mapped via the LocalFS folder (called cgi-bin) 
but the code doesn't render. Please help

beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Second Request:: Where Is This Module???

2006-08-09 Thread beno

Hi;
I've got an error in my error log, but I can't figure out where 
App.Management lives:


Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] LocalFS/Zope CGI Question

2006-08-09 Thread beno

Dieter Maurer wrote:

beno wrote at 2006-8-9 08:41 -0400:
  
I've added a LocalFS folder for my cgi-bin dir and also Zope CGI, but 
I'm not clear how to integrate these two so that I can access my Mailman 
and Vqadmin cgi scripts, which are on the legacy system.



I do not understand what you plan.

But I can tell you that Zope will do nothing (and need not do anything)
with Mailman or Vqadmin cgi scripts.

It is Apache (or another Web Server) that might be ready to
call scripts via CGI. Zope won't
  
My plan is to avoid installing extra and otherwise unnecessary s/w. I 
don't need Apache for anything else. If Zope is out, is it possible to 
do this with Squid, do you know?

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Where Is This Module?

2006-08-08 Thread beno

Hi;
I've got an error in my error log, but I can't figure out where 
App.Management lives:


Traceback (innermost last):
 Module ZPublisher.Publish, line 101, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 39, in call_object
 Module App.Management, line 85, in manage_workspace
Redirect: http://202.71.106.119:7080/error_log/manage_main

Please advise.
TIA,
beno


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] EMERGENCY!

2006-08-07 Thread beno
How do I undo the last change I made in Zope from the server itself? I 
send Zope into an infinite loop when I call Web sites!

beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] SERVER CRASHED! VHM/Apache2 Arrrgghh!!!

2006-08-04 Thread beno
Help! Second day server's been down!! I tried to upgrade from apache 
1.3.3 to 2.2.3 and now nothing works. Can't remember or find anything I 
changed on the old apache but that won't come up either. The problem is 
in proxying. I use VHM. I had to comment out the following lines in 
order to get Apache2 to come up:


# Reverse proxy params
CacheRoot /tmp/proxy/shop.2012.vi
# CacheSize 10
# CacheGcInterval 2
# CacheLastModifiedFactor 0.1
# CacheDefaultExpire 1
# CacheDirLength 2

Of course, then nothing in Zope works, because it's all based on VHM! 
I've been googling my brains out with no luck! Did the cache rules get 
rewritten in Apache2? Is there new syntax I should use? Here's my 
configure command:


./configure --enable-so  --enable-expires --enable-vqadmin 
--enable-speling --enable-rewrite --enable-cache --enable-deflate 
--enable-disk-cache --enable-mime-magic --enable-mods-shared=proxy 
proxy_http proxy_ftp proxy_connect headers


Please help. This is my FOURTH POST, second to Zope, and NOBODY has 
responded to the first three!

TIA,
beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] WHM/LibProxy Problem

2006-08-03 Thread beno
I have FreeBSD 5.3 and just installed Apache 2.2.3. I just took over 
sysadmining this box. We work with Zope and VirtualHostMonster, so 
there's lots of RewriteRules and a proxy is necessary. The problem is 
configuring the proxy. The old Apache (1.3.3) had the following:


LoadModule proxy_module   libexec/libproxy.so

ClearModuleList
AddModule proxy_module libexec/libproxy.so


but apparently the new version of Apache doesn't use that code any more. 
I ran my configure command with

--enable-proxy=shared
among others and it didn't complain. Nonetheless, I get errors like this:

server167# /usr/local/apache2/bin/apachectl -k start
httpd: Syntax error on line 56 of /usr/local/apache2/conf/httpd.conf: 
Cannot load /usr/local/apache2/modules/libproxy.so into server: 
/usr/local/apache2/modules/libproxy.so: Undefined symbol ap_dummy_mutex


when I copy libproxy.so over to the new distro and put in the LoadModule 
command,


server167# /usr/local/apache2/bin/apachectl -k start
Syntax error on line 576 of /usr/local/apache2/conf/vhosts.conf: // This 
is where my VirtualHost * stuff lives
Invalid command 'CacheRoot', perhaps misspelled or defined by a module 
not included in the server configuration


server167# /usr/local/apache2/bin/apachectl -k start
httpd: Syntax error on line 56 of /usr/local/apache2/conf/httpd.conf: 
Cannot load /usr/local/apache2/modules/libproxy.so into server: 
/usr/local/apache2/modules/libproxy.so: Undefined symbol ap_dummy_mutex


For some reason, I can't get the old Apache up, either, so I'm trying to 
resolve the problem with the new one. Please help. Thanks.

beno
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-29 Thread beno -
Alexis Rhoda's suggestion sounds similar. I edited the code as follows, both with and without the 'global' parameter with the same error thrown. I read the material you recommended before writing the list and have been referencing it. I confess that snakes would bite me repeatedly though before my eyes for lack of seeing them, no matter how hard I try. Your further help would be very much appreciated. TIA,beno tr tal:repeat="item batch" tal:block define="global number repeat/item/number" td tal:content="number"1/td td tal:content="item/title"title/td tdtal:content metal:use-macro="here/?number/macros/author"author/tal:content/td tdtal:content metal:use-macro="here/?number/macros/content"content/tal:content/td td
 tal:content="item/bobobase_modification_time" modification date/td  /tal:block /tr3TypeErrorSorry, a site error occurred.Traceback (innermost last):   Module ZPublisher.Publish, line 175, in publish_module_standard  Module ZPublisher.Publish, line 132, in publish  Module Zope.App.startup, line 204, in zpublisher_exception_hook  Module ZPublisher.Publish, line 101, in publish  Module ZPublisher.mapply, line 88, in mapply  Module ZPublisher.Publish, line 39, in call_object  Module Shared.DC.Scripts.Bindings, line 306, in
 __call__  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec  Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec  Module Products.PageTemplates.PageTemplate, line 96, in pt_render ZopePageTemplate at /rejoice.2012.vi/en-us/Books/getQuote used for /rejoice.2012.vi/en-us/Books/test  Module TAL.TALInterpreter, line 190, in __call__  Module TAL.TALInterpreter, line 234, in interpret  Module TAL.TALInterpreter, line 613, in do_loop_tal  Module TAL.TALInterpreter, line 234, in interpret  Module TAL.TALInterpreter, line 409, in do_optTag_tal  Module TAL.TALInterpreter, line 394, in do_optTag  Module TAL.TALInterpreter, line 389, in no_tag  Module TAL.TALInterpreter, line 234, in interpret  Module TAL.TALInterpreter, line 657, in do_useMacro  Module Products.PageTemplates.TALES, line 221, in evaluate URL:
 /rejoice.2012.vi/en-us/Books/getQuote Line 22, Column 8 _expression_: standard:'here/?number/macros/author' Names:{'container': Folder instance at e909350, 'context': Folder instance at 92e1ad0, 'default': Products.PageTemplates.TALES.Default instance at 0x8a1d62c, 'here': Folder instance at 92e1ad0, 'loop': SafeMapping instance at 8ff2380, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x8a1d06c, 'nothing': None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 8ff2380, 'request': HTTPRequest, URL=""> 'root': Application instance at 90c1f80, 'template': ZopePageTemplate at /rejoice.2012.vi/en-us/Books/getQuote used for /rejoice.2012.vi/en-us/Books/test, 'traverse_subpath': [], 'user': Anonymous
 User}  Module Products.PageTemplates.Expressions, line 174, in __call__  Module Products.PageTemplates.Expressions, line 162, in _eval  Module Products.PageTemplates.Expressions, line 107, in _evalTypeError: iteration over non-sequence (Also, an error occurred while attempting to render the standard error message.)Dieter Maurer [EMAIL PROTECTED] wrote: beno - wrote at 2006-7-28 15:43 -0700: ...  tal:content="number"1titleauthor ... Traceback ... Line 22, Column 4 _expression_: standard:'here/?number/macros/author' ...KeyError: 'number' (Also, an error
 occurred while attempting to render the standard error message.)The traceback tells you (kept part) that the "KeyError: 'number'" comesfrom "here/?number/macros/author" and it is right:   Unless you use "global", variables defined in TAL only live   within the element (aka "tag") you have defined them in.   In your special case, this is the "td" element.   It it not defined in the following "td"s.A common approach is to use artificial "block" elements tocarry the definitions for some elements in the loop body -- similar to...  ...   Apparently, you already use "tal" prefixed tag names.The "tal:block" is another standard use...Another advice: carefully read the PageTemplate section inthe Zope Book (2.7 edition, on "plope.org").--
 Dieter 
		Groups are talking. Were listening. Check out the handy changes to Yahoo! Groups. ___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-28 Thread beno -
I have done as you say and get this error:KeyError: '$var' Here are the code lines I added into the table:tdtal:content metal:use-macro="here/$var/macros/author"author/tal:content/tdtdtal:content metal:use-macro="here/$var/macros/content"content/tal:content/td  TIA,  BenDieter Maurer [EMAIL PROTECTED] wrote:  beno - wrote at 2006-7-26 15:04 -0700: ... that works fine. But I'd like to call the following in that table:   where "XXX" is the "item" that changes each time a new item from the batch
 is called.You might try something like "here/?var/..."."?var" reads the contents of the variable "var" and inserts this contentinto the path _expression_.Note that the value must be a string and that embedded '/' are *not*treated as path separators.-- Dieter 
		Do you Yahoo!? Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-28 Thread beno -
Right. My bad. However, that didn't work either :( The error was it couldn't find 'var'. So I tried 'item'. It couldn't find 'item'. So I tried this code: td tal:define="number repeat/item/number" tal:content="number"1/td  and it complained that it couldn't find 'number'.  TIA,  benoJens Vagelpohl [EMAIL PROTECTED] wrote:  -BEGIN PGP SIGNED MESSAGE-Hash: SHA1On 28 Jul 2006, at 09:45, beno - wrote: I have done as you say and get this error: KeyError: '$var'Dieter said "?var", not "$var"...jens-BEGIN PGP SIGNATURE-Version: GnuPG v1.4.1
 (Darwin)iD8DBQFEyhVLRAx5nvEhZLIRArVjAJ4wGFI60euFIRFdf7iqK9eEyrBVjgCdHfdth9cTcnnUP7HEf/B76+iYH7E==Hsz4-END PGP SIGNATURE-___Zope maillist - Zope@zope.orghttp://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding! **(Related lists - http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev ) 
		Do you Yahoo!? Everyone is raving about the  all-new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-28 Thread beno -
Dieter Maurer [EMAIL PROTECTED] wrote:If you use "repeat/variable" (again, "variable" is not meant literally,but *some* "variable"), then "variable" must be a repeat variabledefined by an enclosing 'tal:repeat="variable ..."'.If this is the case, then "repeat/variable/number" should work.Here is the code again:table tal:define="objects here/objectValues; sort_on python:(('title', 'nocase',
 'asc'), ('bobobase_modification_time', 'cmp', 'desc')); sorted_objects python:sequence.sort(objects, sort_on); start python:getattr(request, 'start', 0); batch python:modules['ZTUtils'].Batch(sorted_objects, size=10, start=start); previous
 python:batch.previous; next python:batch.next" tr tal:repeat="item batch" td tal:define="number repeat/item/number" tal:content="number"1/td td tal:content="item/title"title/td tdtal:content metal:use-macro="here/?number/macros/author"author/tal:content/td tdtal:content metal:use-macro="here/?number/macros/content"content/tal:content/td td tal:content="item/bobobase_modification_time" modification date/td  /tr/tableHere is the error it throws as reported through the
 TTW:Site Error   An error was encountered while publishing this resource.  KeyErrorSorry, a site error occurred.Traceback (innermost last):   Module ZPublisher.Publish, line 175, in publish_module_standard  Module ZPublisher.Publish, line 132, in publish  Module Zope.App.startup, line 204, in zpublisher_exception_hook  Module ZPublisher.Publish, line 101, in publish  Module ZPublisher.mapply, line 88, in mapply  Module ZPublisher.Publish, line 39, in call_object  Module Shared.DC.Scripts.Bindings, line 306, in __call__  Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec  Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec  Module Products.PageTemplates.PageTemplate, line 96, in pt_render ZopePageTemplate at /rejoice.2012.vi/en-us/Books/getQuote used for
 /rejoice.2012.vi/en-us/Books/test  Module TAL.TALInterpreter, line 190, in __call__  Module TAL.TALInterpreter, line 234, in interpret  Module TAL.TALInterpreter, line 613, in do_loop_tal  Module TAL.TALInterpreter, line 234, in interpret  Module TAL.TALInterpreter, line 657, in do_useMacro  Module Products.PageTemplates.TALES, line 221, in evaluate URL: /rejoice.2012.vi/en-us/Books/getQuote Line 22, Column 4 _expression_: standard:'here/?number/macros/author' Names:{'container': Folder instance at 9cb67a0, 'context': Folder instance at 9cd1e60, 'default': Products.PageTemplates.TALES.Default instance at 0x8a1d62c, 'here': Folder instance at 9cd1e60, 'loop': SafeMapping instance at 99ef7a0, 'modules': Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at 0x8a1d06c, 'nothing':
 None, 'options': {'args': ()}, 'repeat': SafeMapping instance at 99ef7a0, 'request': HTTPRequest, URL=""> 'root': Application instance at 9a4c8f0, 'template': ZopePageTemplate at /rejoice.2012.vi/en-us/Books/getQuote used for /rejoice.2012.vi/en-us/Books/test, 'traverse_subpath': [], 'user': Anonymous User}  Module Products.PageTemplates.Expressions, line 174, in __call__  Module Products.PageTemplates.Expressions, line 162, in _eval  Module Products.PageTemplates.Expressions, line 101, in _evalKeyError: 'number' (Also, an error occurred while attempting to render the standard error message.)The error from the error log makes no sense to me. The time is off, too. I don't understand, but here it is:Time   2006/07/28 22:42:06.706 Universal   
User Name (User Id)tick (tick)   Request URL   http://2012.vi:7080/error_log/manage_workspace   Exception Type   Redirect   Exception Value   http://2012.vi:7080/error_log/manage_main Traceback (innermost last):   Module ZPublisher.Publish, line 101, in publish  Module ZPublisher.mapply, line 88, in mapply  Module ZPublisher.Publish, line 39, in call_object  Module App.Management, line 85, in manage_workspaceRedirect: http://2012.vi:7080/error_log/manage_mainDisplaytraceback as text51  43REQUEST formcookiestree-s'eJzT0MgpMOQKVneEA09bda4CI67EkgJjLj0AeJsHfw'lazy itemsSESSIONbound method SessionDataManager.getSessionData of SessionDataManager instance at 9a56890otherTraversalRequestNameStack[]AUTHENTICATED_USERtickURL'http://2012.vi:7080/error_log/manage_workspace'SERVER_URL'http://2012.vi:7080'AUTHENTICATION_PATH''PUBLISHEDbound method SiteErrorLog.manage_workspace of SiteErrorLog at /error_logURL1'http://2012.vi:7080/error_log'ACTUAL_URL'http://2012.vi:7080/error_log/manage_workspace'URL0http://2012.vi:7080/error_log/manage_workspaceURL1http://2012.vi:7080/error_logURL2http://2012.vi:7080BASE0http://2012.vi:7080BASE1http://2012.vi:7080BASE2http://2012.vi:7080/error_logBASE3http://2012.vi:7080/error_log/manage_workspaceenvironHTTP_COOKIE'tree-s="eJzT0MgpMOQKVneEA09bda4CI67EkgJjLj0AeJsHfw"'SERVER_SOFTWARE'Zope/(Zope 2.7.8-final, python 2.3.5, freebsd5) 

[Zope] Newbie: Missing a Variable (TAL/METAL Question)

2006-07-26 Thread beno -
Hi;  I have the following block of code:table tal:define="objects here/objectValues; sort_on python:(('title', 'nocase', 'asc'), ('bobobase_modification_time', 'cmp', 'desc')); sorted_objects python:sequence.sort(objects, sort_on); start python:getattr(request, 'start', 0); batch
 python:modules['ZTUtils'].Batch(sorted_objects, size=10, start=start); previous python:batch.previous; next python:batch.next" tr tal:repeat="item batch" td tal:content="item/title"title/td td tal:content="item/bobobase_modification_time" modification date/td td tal:content="here/author"author/td td tal:content="here/content"content/td /tr/table  that works fine. But I'd like to call the following in that table:tdtal:content
 metal:use-macro="here/XXX/macros/author"/tal:content/td  where "XXX" is the "item" that changes each time a new item from the batch is called. In other words, there is a folder with a "batch" of files, and each file is an "item". So, since the files' titles are simply sequential numbers, it would look something like this:tdtal:content metal:use-macro="here/1/macros/author"/tal:content/tdtdtal:content metal:use-macro="here/2/macros/author"/tal:content/tdtdtal:content metal:use-macro="here/3/macros/author"/tal:content/td...How do I do that? Even better, is it possible to just open up each file and read its contents??  Thanks,  Ben 
		Do you Yahoo!? 
Get on board. You're invited to try the new Yahoo! Mail Beta.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Python/TAL Problem

2006-07-22 Thread beno

Hi;
I'm trying to tweak someone else' script to get it to do what I want. 
The script reads from and writes to the Properties tab of pages and 
folders, enabling one to change the titles of many pages/folders from 
one single script-generated page. I want to be able to do the same thing 
with another field I created called KW1 (string) in the Properties 
tab. The following is a snip of the code that needs to be altered (the 
only code where title appears):


 input type=text name=rows.title:records size=50
tal:attributes=value python:item['title'] /
 input type=hidden name=prev_rows.title:records
tal:attributes=value item/title /

If I alter line #2 and change title to KW1 I get the following error 
snippet:


   * Module Products.PageTemplates.ZRPythonExpr, line 47, in __call__
 __traceback_info__: item['KW1']
   * Module Python expression item['KW1'], line 1, in expression
   * Module AccessControl.ZopeGuards, line 67, in guarded_getitem

If I alter line #4 and change title to KW1 I get this error snippet:

   * Module Products.PageTemplates.Expressions, line 174, in __call__
   * Module Products.PageTemplates.Expressions, line 162, in _eval
   * Module Products.PageTemplates.Expressions, line 116, in _eval
 __traceback_info__: item
   * Module Products.PageTemplates.Expressions, line 320, in
 restrictedTraverse
 __traceback_info__: {'path': ['KW1'], 'TraversalRequestNameStack': []}

I have added KW1 as a string property to many of the pages in the target 
folder. What am I doing wrong? Complete code and complete errors follow.

Thanks.








COMPLETE SCRIPT

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN
   http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd;
html tal:condition=here/formHandler

!--
script type=text/javascript src=main.js/script
--

body

h1Manage Hierarchy/h1


form action= method=post name=form id=form
 tal:define=root python:request.fields['root'];
 items python:root['value'] and 
sequence.sort(here.getEntries(root['value'], all=1), (('id', 'cmp', 
'desc'),))



div id=filter
 select name=root
 tal:define=items python:here.getEntries('en-us', 2)
 
   option value=#8212;#8212;Select Folder#8212;#8212;/option

   option tal:repeat=item items
   tal:content=structure python:'%s\--%s' % 
('nbsp;'*5*item['level'], item['id'])

   tal:attributes=value python:item['url'];
   selected python:item['url'] == root['value']
   /option
 /select
 input type=submit name=onOk value=Ok /
/div



div id=resultSet
 table cellspacing=0 cellpadding=3 border=1
tal:condition=items
 tr
   thID/th
   thKW1/th
 /tr
 tr valign=top
 tal:repeat=item items
   td
 span tal:replace=structure python:'nbsp;' * (8 * item['level']) 
+ item['id']ID/span

 input type=hidden name=rows.id:records
tal:attributes=value python:item['url'] /
   /td
   td
 input type=text name=rows.title:records size=50
tal:attributes=value python:item['title'] /
 input type=hidden name=prev_rows.title:records
tal:attributes=value item/title /
   /td
 /tr
 /table

 div tal:condition=python:not items
   Sorry... no items to manage.br /
 /div
/div




div id=buttons
 input type=submit name=onSaveChanges value= Save Changes 
tal:condition=items /
/div

/form


/body
/html





FIRST ERROR MESSAGE
from changing  tal:attributes=value python:item['title'] 
/  total:attributes=value python:item['KW1'] /



   Site Error

An error was encountered while publishing this resource.

*KeyError*

Sorry, a site error occurred.

Traceback (innermost last):

   * Module ZPublisher.Publish, line 175, in publish_module_standard
   * Module ZPublisher.Publish, line 132, in publish
   * Module Zope.App.startup, line 204, in zpublisher_exception_hook
   * Module ZPublisher.Publish, line 101, in publish
   * Module ZPublisher.mapply, line 88, in mapply
   * Module ZPublisher.Publish, line 39, in call_object
   * Module Shared.DC.Scripts.Bindings, line 306, in __call__
   * Module Shared.DC.Scripts.Bindings, line 343, in _bindAndExec
   * Module Products.PageTemplates.ZopePageTemplate, line 222, in _exec
   * Module Products.PageTemplates.PageTemplate, line 96, in pt_render
 *ZopePageTemplate at /footprints.2012.vi/test_kw/main/index_html*
   * Module TAL.TALInterpreter, line 190, in __call__
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 637, in do_condition
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 637, in do_condition
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 613, in do_loop_tal
   * Module TAL.TALInterpreter, line 234, in interpret
   * Module TAL.TALInterpreter, line 263, in do_startEndTag
   * Module TAL.TALInterpreter, line 291, in do_startTag
   * Module TAL.TALInterpreter, line 357, 

[Zope] PLEASE HELP with VHM Problem!!

2005-08-15 Thread beno
I still do not have a solution to get my VHM working. My programmer is 
on vacation and I don't know how he's got things configured. I copied, 
pasted and edited an entry in our httpd.conf file thus:


VirtualHost *
ServerAdmin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
ServerName centurionsecurityvi.com
ServerAlias *.centurionsecurityvi.com
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/403.html
Alias icons// usr/local/apache/icons//
RewriteEngine On

# Webalizer
RewriteRule ^/usage(.*) /usage/centurionsecurityvi.com$1 [L]

RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$ 
http://centurionsecurityvi%5C.com.*$ dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$ 
http://www%5C.centurionsecurityvi%5C.com.*$ dontlog

ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log 
combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog

/VirtualHost

rebooted our FreeBSD machine, and then followed the instructions in our 
VHM by entering these fields:

centurionsecurityvi.com
/centurionsecurityvi.com
(Yes, that's the dir.) VHM tells me this dir can't be found. Wazzup?! 
I'm looking at the darn thing! Don't tell me it can't be found! Waah!

Please help.
beno

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VHM Problem HELP!!!

2005-08-14 Thread beno

Tino Wildenhain wrote:


Am Samstag, den 13.08.2005, 22:34 -0400 schrieb beno:
 


Hi;
It's been years since I've posted here. I've been spoiled by having a 
full-time programmer :) But he's on vacation and I'm screwed :(
I need to get this site posting to the web but I'm having trouble with 
VHM. I copied, pasted and edited an entry in our httpd.conf file thus:


RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$; dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$; dontlog
ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog


Then I went to VHM through the Zope interface and followed the direction:
First box: centurionsecurityvi.com
Second box: /centurionsecurityvi.com
and yes, that's the folder. But it tells me The path 
/centurionsecurityvi.com was not found

What gives? Please help. Waah!
beno
   



Copy the output of the complete VirtualHost  directive.
I dont know if its missing or you forgot to copy but
from above there is no RewriteEngine on statement for example.
 


VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName centurionsecurityvi.com
ServerAlias *.centurionsecurityvi.com
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/403.html
Alias /icons/ /usr/local/apache/icons/
RewriteEngine On

# Webalizer
RewriteRule ^/usage(.*) /usage/centurionsecurityvi.com$1 [L]

RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$; dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$; dontlog
ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog

/VirtualHost


Also output of apachectl -S 


printed out the help menu

or httpd -S 


command not found

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VHM Problem HELP!!!

2005-08-14 Thread beno

Tino Wildenhain wrote:


Am Sonntag, den 14.08.2005, 06:32 -0400 schrieb beno:
 


Tino Wildenhain wrote:

   


Am Samstag, den 13.08.2005, 22:34 -0400 schrieb beno:

 


...
 


VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName centurionsecurityvi.com
ServerAlias *.centurionsecurityvi.com
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/403.html
Alias /icons/ /usr/local/apache/icons/
RewriteEngine On

# Webalizer
RewriteRule ^/usage(.*) /usage/centurionsecurityvi.com$1 [L]

RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$; dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$; dontlog
ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog

/VirtualHost
   



Looks OK for me. A bit more complex then you need for just the VHost in 
Zope due to your logging rules but it should work.


 

Also output of apachectl -S 

 


printed out the help menu

   

or httpd -S 

 


command not found
   



It depends on your installation, httpd is the binary which is
the apache usually. Where it is you have to find out yourself.
(/usr/sbin, /usr/pkg/sbin, ... whatever)
 


Well, tried those dirs, then ran
find / -name httpd*
which gave me lots of files but not a binary that I could see.

In any case you should make sure you reload the config in 
apache. usually this is done via apachectl.
 


I rebooted the entire machine! No luck!

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] VHM Problem HELP!!!

2005-08-14 Thread beno

Tino Wildenhain wrote:


Am Sonntag, den 14.08.2005, 10:05 -0400 schrieb beno:
 


Tino Wildenhain wrote:

   


Am Sonntag, den 14.08.2005, 06:32 -0400 schrieb beno:


 


Tino Wildenhain wrote:

  

   


Am Samstag, den 13.08.2005, 22:34 -0400 schrieb beno:



 


...


 


VirtualHost *
ServerAdmin [EMAIL PROTECTED]
ServerName centurionsecurityvi.com
ServerAlias *.centurionsecurityvi.com
ErrorDocument 401 /errors/401.html
ErrorDocument 403 /errors/403.html
ErrorDocument 500 /errors/500.html
ErrorDocument 404 /errors/403.html
Alias /icons/ /usr/local/apache/icons/
RewriteEngine On

# Webalizer
RewriteRule ^/usage(.*) /usage/centurionsecurityvi.com$1 [L]

RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$; dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$; dontlog
ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog

/VirtualHost
  

   

Looks OK for me. A bit more complex then you need for just the VHost in 
Zope due to your logging rules but it should work.




 

Also output of apachectl -S 



 


printed out the help menu

  

   

or httpd -S 



 


command not found
  

   


It depends on your installation, httpd is the binary which is
the apache usually. Where it is you have to find out yourself.
(/usr/sbin, /usr/pkg/sbin, ... whatever)


 


Well, tried those dirs, then ran
find / -name httpd*
which gave me lots of files but not a binary that I could see.

   

In any case you should make sure you reload the config in 
apache. usually this is done via apachectl.



 


I rebooted the entire machine! No luck!
   



Argh. You are on unix. 


No. FreeBSD


Nobody reboots a unix box :)
You did not tell us which OS (linux? 


Yes


And which distribution
you are using. Its hard to guess from here. It looks
like its Apache 1.3. 

I forget how to tell. I was searching for one of those whois sites that 
gives you everything, but I can't put my finger on it. You could try 
this domain

pasekcellars.com
and see what it gives you if you have access to one. I host with iMeme, 
who is devoted exclusively to Zopistas



Often the binary was called httpd.
It could as well be just apache. I really dont know what it
is on your site :) Chances are your config is just not
included. Are you faced with one single config file?
 

Well, we have httpd.conf call a file called vhosts.conf where we put all 
that stuff.

Thanks,
beno

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] VHM Problem HELP!!!

2005-08-13 Thread beno

Hi;
It's been years since I've posted here. I've been spoiled by having a 
full-time programmer :) But he's on vacation and I'm screwed :(
I need to get this site posting to the web but I'm having trouble with 
VHM. I copied, pasted and edited an entry in our httpd.conf file thus:


RewriteRule ^/(.*) 
http://127.0.0.1:8080/VirtualHostBase/http/www.centurionsecurityvi.com:80/centurionsecurityvi.com/VirtualHostRoot/$1 
[L,P]

SetEnvIf Referer ^$ dontlog
SetEnvIf Referer ^http://centurionsecurityvi\.com.*$; dontlog
SetEnvIf Referer ^http://www\.centurionsecurityvi\.com.*$; dontlog
ErrorLog /var/log/apache/vhosts/centurionsecurityvi.com-error_log
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-access_log combined
CustomLog /var/log/apache/vhosts/centurionsecurityvi.com-referer_log 
referer env=!dontlog


Then I went to VHM through the Zope interface and followed the direction:
First box: centurionsecurityvi.com
Second box: /centurionsecurityvi.com
and yes, that's the folder. But it tells me The path 
/centurionsecurityvi.com was not found

What gives? Please help. Waah!
beno

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )