[Zope] Help!!! Zope won't start -- StorageSystemError

2005-08-27 Thread Dan Gaibel

Hi folks,

This is my first post to this list and I'm desperate for help. I'm running 
Zope 2.6.1 with Python 2.1.3. My Zope instance died today and won't come 
back. When I try to start it, I get:


2005-08-27T20:58:15 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File /home/lrc/z2.py, line 497, in ?
  File string, line 1, in ?
  File /home/lrc/lib/python/Zope/__init__.py, line 37, in ?
  File /home/lrc/lib/python/ZODB/FileStorage.py, line 213, in __init__
  File /home/lrc/lib/python/ZODB/lock_file.py, line 33, in lock_file
StorageSystemError: Could not lock the database file.  There must be
another process that has opened the file.
p


--
2005-08-27T20:58:15 PROBLEM(100) zdaemon zdaemon: Sat Aug 27 16:58:15 2005: 
The kid, 1657, died on me.


At first I deleted Data.fs.lock and cannot find any process that would 
suggest zope is running. I've also played with renaming various .pid files 
in hopes of an answer. I'm stumped and in very hot water right now. Any 
help or guidance would be very appreciated.


Thanks,

Dan

___
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: Help!!! Zope won't start -- StorageSystemError

2005-08-27 Thread Dan Gaibel

At 07:22 PM 8/27/2005 -0400, Tres Seaver wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dan Gaibel wrote:
 Hi folks,

 This is my first post to this list and I'm desperate for help. I'm
 running Zope 2.6.1 with Python 2.1.3. My Zope instance died today and
 won't come back. When I try to start it, I get:

 2005-08-27T20:58:15 PANIC(300) z2 Startup exception
 Traceback (innermost last):
   File /home/lrc/z2.py, line 497, in ?
   File string, line 1, in ?
   File /home/lrc/lib/python/Zope/__init__.py, line 37, in ?
   File /home/lrc/lib/python/ZODB/FileStorage.py, line 213, in __init__
   File /home/lrc/lib/python/ZODB/lock_file.py, line 33, in lock_file
 StorageSystemError: Could not lock the database file.  There must be
 another process that has opened the file.
 p


 --
 2005-08-27T20:58:15 PROBLEM(100) zdaemon zdaemon: Sat Aug 27 16:58:15
 2005: The kid, 1657, died on me.

 At first I deleted Data.fs.lock and cannot find any process that would
 suggest zope is running. I've also played with renaming various .pid
 files in hopes of an answer. I'm stumped and in very hot water right
 now. Any help or guidance would be very appreciated.

Can you run 'lsof' against your Data.fs?  or run 'killall python' (not
as root, unless Zope is the only process which might be running Python).


Thanks for the quick response! lsof gives me nothing, and I still have 
trouble when all python processes are killed. Even after a reboot. I 
thought it might be a corrupt Data.fs or something, but I can get it to 
start on another instance of zope. Could it be some lock file that I don't 
know about? I'm stumped.


Thanks,

Dan 


___
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 Managed Server

2006-03-07 Thread Dan Gaibel
Hello Folks,

I'm interested in finding a company that will do monthly managed zope
hosting. We're looking for a dedicated machine. I know that Zope Corp does
this and it is quite expensive. I wonder if anyone has had any experiences
with such a service.

Any advice is highly appreciated, and I apologize if this list is an
inappropriate venue to pose such a question.

Thanks!

Dan

___
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 Managed Server

2006-03-14 Thread Dan Gaibel
Thanks to all for the advice. It feels like I'm better off with a
dedicated server on which I can install and configure zope myself. I
wonder now about what type of machine is ideal. Eventually I hope to be
serving many (possibly hundreds) small websites via VHM. I'm sure that I
need plenty of memory, but what about CPU? Are there any statistics or
recommended configurations out there? How can I know what sort of load a
particular server will be able to withstand?

Thanks for your help!

Dan

 Servelocity at

 http://www.servelocity.net/

 are also very good. You can rent your own dedicated server and install
 what
 you want on it. Excellent support and service.

 On 3/12/06, Allen Schmidt [EMAIL PROTECTED] wrote:

 +1 for Zettai. Have had great success with them.
 If you need a place to stick a server then I highly recommend
 bayMountain.
 Amazing service and support. A great team of open source and Zope
 experts
 there.

 Allen


 David wrote:
  J Cameron Cooper wrote:
 
  Dan Gaibel wrote:
 
  Hello Folks,
 
  I'm interested in finding a company that will do monthly managed
 zope
  hosting. We're looking for a dedicated machine. I know that Zope
 Corp
  does
  this and it is quite expensive. I wonder if anyone has had any
  experiences
  with such a service.
 
  Any advice is highly appreciated, and I apologize if this list is an
  inappropriate venue to pose such a question.
 
 
 
  There are a number of these companies around. iMeme and Zettai come
 to
  mind. I'm sure there are more nowadays.
 
  --jcc
 
 
  Dan,
 
  I use Zettai.  Can't complain at all.   Even though I use virtual host
  plan (I share a server with about 8(?) others) the performance is
 better
  than I feared might be the case.
  The best of all worlds is to at least co-host your server.  But thats
  more over-head for the developer.  Zettai support is excellent.
  (although they do get cranky if you lean too much on them).
 
  I just checked out the iMeme site - and they may be pretty good ( jcc
  wouldn't recommend them otherwise) but their presentation is
 gawd-awful
  and not confidence inspiring.
  David
 
 
 
 
  ___
  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 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 )




 --
 michael
 ___
 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 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] Virtual Host Monster

2006-03-19 Thread Dan Gaibel

Hi Folks,

I want to use Zope for web hosting, and I wonder about the Virtual  
Host Monster. Is it reasonable to think that I could host say,  
200-300 small sites (different domains, low traffic) in one instance  
of zope 2.8? I'm planning on a dedicated server with 2GB of RAM. Does  
this seem feasible? Any advice on how to test something like this?


Thanks,

Dan
___
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] FTP and Firewall

2006-07-30 Thread Dan Gaibel

Hi,

I'm using Zope 2.8.6 with Python 2.3.5 and have found that when I FTP  
into zope, I am unable to list the contents of the directory I am in.  
It seems that logging in is no problem. Could this be a problem with  
my firewall? Has anyone seen this before? We are using port 8021  
rather than the usual port 21. Could this be the issue?


Any help is appreciated.

Thanks!

Dan
___
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] Trouble with PIL and Zope 2.8

2006-08-18 Thread Dan Gaibel

Hello group,

I am having problems with my PIL installation and I wonder if anyone  
has any ideas..


After what looked like a successful install of PIL 1.1.5 I am getting  
errors like encoder jpeg not available even though it looked like  
jpeg support compiled just fine in setup. Perhaps there is a special  
way to install PIL for use in Zope? Any advice is much appreciated.


What I'm working with:

Fedora Core 4
Python 2.3.5
Zope 2.8.6
PIL 1.1.5

Thanks!

Dan
___
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] Storing sensitive data

2006-12-13 Thread Dan Gaibel

Hi all,

I am wondering about storing credit card and personal information in  
Zope 2.8.6 (with Python 2.3.5.) Is there a simple way to secure data  
with SSL/https without having to run Apache? I found ZServerSSL and I  
wonder if that will be the answer. Has anyone used the product with  
Zope 2.8? I am a newbie with an SSL certificate and I frankly don't  
know what to do with it.


Thanks in advance for any help!

Best,

Dan
___
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] Question about Upgrading Zope and OS X Server

2010-12-07 Thread Dan Gaibel
Greetings,

I have recently inherited the responsibility of supporting a fairly complex web 
server running Zope 2.8.6 on Python 2.3.5. This configuration is currently on a 
Linux (Fedora Core) server and I would like very much to migrate to OS X Server 
Snow Leopard. It also seems to me that I should consider upgrading Zope to a 
more current release while I'm at it. We heavily use MySQL and associated 
products, LocalFS, and the Python Imagining Library. We have a variety of 
ZClass homegrown products as well.

I know that I'm in for a headache no matter what, but I wonder if any of you 
folks could point me in the right direction or offer advice on the situation. 
Is it crazy to jump from 2.8.6 to 2.12? Does anyone use OS X Server for Zope? 
Is this migration a mistake? Any pitfalls I should be looking out for?

Many thanks,

Dan
___
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] Question about Upgrading Zope and OS X Server

2010-12-07 Thread Dan Gaibel
Good advice here, thanks! Is it a big mistake to stay at Zope 2.8.6? The server 
has been very stable for years, apparently. What are the downfalls of not 
upgrading all the way past 2.10?

On Dec 7, 2010, at 2:40 PM, Andrew Milton wrote:

 +---[ Tres Seaver ]--
 | -BEGIN PGP SIGNED MESSAGE-
 | Hash: SHA1
 | 
 | On 12/07/2010 01:18 PM, Dan Gaibel wrote:
 | 
 |  I have recently inherited the responsibility of supporting a fairly
 |  complex web server running Zope 2.8.6 on Python 2.3.5. This
 |  configuration is currently on a Linux (Fedora Core) server and I
 |  would like very much to migrate to OS X Server Snow Leopard. It also
 |  seems to me that I should consider upgrading Zope to a more current
 |  release while I'm at it. We heavily use MySQL and associated
 |  products, LocalFS, and the Python Imagining Library. We have a
 |  variety of ZClass homegrown products as well.
 |  
 |  I know that I'm in for a headache no matter what, but I wonder if any
 |  of you folks could point me in the right direction or offer advice on
 |  the situation. Is it crazy to jump from 2.8.6 to 2.12? Does anyone
 |  use OS X Server for Zope? Is this migration a mistake? Any pitfalls I
 |  should be looking out for?
 | 
 | I would do this in small steps, e.g. first migrate to the new machine / OS:
 | 
 | - - Get Python 2.3.x installed on the OS/X server.
 | 
 | - - Build the latest Zope 2.8.* on that server.
 | 
 | - - Install and test products there in the same versions  you now use.
 | 
 | - - Copy your old database over and test.
 | 
 | then upgrade the software stack:
 | 
 | - - Move carefully through the Zope releases (I would to 2.9, 2.10, and'
 |   2.12), upgrading Python as needed  to stay on a supported version.
 | 
 | - - Check for upgrades to the products, and their compatibility with
 |   Zope versions.  Test them, and your site. after each upgrade.
 
 The move from 2.9 to 2.10 is likely to be the most painful part in
 terms of legacy Zope apps. A lot of products will break on 2.10
 
 -- 
 Andrew Milton
 a...@theinternet.com.au
 ___
 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 )

___
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] Question about Upgrading Zope and OS X Server

2010-12-08 Thread Dan Gaibel
So OS X Server Snow Leopard comes with Python 2.6.1. Is there any  
reason to think that this Python version would cause problems with  
Zope 2.8.6? We have had nice stability with Python 2.3.5. Either way,  
is Zope 2.8.7 a significantly better choice than 2.8.6?


On Dec 8, 2010, at 8:22 AM, Richard Harley wrote:

 Dan - we are using 64bit Zope 2.8.7 and python 2.4 with no problems  
 for
 years now. It can do everything we want with regards to Python
 scripting, database connectivity etc.

 I can't think of any huge problems with staying on Zope 2.8.6/7 era. I
 have said before 2.10+ breaks lots of products that would take ages to
 hack about (especially for companies using Zope not individuals with
 time on their hands). I'm all for upgrading, bug fixing and  
 refactoring
 normally, but the backwards compatibility with Zope makes it harder  
 than
 it should be.

 Rich


 On 08/12/10 12:11, Peter Bengtsson wrote:
 We're running several perfectly working 2.8 Zopes. They've been  
 very stable.
 Annoying that Ubuntu insists on making Python 2.4 hard to install but
 for some of the servers we've changed back to Debian.

 On 7 December 2010 16:58, Dan Gaibeld...@cornell.edu  wrote:

 Good advice here, thanks! Is it a big mistake to stay at Zope  
 2.8.6? The server has been very stable for years, apparently. What  
 are the downfalls of not upgrading all the way past 2.10?

 On Dec 7, 2010, at 2:40 PM, Andrew Milton wrote:


 +---[ Tres Seaver ]--
 | -BEGIN PGP SIGNED MESSAGE-
 | Hash: SHA1
 |
 | On 12/07/2010 01:18 PM, Dan Gaibel wrote:
 |
 |  I have recently inherited the responsibility of supporting a  
 fairly
 |  complex web server running Zope 2.8.6 on Python 2.3.5. This
 |  configuration is currently on a Linux (Fedora Core) server  
 and I
 |  would like very much to migrate to OS X Server Snow Leopard.  
 It also
 |  seems to me that I should consider upgrading Zope to a more  
 current
 |  release while I'm at it. We heavily use MySQL and associated
 |  products, LocalFS, and the Python Imagining Library. We have a
 |  variety of ZClass homegrown products as well.
 |
 |  I know that I'm in for a headache no matter what, but I  
 wonder if any
 |  of you folks could point me in the right direction or offer  
 advice on
 |  the situation. Is it crazy to jump from 2.8.6 to 2.12? Does  
 anyone
 |  use OS X Server for Zope? Is this migration a mistake? Any  
 pitfalls I
 |  should be looking out for?
 |
 | I would do this in small steps, e.g. first migrate to the new  
 machine / OS:
 |
 | - - Get Python 2.3.x installed on the OS/X server.
 |
 | - - Build the latest Zope 2.8.* on that server.
 |
 | - - Install and test products there in the same versions  you  
 now use.
 |
 | - - Copy your old database over and test.
 |
 | then upgrade the software stack:
 |
 | - - Move carefully through the Zope releases (I would to 2.9,  
 2.10, and'
 |   2.12), upgrading Python as needed  to stay on a supported  
 version.
 |
 | - - Check for upgrades to the products, and their compatibility  
 with
 |   Zope versions.  Test them, and your site. after each upgrade.

 The move from 2.9 to 2.10 is likely to be the most painful part in
 terms of legacy Zope apps. A lot of products will break on 2.10

 --
 Andrew Milton
 a...@theinternet.com.au
 ___
 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 )

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






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

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


[Zope] Trouble getting Zope 2.8/Python 2.3 to work in OS X 10.6

2010-12-23 Thread Dan Gaibel
I apologize if this questions belongs in a different forum, but...

I am having a heck of a time getting Python 2.3.5 installed in OS X  
10.6 (Snow Leopard server.) I need it for a Zope 2.8.6 installation.  
OS X comes with Python 2.6.1 and I guess my plan is to have 2.3  
installed alongside it.

Neither MacPorts (a framework for installing ports of various programs  
to os x) nor Fink (essentially a port of apt-get / dpkg for os x)  
worked. MacPorts didn't have a port of python2.3 and Fink wouldn't  
compile.

What I did to get it to the point where it is now:

configure with:

./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.5 --with- 
universal-archs=all --enable-toolbox-glue=false

then run:

export LC_CTYPE=en_US.UTF-8

next edit the resulting Makefile and remove the -Wno-long-double flag  
(it only appears once)

finally, running 'sudo make' yields the error:

libtool -o Python.framework/Versions/2.3/Python -dynamic -prebind - 
seg1addr 0x1000 libpython2.3.a \
 -framework System -lcc_dynamic -arch_only ppc  - 
install_name /Library/Frameworks/Python.framework/Versions/2.3/Python - 
compatibility_version 2.3 -current_version 2.3
libtool: can't locate file for: -lcc_dynamic
libtool: file: -lcc_dynamic is not an object file (not allowed in a  
library)
make: *** [Python.framework/Versions/2.3/Python] Error 1

I haven't been able to figure out that last error; commenting out the  
line it stems from breaks things, deleting just that particular flag  
(lcc_dynamic) breaks things, and googling didn't turn up any answers.

If this is an inappropriate questions for this list, I apologize...  
where should I post?

Thanks!

Dan
___
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] Trouble getting Zope 2.8/Python 2.3 to work in OS X 10.6

2011-01-05 Thread Dan Gaibel
So I ended up going with Python 2.4.6 via Macports. I really want to  
get this to work with Zope 2.8... configure works fine when I use this  
python, but then when I make, I get:

/opt/local/bin/python2.4 /home/zope/Zope-2.8.6-final/setup.py \
 build --build-base=/home/zope/Zope-2.8.6-final/build- 
base/python-2.4 --build-lib=/home/zope/Zope-2.8.6-final/build-base/ 
python-2.4/build-lib --build-scripts=/home/zope/Zope-2.8.6-final/ 
build-base/python-2.4/build-scripts --build-temp=/home/zope/ 
Zope-2.8.6-final/build-base/python-2.4/build-temp
running build
running build_py
error: package directory 'build/lib/macosx-10/6-i386-2/4/Products/ 
StandardCacheManagers' does not exist
make: *** [build] Error 1

I see this StandardCacheManagers directory does exist in /home/zope/ 
Zope-2.8.6-final/lib/python/build/lib.macosx-10.6-i386-2.4/Products/ 
StandardCacheManagers but maybe this is not the right one? Any thoughts?

Thanks,

Dan

On Dec 23, 2010, at 10:10 AM, Dan Gaibel wrote:

 I apologize if this questions belongs in a different forum, but...

 I am having a heck of a time getting Python 2.3.5 installed in OS X
 10.6 (Snow Leopard server.) I need it for a Zope 2.8.6 installation.
 OS X comes with Python 2.6.1 and I guess my plan is to have 2.3
 installed alongside it.

 Neither MacPorts (a framework for installing ports of various programs
 to os x) nor Fink (essentially a port of apt-get / dpkg for os x)
 worked. MacPorts didn't have a port of python2.3 and Fink wouldn't
 compile.

 What I did to get it to the point where it is now:

 configure with:

 ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.5 --with-
 universal-archs=all --enable-toolbox-glue=false

 then run:

 export LC_CTYPE=en_US.UTF-8

 next edit the resulting Makefile and remove the -Wno-long-double flag
 (it only appears once)

 finally, running 'sudo make' yields the error:

 libtool -o Python.framework/Versions/2.3/Python -dynamic -prebind -
 seg1addr 0x1000 libpython2.3.a \
 -framework System -lcc_dynamic -arch_only ppc  -
 install_name /Library/Frameworks/Python.framework/Versions/2.3/ 
 Python -
 compatibility_version 2.3 -current_version 2.3
 libtool: can't locate file for: -lcc_dynamic
 libtool: file: -lcc_dynamic is not an object file (not allowed in a
 library)
 make: *** [Python.framework/Versions/2.3/Python] Error 1

 I haven't been able to figure out that last error; commenting out the
 line it stems from breaks things, deleting just that particular flag
 (lcc_dynamic) breaks things, and googling didn't turn up any answers.

 If this is an inappropriate questions for this list, I apologize...
 where should I post?

 Thanks!

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

___
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] Trouble getting Zope 2.8/Python 2.3 to work in OS X 10.6

2011-01-06 Thread Dan Gaibel
 remove!
   File /opt/local/libexec/Zope/lib/python/DocumentTemplate/ 
html_quote.py, line 4, in module
 from ustr import ustr
   File /opt/local/libexec/Zope/lib/python/DocumentTemplate/ustr.py,  
line 18, in module
 nasty_exception_str = Exception.__str__.im_func
AttributeError: 'wrapper_descriptor' object has no attribute 'im_func'

Does this make sense to anyone? Has anyone had any luck with Macports  
(using zope) under os x 10.6 (Snow Leopard?)

Any advice is GREATLY appreciated.

Dan

On Jan 5, 2011, at 12:23 PM, Dan Gaibel wrote:

 So I ended up going with Python 2.4.6 via Macports. I really want to
 get this to work with Zope 2.8... configure works fine when I use this
 python, but then when I make, I get:

 /opt/local/bin/python2.4 /home/zope/Zope-2.8.6-final/setup.py \
 build --build-base=/home/zope/Zope-2.8.6-final/build-
 base/python-2.4 --build-lib=/home/zope/Zope-2.8.6-final/build-base/
 python-2.4/build-lib --build-scripts=/home/zope/Zope-2.8.6-final/
 build-base/python-2.4/build-scripts --build-temp=/home/zope/
 Zope-2.8.6-final/build-base/python-2.4/build-temp
 running build
 running build_py
 error: package directory 'build/lib/macosx-10/6-i386-2/4/Products/
 StandardCacheManagers' does not exist
 make: *** [build] Error 1

 I see this StandardCacheManagers directory does exist in /home/zope/
 Zope-2.8.6-final/lib/python/build/lib.macosx-10.6-i386-2.4/Products/
 StandardCacheManagers but maybe this is not the right one? Any  
 thoughts?

 Thanks,

 Dan

 On Dec 23, 2010, at 10:10 AM, Dan Gaibel wrote:

 I apologize if this questions belongs in a different forum, but...

 I am having a heck of a time getting Python 2.3.5 installed in OS X
 10.6 (Snow Leopard server.) I need it for a Zope 2.8.6 installation.
 OS X comes with Python 2.6.1 and I guess my plan is to have 2.3
 installed alongside it.

 Neither MacPorts (a framework for installing ports of various  
 programs
 to os x) nor Fink (essentially a port of apt-get / dpkg for os x)
 worked. MacPorts didn't have a port of python2.3 and Fink wouldn't
 compile.

 What I did to get it to the point where it is now:

 configure with:

 ./configure --enable-framework MACOSX_DEPLOYMENT_TARGET=10.5 --with-
 universal-archs=all --enable-toolbox-glue=false

 then run:

 export LC_CTYPE=en_US.UTF-8

 next edit the resulting Makefile and remove the -Wno-long-double flag
 (it only appears once)

 finally, running 'sudo make' yields the error:

 libtool -o Python.framework/Versions/2.3/Python -dynamic -prebind -
 seg1addr 0x1000 libpython2.3.a \
-framework System -lcc_dynamic -arch_only ppc  -
 install_name /Library/Frameworks/Python.framework/Versions/2.3/
 Python -
 compatibility_version 2.3 -current_version 2.3
 libtool: can't locate file for: -lcc_dynamic
 libtool: file: -lcc_dynamic is not an object file (not allowed in a
 library)
 make: *** [Python.framework/Versions/2.3/Python] Error 1

 I haven't been able to figure out that last error; commenting out the
 line it stems from breaks things, deleting just that particular flag
 (lcc_dynamic) breaks things, and googling didn't turn up any answers.

 If this is an inappropriate questions for this list, I apologize...
 where should I post?

 Thanks!

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

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

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


[Zope] Data.fs too big to pack...

2012-12-06 Thread Dan Gaibel
I have foolishly allowed my database to grow so large that I have no room to 
pack it. Is there any way that I could make it so that Data.fs.old gets 
populated on a separate drive or over the network?

Thanks for any advice as I approach this data storage cliff!
___
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 )


[Zope] Read-only mode for Zope 2.8.6?

2013-01-03 Thread Dan Gaibel
Happy new year, Zope gurus!

I am migrating to a new server and I'd like to be able to put the old machine 
into a read-only mode so that no new transactions occur as I transfer data 
over. In zope.conf there is a read-only-database  directive, which I set to 
on and it has no effect (I can still make changes.) Is there an easy way to 
make the database inaccessible for updating?

Many thanks,

Dan
___
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] attribute/name error after server migration… please advise?

2013-01-10 Thread Dan Gaibel
 of Asian Studies Course Offerings Fall 2011'}, 
{'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings 
Spring 2012'}, {'meta_type': 'File', 'id': 'Course Schedule Spring 2012'}, 
{'meta_type': 'File', 'id': 'Department of Asian Studies Course Offerings Fall 
2012'}, {'meta_type': 'File', 'id': 'ASIAN 2245 Description'}, {'meta_type': 
'File', 'id': 'Department of Asian Studies Course Offerings Spring 2013'}, 
{'meta_type': 'File', 'id': 'Course Schedule Spring 2013'})

confirming that the meta type is Folder_Hidden, a homegrown variation on the 
folder object that was built years ago. There are other instances of that 
product all over the site, and they seem to work fine...

The meta type is confirmed with the type(be.aq_self) command:

class '*eGld6IM/4fOr3FLn15Iljw==.Folder_Hidden'

Since all objects within courses seem to be problematic, I found the meta 
type for the courses folder to be class 'OFS.Folder.Folder'

I also noted that when I first type in be = 
app.asian.courses.behttp://app.asian.courses.be/ or any object within the 
courses folder I get:

2013-01-10 14:23:12 WARNING ZODB Could not import class 'GroupUserFolder' from 
module 'Products.GroupUserFolder.GroupUserFolder'

I included everything that the debugger spit out in a previous response, but it 
got bounced for being to large... maybe unnecessary, anyway.

On Jan 10, 2013, at 2:12 PM, Tres Seaver 
tsea...@palladion.commailto:tsea...@palladion.com wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/10/2013 01:51 PM, Dan Gaibel wrote:
in the debugger I get type 'ImplicitAcquirerWrapper' for
app.asian.courses.behttp://app.asian.courses.be type. Same as other folder 
objects on the site,
even those that are fully funtional.

I should have figured.  Try:

type(be.aq_self)

Another bit of data::

print app.asiaon.courses._objects

Which should tell us the meta_type of the 'be' object.


Tres.
- --
===
Tres Seaver  +1 540-429-0999  
tsea...@palladion.commailto:tsea...@palladion.com
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlDvEpwACgkQ+gerLs4ltQ4qFQCcCiqxCNxd4gqVjpz2HYk52+ou
vOwAnR+1+982Fjx2NqvlBiOLhjCLoLDo
=kdqb
-END PGP SIGNATURE-

___
Zope maillist  -  Zope@zope.orgmailto: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 )


___
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] attribute/name error after server migration… please advise?

2013-01-10 Thread Dan Gaibel
That's it! Fixed! Many, many thanks, Tres. You saved me. Cheers!

On Jan 10, 2013, at 2:58 PM, Tres Seaver tsea...@palladion.com
 wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On 01/10/2013 02:57 PM, Dan Gaibel wrote:
 
 2013-01-10 14:23:12 WARNING ZODB Could not import class
 'GroupUserFolder' from module
 'Products.GroupUserFolder.GroupUserFolder'
 
 
 That is the smoking gun:  your new instance is missing the
 'Products.GroupUserFolder' product.
 
 
 Tres.
 - -- 
 ===
 Tres Seaver  +1 540-429-0999  tsea...@palladion.com
 Palladion Software   Excellence by Designhttp://palladion.com
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.11 (GNU/Linux)
 Comment: Using GnuPG with undefined - http://www.enigmail.net/
 
 iEYEARECAAYFAlDvHVgACgkQ+gerLs4ltQ6+BQCfcMEi3LFtynssv1Fcl2Ht2uS8
 6lcAoKxxxu34f9GPdxLFYXATFePNgksR
 =tJ7v
 -END PGP SIGNATURE-
 
 ___
 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 )
 


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


[Zope] Zope 2: traversing and modifying DTM doc in folders?

2015-08-11 Thread Dan Gaibel
Greetings, I have a developer here trying to fix a problem with some legacy 
Zope 2 (2.8.6) material. Basically, she is trying to change properties on a 
DTML document, but so far cannot get the script to recursively search through 
folders to act on every document in the hierarchy.

Any advice is greatly appreciated!

Best,

Dan

-
Hello, the things we want to do is to find every media file (DTML document) in 
a folder structure and change their format. They are a few folders deep and the 
number of folders that contain the file is unknown, so I tried to use a 
recursive way to get access to every document.

So this is what I did, I wrote a script named changeType with parameter 
object, which is initially 0. Then when object is 0, just set object = 
context. If in object we found that there's another folder called f, just 
called changeType(f). The script is shown as below:

#parameter object = 0
from Products.PythonScripts.standard import html_quote
request = context.REQUEST
RESPONSE =  request.RESPONSE

if object == 0:
   object = context

folders = object.objectValues(['Folder'])
for f in folders:
   fds = f.objectValues(['Folder'])
   if(len(fds) != 0):
  f.changeType(f)
   ...(methods to change format)

But this causes an error:

Error Type: AttributeError
Error Value: ‘str’ object has no attribute ‘objectValues'
​
I think the reason should be, it doesn't seen object or context as object 
and context but seen them just as strings. But I have no idea about how could I 
solve this or if there's any other way I can call a recursive method to get 
every DTML document in their respective subfolders. Please let me know if you 
have any suggestion/examples on Zope/found another error in my code/etc. 
___
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 )


[Zope] Redirecting all objects in a folder

2016-11-20 Thread Dan Gaibel
How can I make it so that any object accessed under a particular folder gets 
redirected to another URL?

In other words, someone going to the URL 
website.com/folder/page1.html or 
website.com/folder/page2.html  (or any 
page in the /folder/ directory) gets redirected to 
google.com.

I’m running Zope 2.8.6 with ZServer. Would Virtual Host Monster work as a 
solution?

Thanks for any advice!

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