Re: [Zope] Zope, Apache, REMOTE_USER

2006-01-11 Thread Thomas Bennett
Don't know if this will work for you but since I put Apache in front of Zope I've had to change all REMOTE_USER to HTTP_X_FORWARDED_FOR for use in scripts that used the REMOTE_USER value before. Thomas On Monday 19 December 2005 15:12, Robert Boyd wrote: I'm using Apache 2.0, and I cannot

Re: [Zope] Can Zope 2.9 Coexist With Zope 2.6 Using Different Ports?

2006-02-23 Thread Thomas Bennett
I'm running Zope 2.8.1-final, python 2.3.5, linux2 and Zope 2.6.1 python 2.1.3, linux2 on the same server so I don't see why you cant' also run Zope 2.9. More than likely each of your configurations have the same path to the lock file. Edit zopefolder/etc/zope.conf where zopefolder is the

Re: [Zope] How do I do this using Zope?

2006-03-09 Thread Thomas Bennett
We use COREBlog, http://coreblog.org/ , for our news page since July 2004. It works great for a news page. See http://www.library.appstate.edu/blog/news/ . The Recent Entries, Categories, and Archives links in the right column are automatically updated by the product. You can customize the

Re: [Zope] Zope and Tomcat troubles

2006-04-04 Thread Thomas Bennett
If I'm not mistaken, by default out of the package both Zope and Tomcat defaults to run on port 8080, don't know about the relation to OpenXchange. You need to change one of them. As Tino mentioned, Zope port is set in zope.conf. zope.conf, with the Suse 10 rpm I used on my notebook, is

Re: [Zope] Z SQL Method question

2006-05-26 Thread Thomas Bennett
With a lack of information here I'll answer based fully on assumption based on dtml. In your form the action should go to a dtml method. form action=optional_path_to/some_method ... The dtml method should have a call to your Z SQL Method dtml-call my_sql_method And then you can add

Re: [Zope] [ANN] Zope 2.9.3 released

2006-06-07 Thread Thomas Bennett
I'll have to say, this is the first Zope that I've had a problem with the install since 1998. The last successful version I installed was 2.92. RedHat Linux 7.3 Python 2.4.3 I've looked at the Troubleshooting info in the INSTALL.txt file and my Makefile for Python 2.4.3 shows CC=

[Zope] installing zope2.9.3 attempt

2006-06-08 Thread Thomas Bennett
I'll have to say, this is the first Zope that I've had a problem with the install since 1998.  The last successful version I installed was 2.92. RedHat Linux 7.3 Python 2.4.3 I've looked at the Troubleshooting info in the INSTALL.txt file and my Makefile for Python 2.4.3 shows CC=            

Re: [Zope] How best to copy and paste in pythonscript?

2006-09-07 Thread Thomas Bennett
For what its worth, thanks AJ and others for the time you put into replying queries daily. I find often I don't have to ask because if someone hasn't already asked it someone else will soon ask. Not to mention, but I will, some of your responses (all of you) leaves me saying I didn''t know

[Zope] making a dynamic quiz help

2006-11-28 Thread Thomas Bennett
I would like some suggestions on building a dynamic quiz. There are categories and in each category the question can be multiple choice or true/false. For each category a specific number of questions is asked. The questions asked are randomly chosen from a collection of questions for the

[Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? It appears to work but I'm not sure if there may be repercussions on this. Thomas Long story: I had to make the change in getUserVariable(self, key, default=None) to view

Re: [Zope] CorpCalendar 1.4 and 1.7 issues

2007-03-22 Thread Thomas Bennett
' -- On Thursday 22 March 2007 13:26, Andreas Jung wrote: --On 22. März 2007 14:09:00 -0400 Thomas Bennett [EMAIL PROTECTED] wrote: Long story short: Is it appropriate to change self.REQUEST.AUTHENTICATED_USER.name to self.REQUEST.REMOTE_USER ? Using AUTHENTICATED_USER

[Zope] PluggableAuthService question about roles

2007-04-02 Thread Thomas Bennett
I have installed the following: Zope Version(Zope 2.9.7-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] System Platform linux2 SOFTWARE_HOME /var/zope/lib/python ZOPE_HOME

[Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Zope Version(Zope 2.9.7-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat 4.1.1-30)] System Platform linux2 SOFTWARE_HOME /var/zope/lib/python ZOPE_HOME /var/zope INSTANCE_HOME /var/zope CLIENT_HOME

Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
Message - From: Thomas Bennett [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, April 25, 2007 3:24 PM Subject: [Zope] apache rewrite quit working Zope Version (Zope 2.9.7-final, python 2.4.4, linux2) Python Version 2.4.4 (#1, Oct 23 2006, 13:58:00) [GCC 4.1.1 20061011 (Red Hat

Re: [Zope] apache rewrite quit working

2007-04-25 Thread Thomas Bennett
On Wednesday 25 April 2007 15:50, Jonathan wrote: - Original Message - From: Thomas Bennett [EMAIL PROTECTED] To: zope@zope.org Sent: Wednesday, April 25, 2007 4:15 PM Subject: Re: [Zope] apache rewrite quit working web-dav server is listening on 9800 http server is now listening on 80

Re: [Zope] apache rewrite quit working

2007-05-09 Thread Thomas Bennett
Education Development Faculty of Medical Sciences Computing University of Newcastle Email : [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Bennett Sent: 25 April 2007 22:44 To: zope@zope.org Subject: Re: [Zope] apache

Re: [Zope] apache rewrite quit working

2007-05-09 Thread Thomas Bennett
Specialist -==- School of Medical Education Development Faculty of Medical Sciences Computing University of Newcastle Email : [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Bennett

Re: [Zope] where does ZOPE store users created objects

2007-06-11 Thread Thomas Bennett
This might help a little, not sure. Have you ever gone into ZMI-Control_Panel-Database Management and packed the database? Thomas On Sunday 10 June 2007 02:28, kamal hamzat wrote: Hello, Please i want to know the physical path on my Zope installation where Zope stored the objects (such as

Re: [Zope] Zope products that allows people to Add Comments to publications

2007-06-26 Thread Thomas Bennett
I have been wanting to try a SquishDot site also and get the very same error. Traceback (innermost last): Module ZPublisher.Publish, line 119, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 42, in call_object Module App.special_dtml, line 65, in

Re: [Zope] using smart folder to pick certain number of news articles to display in the home page

2007-07-02 Thread Thomas Bennett
See: http://www.zope.org/Members/EIONET/RDFSummary This product is old but I don't think it needs any maintenance since it still does the simple but good job it was designed to do. I have a different situation but you might want to implement this. This is with just Zope not Plone. All our

Re: [Zope] Why doesn't os.system(command) work?

2007-08-17 Thread Thomas Bennett
You probably want NT Script. We use that on our public PCs in the library. We have CDs in a tower and use NT Script to map a CD and a drive from a server that has an executable to access the CD or run the executable from the client machine. Every machine has NT Script installed. In 1995

Re: [Zope] Re: deprecated products?

2007-10-17 Thread Thomas Bennett
Some Products deprecated ( and some not ) only need minor editing to get working again such as I did to a Product when moving to a newer Zope. Even I can do minor edits and help from the list makes it even easier and quicker when I can't find a solution on my own. Just because a Product is

Re: [Zope] Zope database file grows when no one is modifying it

2007-10-19 Thread Thomas Bennett
PIL import Image,ImageDraw,ImageFont import random import os from StringIO import StringIO from OFS.Image import manage_addImage # CREATED AUGUST 8, 2007 - Thomas Bennett # REQUIREMENTS # PIL FONTS FROM http://effbot.org/pil/pilfonts.zip # PIL FROM http://www.pythonware.com/products/pil/ def

Re: [Zope] Zope database file grows when no one is modifying it

2007-10-19 Thread Thomas Bennett
Well first, is it actually Data.fs that you see growing or are you just seeing less disk space from a reporting tool, you just said the Zope site has filled up. If it is not Data.fs then look at the size of your logs, often, and which one is growing fastest and how big is it. Also, do you

[Zope] trying to implement server side xsl transform

2007-10-24 Thread Thomas Bennett
Zope Version(Zope 2.10.3-final, python 2.4.3, linux2) using zeo storage I am trying to implement a server side XSL Transform with the tools I have installed. I have 4suite, libxml2, and libxsl. The all of the files are dtml documents. Listing 1 below works on the command line and

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
On Wednesday 24 October 2007 23:35, Andreas Jung wrote: --On 24. Oktober 2007 17:01:35 -0400 Thomas Bennett [EMAIL PROTECTED] wrote: Zope Version(Zope 2.10.3-final, python 2.4.3, linux2) using zeo storage I am trying to implement a server side XSL Transform with the tools I

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
to share it? cb -Oorspronkelijk bericht- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Thomas Bennett Verzonden: woensdag 24 oktober 2007 23:02 Aan: zope@zope.org Onderwerp: [Zope] trying to implement server side xsl transform Zope Version (Zope 2.10.3-final, python 2.4.3

Re: [Zope] trying to implement server side xsl transform

2007-10-25 Thread Thomas Bennett
I started trying a solution with libxml2/libxslt which did work in python on the command line but failed through the WEB While browsing the WEB I came across lxml and didn't spend much time on it but now looking at it I think the tools from 4suite still involve less code although there may be

Re: [Zope] HTML forms inside a Zsearch method

2007-11-29 Thread Thomas Bennett
I'm not quite sure what you mean by a selection button but as far as a checkbox the value will exist or not. that is to say that if the box is checked then the value and variable will exist. if the box is not checked then there is nothing. At least this is what I have found with forms and

[Zope] google gdata External Method doesn't work script does

2008-02-04 Thread Thomas Bennett
I am using the gdata library from google and my script works as a standalone but when I try to use it as an External Method I get an error: ssl() argument 1 must be _socket.socket, not _socketobject I suspect it is from the python socket library but I don't know why I am getting this error or how

[Zope] RedHat blows up? (another post follow up)

2008-03-14 Thread Thomas Bennett
Concerning the post from FuBuJo [EMAIL PROTECTED] about Zope Zeo with reference to RedHat blowing up with Zope. I've been running Zope on RedHat and RedHat based OSs since 1999, always on Dells, and only found an issue with RedHat 8.0 when it came out (before RHEL existed) and the issue was

Re: [Zope] ZServer uncaptured python exception

2008-04-02 Thread Thomas Bennett
I have had similar instances with GSA on my Zope server in that it would try to index something like /mydir/mydir/mydir/mydir/somefile.html Often I've found the case is an href that references ../somethingelse.html I don't know if this might be related to your case but you might want to check.

Re: [Zope] External Method in Zope

2008-04-07 Thread Thomas Bennett
If you absolutely have to, look at Paramiko a python ssh/sftp library which is easy to use but as mentioned already there are critical security issues. with paramiko you don't have to directly edit the files but within an ssh connection run the commands needed that actually make the changes.

Re: [Zope] ZServer uncaptured python exception

2008-04-07 Thread Thomas Bennett
:06, Chris Withers wrote: Thomas Bennett wrote: I have had similar instances with GSA on my Zope server in that it would try to index something like /mydir/mydir/mydir/mydir/somefile.html Often I've found the case is an href that references ../somethingelse.html Yes, that's bad coding

Re: [Zope] ExternalMethod - add new parameter

2008-04-09 Thread Thomas Bennett
If you would elaborate a little, like what you really want to do, you might get responses directing you toward a quicker solution. That aside, if you want to execute a command line application as root from your External Method look at Paramiko as mentioned in my response to the previous

Re: [Zope] retrieving a single column from database and giving it as hyper link fetching respective data

2008-04-11 Thread Thomas Bennett
On Friday 11 April 2008 01:02, member madhangc wrote: Dear all, I'm developing a biological database using Zope 2.6 and pgsql. Let me explain my issue with an example. There is a menu called Drug in my homepage, by clicking the menu the drug names along with their type in two different

Re: [Zope] Upgrade to 2.7.2 results in all content unavailable

2008-04-11 Thread Thomas Bennett
have you used locate or any other utility to make sure you only have one Zope installed, like locate zope.conf ? Thomas On Friday 11 April 2008 15:14, Wes Modes wrote: Better yet, here's a more informative debug output. It tells me that zope thinks this is a new instance. Though the old

Re: [Zope] Upgrade to 2.7.2 results in all content unavailable - SOLUTION!

2008-04-14 Thread Thomas Bennett
So was this RHEL machine customized to update ZOPE with YUM or Up2date or is this a default. I have been using Fedora and CentOS (both built from redhat dist.) for some time now and haven't seen this issue. This would be nice to know seeing that I am currently moving all my linux servers to

Re: [Zope] getting post data from a webcam

2008-07-09 Thread Thomas Bennett
Can you use ftp or webdav, that may be easier, this would take care of mimetypes without having to move to a lower level. It depends on the capabilities of your camera but not knowing the model there is limited help. I had an Axis camera, that ran embedded linux and had a built in python

Re: [Zope] Bug in ZSQL test?

2008-07-10 Thread Thomas Bennett
I've seen this before in ZSQL test . But sometimes I have found that forms I've created that do this with POST work by changing the method to GET or viceversa Thomas On Thursday 10 July 2008 16:37, Garry Saddington wrote: On Thursday 10 July 2008 20:47, Allen Schmidt Sr. wrote: I know, I

Re: [Zope] Trying ZODB with a background in RDBMS

2008-08-14 Thread Thomas Bennett
This may help in addition to Jonathan's suggestion. In PostgreSQL when you create a serial field for that purpose it actually creates an integer field with a modifier similar to this: not null default nextval(('dl_articlereq_id_seq'::text)::regclass) where dl_article is the table in which id

[Zope] DirectoryStorage product - zope won't start

2008-09-09 Thread Thomas Bennett
using python 2.4.5 Zope 2.11.1-final DirectoryStorage 1.1.19 First, is there a more preferable product to use to serve files, mostly PDF, from the file system with Zope? I suspect lock_file.py has changed since the DirectoryStorage product was last updated. I followed instructions on

Re: [Zope] DirectoryStorage product - zope won't start

2008-09-12 Thread Thomas Bennett
On Wednesday 10 September 2008 13:36, Dieter Maurer wrote: Thomas Bennett wrote at 2008-9-9 13:12 -0400: using python 2.4.5 Zope 2.11.1-final DirectoryStorage 1.1.19 First, is there a more preferable product to use to serve files, mostly PDF, from the file system with Zope? I suspect

[Zope] Google apps and SAML 2.0 authenticating using Zope

2008-11-13 Thread Thomas Bennett
I need a SAML 2.0 solution for authenticating into Google Apps from a SAML 2.0 request from Google Apps. There are Java, PHP, Perl, Drupal, and other solutions but I didn't want to build from scratch if there was already a Zope solution available. I haven't found a Zope product that does SAML

Re: [Zope] is there a zope product for generating spreadsheets?

2009-05-05 Thread Thomas Bennett
I don't know if there is a reason not to use this but no one has mentioned PyUNO. http://wiki.services.openoffice.org/wiki/Python From that page: OpenOffice.org ships with a python scripting language, version 2.3.4. This Python distribution comes with the Uno module which connects the UNO API

Re: [Zope] Getting Auto Increment value

2009-06-11 Thread Thomas Bennett
I am suspecting that serial in MySQL works like serial in PostgreSQL in which a sequence is automatically created. If so, you should be able to query the last_value field in the sequence without having to call the function. The field name might be different in MySQL, I don't know. This will

Re: [Zope] psycopg import error

2009-06-23 Thread Thomas Bennett
Have you installed psycopg2 2.0.11, not the adapter but the library for python? and is it in the python path for your Zope python? I'm thinking you have psycopg not psycopg2 installed as your python library and the psycopg2 adapter. There is no psycopg 2.0.11. I am assuming this is still how

[Zope] apache rules with zope

2009-09-04 Thread Thomas Bennett
I can access two directories in /var/www but not two others. I have this rule in httpd.conf before the rewrite rules for Zope: RewriteCond %{REQUEST_URI} !^/(usage|zusage|ead2002|asu_ead) The usage and zusage directories work, that is /usage goes to the /var/www/usage directory not looking on