Re: [Zope] Re: Problems starting ZEO with zeoctl

2006-09-04 Thread Chris Withers

Tres Seaver wrote:

The permission needed here is for the "effective" user to write to the
"ZEO control socket", which is normally in the 'etc' direcdtory of your
instance home, and named 'zeo.zdsock'.  Try changing 'zeo.conf' to put
that file in your 'var' directory, where you *must* be able to create
files (otherwise you wouldn't be able to use 'runzeo').


...and, to be fair, check if there's anything in the zeo event log :-)

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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] Python import security problem

2006-09-04 Thread Chris Withers

Ferhat Ayaz wrote:

Hi,

(As you know) I'm a zope newbie. I didn't find a
article describing my following problem.


Funny:
http://www.google.com/search?q=%22you+are+not+allowed+to+access%22

You could do with RTFMing and Googling a bit more. Just about every 
question you've asked so far has been asked a million times before...


Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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 )


Re: [Zope] Can't stop Zope, machine hanging

2006-09-04 Thread Ken Ara
You are right, Dieter. The ISP network admin had to
restart the machine. There seems to be no way to power
down and then power up the machine remotely.
Fortunately everything worked out. Thanks. 

--- Dieter Maurer <[EMAIL PROTECTED]> wrote:

> Ken Ara wrote at 2006-9-2 23:43 -0700:
> > ...
> >I can't restart or stop Zope -
> >'/usr/local/www/Zope/zope01/bin/zopectl stop' just
> >produces '' for a long time - should I
> wait? I
> >was unable to kill one of the python2.3 processes,
> and
> >can't even reboot the machine, using 'shutdown -r
> >now', as I have done previously in extremis.
> 
> This indicates a severe problem with your operating
> system
> (or maybe your computer).
> 
> There are situations where a press on the reset
> button is
> necessary. Looks like you are in such a situation...
> 
> 
> 
> -- 
> Dieter
> 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
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] Re: Problems starting ZEO with zeoctl

2006-09-04 Thread Martijn Pieters

On 9/2/06, Tres Seaver <[EMAIL PROTECTED]> wrote:

The permission needed here is for the "effective" user to write to the
"ZEO control socket", which is normally in the 'etc' direcdtory of your
instance home, and named 'zeo.zdsock'.  Try changing 'zeo.conf' to put
that file in your 'var' directory, where you *must* be able to create
files (otherwise you wouldn't be able to use 'runzeo').


I keep meaning to file a bug and patch to change the default location
of the socket file to the var/ dir like zopectl does. The effective
ZEO user should not be able to write in my etc/ dir, thank you very
much!

--
Martijn Pieters
___
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 



51


 REQUEST


 form


 cookies

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


 lazy items

SESSION 	>



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


[Zope] Change language with PTS

2006-09-04 Thread Peter Bengtsson

I'm still a i18n newbie.

My product (running in zope 2.8.5) now has a domain.pot and se.po file
inside '/i18n/'.
I've translated the text using KBabel (boy what an unfriendly program)
but had to manually edit the headers to saw that the translation was
to Swedish, sv.
PlacelessTranslationService picks them up fine in Control_Panel.

Now, perhaps this works if my browser setting was 'sv' but it isn't. I
actually don't want to use the browser setting at all, I want to
control with via my own cookie and url traversal stuff.

Ideas?

PS. Trust me, I've searched and searched but found nothing :(

--
Peter Bengtsson,
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
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 Dieter Maurer
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:
>
>Time   2006/09/04 14:16:02.371 Universal
>User Name (User Id)beno (beno)
>Request URLhttp://202.71.106.119:7080/error_log/manage_workspace
>Exception Type Redirect
>Exception Valuehttp://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



-- 
Dieter
___
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] Re: Change language with PTS

2006-09-04 Thread Josef Meile
Hi Peter,

First at all, I think Localizer may be easier to do this task, it has
Built-in Cookie and traversal url support. You may also define your own
language selection method. If you still want to try this with PTS, then read
the following lines.

> Now, perhaps this works if my browser setting was 'sv' but it isn't. I
> actually don't want to use the browser setting at all, I want to
> control with via my own cookie and url traversal stuff.
To set the language you want with PTS, you have to set the
HTTP_ACCEPT_LANGUAGE as follows:

REQUEST.set('HTTP_ACCEPT_LANGUAGE',lang)

where lang could be 'sv'. Please note that you have to do this at the
beginning your your ZPT Template or DTML method. I have had problem when
doing this in the middle of the code.

I think cookies could also work, but I haven't tested the code myself. You
will need to set them via the request object like this:

REQUEST.RESPONSE.setCookie('lang','sv', max_age=something)
lang = REQUEST.cookies['lang']

PTS doesn't support traversal url. Anyway, you can still achieve this with
Access Rules. There is an outdated how-to that can give you an idea on how
to do this:

How To build multilingual sites with SiteAccess:
http://www.zope.org/Members/jdavid/MultilingualSiteAccess

There you will see that SiteAccess is mentioned, which is deprecated;
however, I think this Product was replaced by SiteRoot and Access Rules
(somebody correct me if I'm wrong). You may need to google about this.

As mentioned in that How-To, it was superseded by Localizer, so, you may
look at the source code of this product as well. 

Regards
Josef

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