Re: [Zope] Zope loses data irretrievably upon restart

2015-05-27 Thread Luca Olivetti
El 27/05/15 a les 05:59, Tom Cameron ha escrit:

 The problem is that Zope is connected directly to the Data.fs file via
 its handler and even though it is renamed it continues to write to
 Data.fs.old.

I'm using an older version of Zope, but, no, if you configured it
correctly, only zeo has Data.fs open, zope only talks to zeo.
At least that's what I see on my system.
I fear you're using zeo to pack *but* you configured zope to use Data.fs
as storage instead of using zeo.

Bye
-- 
Luca Olivetti
Wetron Automation Technology http://www.wetron.es
Tel. +34 935883004  Fax +34 935883007
___
Zope maillist  -  Zope@zope.org
https://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 https://mail.zope.org/mailman/listinfo/zope-announce
 https://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] tunneling via ...

2007-10-01 Thread Luca Olivetti

En/na Jaroslav Lukesh ha escrit:

- Original Message - From: David Bear [EMAIL PROTECTED]



APACHE HOST  -- ZOPE HOST

I need to secure the connection between these two hosts.


use ssh tunnell


or zebedee

Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] migration from 2.9.1 to 2.9.4

2006-11-17 Thread Luca Olivetti

En/na Maciej Wisniowski ha escrit:

TypeError: _log() got an unexpected keyword argument 'error'


Should be fixed in 2.9.5 or 2.9.6 (unreleased, grab the related file
from the Subversion if necessary).


You may also take a look at Zope Collector. This issue was submitted
by me and there is description what and where has to be changed.
It is possibly marked as resolved now.


Funny, I just posted a followup to the issue (not sure if yours or 
another one) since in a fresh checkout of 2.9 there are still a couple 
of these errors.


http://www.zope.org/Collectors/Zope/2155


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?

2006-04-10 Thread Luca Olivetti

En/na Alain Fauconnet ha escrit:

Am I missing something? I have created the SiteRoot object in the
root (/) folder. Is this correct?


Look here:
http://plone.org/documentation/how-to/plone-with-apache-1.3

It's not plone specific and the links at the top are useful for other 
situations.
E.g., if you follow 
http://zope.org/Documentation/Books/ZopeBook/2_6Edition/VirtualHosting.stx

you'll read:

SiteRoots are an artifact of an older generation of Zope virtual 
hosting services that are only retained in current Zope versions for 
backwards-compatibility purposes. They are not documented in this book 
because they are somewhat dangerous for new users, as they have the 
capability of temporarily locking you out of your Zope instance if you 
configure them improperly. Luckily, we have Virtual Host Monsters, which 
do everything that SiteRoots do and more without any of the dangerous 
side effects of SiteRoots. If you want to do virtual hosting in Zope, 
you should almost certainly be using a Virtual Host Monster.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Zope + Apache + mod_proxy + SiteRoot = some links not proxied?

2006-04-10 Thread Luca Olivetti

En/na Alain Fauconnet ha escrit:


Thanks for your informative reply. I'm reading this page right now and
I just have a question: I don't do virtual hosting at all. This box
hosts a single web server. Does that still apply to me?


Yes, you can either make zope the root of your only server or map it to 
a subdirectory. VirtualHostMonster and a couple of rewrite rules can do 
both. I think that those links explain all the possibilities.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] single sign-on

2006-04-07 Thread Luca Olivetti

En/na Fernando Martins ha escrit:

David H wrote:

Robert,

You can python + COM your way to a browser startup zope/plone login
screen.  I cannot see how you automate the authentication of a given
browser instance that is then handed to your users.



Hmm, that's not automation in this sense. The user logins into the
workstation (Windows, don't know about unix), the user opens the browser and
accesses an INTRANET page. The browser (IE or Firefox with NTLM setup) will
then send authentication information to the Intranet server using the NTLM
protocol. The web server (Apache with NTLM module) checks with some internal
Domain server and sets the environmental variable REMOTE_USER. This is then
sent to a CGI or FastCGI app (zope with FastCGI).


Maybe someone will correct this.  If so everyone's happy.


Yes, local Intranet users love this, one less login, automatic recognition,
personalisation, instant gratification,... ;-)


It seems it is possible but a little convoluted.
WARNING this has only had very limited testing and it's *not* in 
production (and I'm not sure it will ever be).


The first hurdle is that with the proxying configuration (RewriteRule 
with the P flag) ntlm_mod sends Proxy-Authenticate instead of 
WWW-Authenticate and it didn't work, so the first thing I needed to do 
was to modify ntlm_mod.c to always request WWW-Authenticate (easy to 
do, just find any instance of r-proxyreq and change it to 
r-proxyreq  0. I didn't see this reported anywhere, so it could 
just be my local setup with apache 2.


Then in Apache I used the RequestHeader directive to add the remote user 
to the request *and* the E option in the RewriteRule to put the remote 
user in the environment (so that RequestHeader works),

i.e. (zope is served here under the test directory t):


Location /t/
AuthName A Protected Place
AuthType NTLM
NTLMAuth On
NTLMAuthoritative on
NTLMDomain YOURDOMAIN
NTLMServer yourhost
NTLMBasicAuth on
NTLMBasicRealm YOURREALM
require valid-user

RequestHeader set REMOTE_USER %{REMOTE_USER}e
/Location

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} !443$
RewriteRule ^/t/(.*) 
http://localhost:10080/VirtualHostBase/https/%{HTTP_HOST}:443/VirtualHostRoot/_vh_t/$1 
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]

RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{HTTP_HOST} 443$
RewriteRule ^/t/(.*) 
http://localhost:10080/VirtualHostBase/https/%{HTTP_HOST}/VirtualHostRoot/_vh_t/$1 
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]

RewriteCond %{SERVER_PORT} ^80$
RewriteRule ^/t/(.*) 
http://localhost:10080/VirtualHostBase/http/%{HTTP_HOST}:80/VirtualHostRoot/_vh_t/$1 
[L,P,E=REMOTE_USER:%{LA-U:REMOTE_USER}]



(note that this contortion with ssl may be due, again, to my setup. Note 
also that I didn't manage to make ntlm+ssl work with internet explorer, 
it works fine with firefox).


At this point zope should see an additional header REMOTE_USER (with the 
consequent security risk: you should make sure that nobody can directly 
access zope otherwise they can fake this header and pose as any user) 
which is available in request.environ as HTTP_REMOTE_USER.


Then it's just a matter of using PAS with the SharkbyteSSOPlugin 
(http://dev.plone.org/collective/browser/SharkbyteSSOPlugin) configured 
to use HTTP_REMOTE_USER.


I'd suggest to change

   userid = request.get(self.uservar)

to

   userid = request.environ.get(self.uservar)

for a little more security - not that this setup seems really secure to 
me anyway, but I'm not a security expert ;-)


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] single sign-on

2006-04-07 Thread Luca Olivetti

En/na Luca Olivetti ha escrit:

At this point zope should see an additional header REMOTE_USER (with the 
consequent security risk: you should make sure that nobody can directly 
access zope otherwise they can fake this header and pose as any user) 
which is available in request.environ as HTTP_REMOTE_USER.


Then it's just a matter of using PAS with the SharkbyteSSOPlugin 
(http://dev.plone.org/collective/browser/SharkbyteSSOPlugin) configured 
to use HTTP_REMOTE_USER.


I'd suggest to change

   userid = request.get(self.uservar)

to

   userid = request.environ.get(self.uservar)

for a little more security - not that this setup seems really secure to 
me anyway, but I'm not a security expert ;-)


Ok, useless suggestion, since Zope request does the right thing:
1)it will search in the environment before searching in the form and
2)it'll strip any form variable that starts with 'HTTP_'

Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Apache2 rewrite gives frustrating 403 error

2006-04-05 Thread Luca Olivetti

En/na Flemming Bjerke ha escrit:

I hope someome can help me solving this problem:

My apache2 rewrite statement to zope/plone make persistently 403 error. 
(Exactly the same statement has worked before.)


From sites-available/zope:

NameVirtualHost 213.173.259.117
VirtualHost 213.173.259.117
 DocumentRoot /var/www/virtual/globalfordring.dk
 ServerName globalfordring.dk
 ServerSignature On
 CustomLog /var/log/apache2/globalfordring.dk-access.log combined
 ErrorLog  /var/log/apache2/globalfordring.dk-error.log
 LogLevel debug
 RewriteEngine On
 ProxyVia On
 RewriteRule ^/(.*)$
http://globalfordring.dk:8083/VirtualHostBase/http/globalfordring.dk:80/portaler/globalfordring/VirtualHostRoot/$1
[L,P]
/VirtualHost

If I remove the rewrite rule, a browser reads html-files from the 
DocumentRoot. I can also browse zope directly:


http://globalfordring.dk:8083/portaler/globalfordring. 


But, when I rewrites this url to globalfordring.dk, I get:
You don't have permission to access / on this server.


Maybe a missing proxy directive?

Proxy http://globalfordring.dk:8083/*
  Allow from 213.173.259.117
/Proxy

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] installation security best practice question

2006-03-14 Thread Luca Olivetti

En/na Jens Vagelpohl ha escrit:

The best way to install and run Zope is to have a dedicated user account 
and install and run it as that user. Most everything else will lead to 
problems and frustration.


Only because the zope-2.8.6 tarball has wrong permissions. It worked 
before, it will work once you fix the permission on the installed zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] installation security best practice question

2006-03-14 Thread Luca Olivetti

En/na Jens Vagelpohl ha escrit:


On 14 Mar 2006, at 14:09, Luca Olivetti wrote:


En/na Jens Vagelpohl ha escrit:

The best way to install and run Zope is to have a dedicated user 
account and install and run it as that user. Most everything else 
will lead to problems and frustration.


Only because the zope-2.8.6 tarball has wrong permissions. It worked 
before, it will work once you fix the permission on the installed zope.


The advice has nothing to do with Zope 2.8.6 or any other tarball. 
Trying to be overly clever and not using a dedicated account for both 
installation and running your Zope doesn't add much security, it only 
adds complication. 


But one zope instance doesn't need write access to zope itself, only to 
the instance directory. It needs read access though, and it's not setup 
this way by the latest zope, so I think that the problem of the OP come 
from this change in permissions in the tarball.


Unless you install software that lets users write to 
the file system through the web people cannot get to the filesystem.


I usually install zope as root to /usr/local, then setup (or actually 
use the already set up) instances for two different users, one for 
production and the other for testing, so I don't want to install as the 
same user, since I don't want to duplicate the zope installation, only 
the instance, and that should be possible (in fact it has been until 
now) without compromising security.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] installation security best practice question

2006-03-14 Thread Luca Olivetti

En/na Jens Vagelpohl ha escrit:


On 14 Mar 2006, at 15:13, Luca Olivetti wrote:

[...]
the same user, since I don't want to duplicate the zope installation, 
only the instance, and that should be possible (in fact it has been 
until now) without compromising security.


My point was that the security you speak of is illusory. You don't win 
anything.


I win 58M of space (since I install zope only once), and I lose nothing 
(unless you're saying that the product of ./configure; make; make 
install is a security problem if world readable).


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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: installation security best practice question

2006-03-14 Thread Luca Olivetti

En/na Tres Seaver ha escrit:



Note that I think the original poster must not have done 'make install',
but rather was using an inplace build directly from the unpacked
tarball:  the install process would have fixed up the permissions otherwise.


No, it doesn't (with 2.8.6)

Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] [ANN] Zope 2.8.6 released

2006-03-10 Thread Luca Olivetti

En/na Andreas Jung ha escrit:



Hi all,

on behalf of Zope Corporation and the Zope community I am pleased to 
announce the release of Zope 2.8.6.  You can download Zope 2.8.6 from


 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?

On a just installed zope-2.8.6  (untarred with gnu tar and built with 
./configure --with-python=/usr/local/python-2.3.5/bin/python 
--prefix=/usr/local/zope-2.8.6-final; make; sudo make install)


$ zopetest/bin/zopectl status
Traceback (most recent call last):
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 322, 
in ?

main()
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 280, 
in main

options.realize(args)
  File /usr/local/zope/lib/python/Zope2/Startup/zopectl.py, line 91, 
in realize

ZDOptions.realize(self, *args, **kw)
  File /usr/local/zope-2.8.6-final/lib/python/zdaemon/zdoptions.py, 
line 273, in realize

self.load_schema()
  File /usr/local/zope-2.8.6-final/lib/python/zdaemon/zdoptions.py, 
line 321, in load_schema

self.schema = ZConfig.loadSchema(self.schemafile)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
31, in loadSchema

return SchemaLoader().loadURL(url)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
63, in loadURL

r = self.openResource(url)
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
102, in openResource

self._raise_open_error(url, str(e))
  File /usr/local/zope-2.8.6-final/lib/python/ZConfig/loader.py, line 
114, in _raise_open_error

url)
ZConfig.ConfigurationError: error opening file 
/usr/local/zope/lib/python/Zope2/Startup/zopeschema.xml: [Errno 13] 
Permission denied: '/usr/local/zope/lib/python/Zope2/Startup/zopeschema.xml'



There are many other files that are readable only by root (that wasn't 
the case with 2.8.4)


A quick fix

$ cd /usr/local/zope-2.8.6-final
$ sudo find -perm +'u+r' -exec chmod go+r \{\} \;
$ sudo find -perm +'u+x' -exec chmod go+x \{\} \;


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] [ANN] Zope 2.8.6 released

2006-03-10 Thread Luca Olivetti

En/na Andreas Jung ha escrit:



--On 10. März 2006 15:38:35 +0100 Janko Hauser [EMAIL PROTECTED] wrote:



Am 10.03.2006 um 13:06 schrieb Luca Olivetti:


En/na Andreas Jung ha escrit:

Hi all,
on behalf of Zope Corporation and the Zope community I am pleased
to announce the release of Zope 2.8.6.  You can download Zope
2.8.6 from
 http://www.zope.org/Products/Zope/2.8.6/


It's just me or the permissions are wrong?


No I had the same expirience under MacOSX and debian system.




Did you use 'sudo' for the installation or did you ran the installation 
as root?


I tried both ways (but only the make install part, the configure and 
make I usually do as my user).


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] [Fwd: Zope fails on large task?]

2006-01-19 Thread Luca Olivetti

En/na Jim Fulton ha escrit:


It works for a few people.  If I try too many people it fails with an
   Error reading from remote server
message from the Apache.

I cannot find any hints in the apache or zope logs.  I have tried to
monitor the server to see if any resources are running out, but have not
found anything. 



Can anyone suggest how I try to diagnose this failure. 


Maybe (just maybe) it's a timeout: I saw this when performing a long 
plone migration (though the migration completed anyway). The default 
timeout is 5 minutes, so this is easy to rule out: if the error comes 
out after five minutes it's probably this error (or less if the apache 
configuration uses a lower value).
There are many apache parameters to control the timeout, but IIRC the 
only one that worked here is the Timeout parameter (though I'm not sure 
it solved my issue, I *do* remember that ProxyTimeout, which seemed the 
correct parameter to me, did nothing to prevent the problem).


http://httpd.apache.org/docs/2.0/mod/core.html#timeout
http://httpd.apache.org/docs/2.0/mod/mod_proxy.html#proxytimeout

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Products have incorrect home attribute

2006-01-18 Thread Luca Olivetti

En/na Andreas Jung ha escrit:



--On 18. Januar 2006 08:19:25 +0100 Martijn Pieters [EMAIL PROTECTED] 
wrote:



On 1/18/06, Andreas Jung [EMAIL PROTECTED] wrote:

What and where is the 'home' attribute?


In lib/python/App/Product.py line 549:

  product.home=home

'home' is the product path as determined by
OFS.Application.install_product; it looks, from a cursory glance, that
this should be reset every time Zope is restart.


I asked the same question a couple of days ago (see wrong directoy in 
Control_Panel.Products..home) and no, they aren't reset at zope 
restart, and deleting the pyc files doesn't help either.




huuh...never seen that...looks like a culprit...who actually uses that 
information?


CMFQuickInstaller does (and breaks if you move your zope instance)


Isn't package_home() doing the same?


funny that you ask since I just noticed that CMFQuickInstaller imports 
the function then never uses it.


Bye

--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-16 Thread Luca Olivetti

En/na Dieter Maurer ha escrit:


Zope's behaviour in handling product updates below Control_Panel.Products
is very difficult to understand.


;-)
It usually freaks me out when I (seldom) delete a product from the 
filesystem and it's still there in the control panel..



Almost surely, it will help when you delete all closed products
there and then restart Zope. The restart will recreate the product objects
for installed products -- hopefully with the correct home attribute.


yes, as I said in the original message this is what I did. I was just 
asking if this is the expected behaviour of Control_Panel (which could 
break products using the home attribute, like in my case 
CMFQuickInstaller) and if there is a better(?) way that doesn't involve 
deleting the products and restarting zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-13 Thread Luca Olivetti

En/na Martijn Pieters ha escrit:

On 1/12/06, Luca Olivetti [EMAIL PROTECTED] wrote:

Everything has been working fine (apart for the breakage of
CMFQuickInstaller) but I wonder if this is the intended behavior and if
there is better way to update the information in Control_Panel (touching
__init__.py in the offending products and restarting zope didn't help, I
had to remove the products from the Control_Panel and restart zope).


I suspect that the .pyc files may still hold the old paths; remove the
.pyc files and restart to have them recreated, or used the Python
standard library script compileall.py to recreate these files.


I grepped the pyc files for the old path and I could not find it 
anywhere, so the path must be stored exclusively in the zodb.
Besides, this wouldn't explain the wrong path for the products included 
with zope.


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] wrong directoy in Control_Panel.Products.XXXX.home

2006-01-12 Thread Luca Olivetti
A while ago I changed the directory of my zope instance. I also changed 
the zope directory (started with zope 2.8.1, now running 2.8.4). Today I 
noticed that the CMFQuickInstaller failed to get the version and the 
readme of various products.
It happens that CMFQuickInstaller uses 
Control_Panel.Products.getObj(id).home to determine the product's 
directory and then reads the version.txt file from there.
However many products had the old directory name stored in home (like 
/usr/local/zope-2.8.1-final instead of /usr/local/zope-2.8.4-final, or 
the directory I used before changing the name).
Everything has been working fine (apart for the breakage of 
CMFQuickInstaller) but I wonder if this is the intended behavior and if 
there is better way to update the information in Control_Panel (touching 
__init__.py in the offending products and restarting zope didn't help, I 
had to remove the products from the Control_Panel and restart zope).


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Zope 2.8.4 install on Suse

2005-12-09 Thread Luca Olivetti

En/na Jens Vagelpohl ha escrit:

Whaat you really need to do is *ditch* those OS-supplied Python packages 
and compile it yourself for Zope. It's easy and quick. Get the 2.3.5 
tarball from python.org and after that it's a matter of 
configure/make/make install.


unless you're on x86_64

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Problem Inserting zsql query result

2005-11-15 Thread Luca Olivetti

En/na Peter Bengtsson ha escrit:


Still an amazingly poor error message by your mysql.
(perhaps time to upgrade to postgresql :)


Well, I just started tinkering with postgresql and already had my share 
of meaningless error messages ;-)

And the Operational Error in psycopg 2.0b4 wasn't much helpful either :-D
(I know, I know, not a postgresql problem, and it's fixed now).

Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Zope 2.8 or 3.1?

2005-11-11 Thread Luca Olivetti

En/na Jens Vagelpohl ha escrit:

The only issues you might ever run into would be problems with the 
Python that comes with the OS. But then again if you run Zope in 
production you should never ever use the system Python and build your 
own instead. The system Python tends to be compiled with weird flags on 
RH-based distros to suit their own needs for the many Python-based 
scripts they have in the OS. Don't use it, build your own.


I agree with your opinion, but I have to add that yesterday (that's why 
I follow-up now to this old thread) I had to build python 2.3.5 on a 
shiny new x86_64 machine and it's been a bitch to get right.
Luckily I found the patches in the (mandriva) rpm for 2.3.4 that solved 
(or at least it seems so) the issues with lib/lib64 (there are still a 
couple of tests failing but zope seems to run fine).


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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] Zope Debugger 0.8.0 Released!

2005-09-29 Thread Luca Olivetti

En/na Chris Withers ha escrit:
For more information, please see: 
http://www.simplistix.co.uk/software/zope/zdb


2005-09-29 08:43:11 ERROR Zope Couldn't install zdb
Traceback (most recent call last):
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 773, in install_product

initmethod(context)
  File /home/luca/zopetest/Products/zdb/__init__.py, line 64, in 
initialize

pack._m['debug_compile'] = debug_compile
TypeError: object does not support item assignment
Traceback (most recent call last):
  File /usr/local/zope-2.8.1-final/lib/python/Zope2/Startup/run.py, 
line 56, in ?

run()
  File /usr/local/zope-2.8.1-final/lib/python/Zope2/Startup/run.py, 
line 21, in run

starter.prepare()
  File 
/usr/local/zope-2.8.1-final/lib/python/Zope2/Startup/__init__.py, line 
98, in prepare

self.startZope()
  File 
/usr/local/zope-2.8.1-final/lib/python/Zope2/Startup/__init__.py, line 
257, in startZope

Zope2.startup()
  File /usr/local/zope-2.8.1-final/lib/python/Zope2/__init__.py, line 
47, in startup

_startup()
  File /usr/local/zope-2.8.1-final/lib/python/Zope2/App/startup.py, 
line 95, in startup

OFS.Application.initialize(application)
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 298, in initialize

initializer.initialize()
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 327, in initialize

self.install_products()
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 595, in install_products

return install_products(app)
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 626, in install_products

folder_permissions, raise_exc=debug_mode)
  File /usr/local/zope-2.8.1-final/lib/python/OFS/Application.py, 
line 773, in install_product

initmethod(context)
  File /home/luca/zopetest/Products/zdb/__init__.py, line 64, in 
initialize

pack._m['debug_compile'] = debug_compile
TypeError: object does not support item assignment


Bye
--
Luca Olivetti
Wetron Automatización S.A. http://www.wetron.es/
Tel. +34 93 5883004  Fax +34 93 5883007
___
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 )