[Zope] Re: Frustrated with Python and Frameworks. Zope

2007-12-03 Thread hpinson
Some sort of rating system and comments about Zope products would be 
nice; like Joomla does with its extensions. 

For example:

http://extensions.joomla.org/component/option,com_mtree/task,viewlink/lin
k_id,1508/Itemid,35/

I can't say how much time I have wasted investigating dead-end or poorly 
or un-supported Zope products over the years.  Being able to read other 
peoples unsoliciated opinions about a Joomla Extension has been 
incredibly helpful in making successful long-term selections.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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: Exporting portal member data to csv

2007-02-28 Thread hpinson
I'm having the same problem. 

Zope 2.9.6 and Plone 2.5.2 

Method is describe here:

http://zopelabs.com/cookbook/1140753093

The line: 

password = user._getPassword()

...no longer works.

I can remove that one line, and export to CSV works fine.

Obtaining a username / password list is actually pretty important in 
our use case (patron users routinely forget both their username and 
password and don't like (hate) having their password reset). I miss 
being able to get the password info.  I know it is not good security 
practive to allow this.

I was told by a more knowlegable Plone developer that obtaining the 
passwords to csv is no longer possible for this security concern.  I 
don't know if that is true or not.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] Suggestion for an opensource barchart/piechart

2007-02-19 Thread hpinson
ChartDirector. Not open source, but very good and very affordable:

http://www.advsofteng.com/


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] Limiting access to a Zope Site

2007-02-02 Thread hpinson
Hi. 

I'm looking for several differnt approaches to probably a fairly 
simple problem.

I have a Zope site running behind apache rewrite rules.

www.mysite.org

That site needs to be publically accessable.

A subdomain site (for development):

dev.mysite.org 

needs to be accessable only to a team of developers, and by no one 
else.

The developers may or may not have static IPs and move around quite a 
bit, so limiting access to a set of IPs is not a good option.

Another possibility is making the whole (plone site) private, but 
that changes some key behaviors that we are working on.

I'm looking for alternate approaches to making the subdomain only 
accessable to the developer team. Any suggestions?



-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] DTML Call Fails

2006-10-24 Thread hpinson
A little bit of legacy DTML fun here... Zope 2.9.3

On save of a DTML Method, why would this dtml-call fail:

dtml-let standards=REQUEST.SESSION
  dtml-call standards.set('AR-DA-08', AR-DA-08)
/dtml-let

With the error: 

Expression (Python) Syntax error: invalid token

Whereas this works fine:

dtml-let standards=REQUEST.SESSION
  dtml-call standards.set('AR-DA-07', AR-DA-07)
/dtml-let

Any insight is appreciated.



-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] DTML Call Fails

2006-10-24 Thread hpinson
Hi Tino.  Yes, that is correct. This application has variables named 
like:

'AR-DA-08'

This also fails in a Page Template:

span tal:define=standards python: request.SESSION
   tal:block define=temp python: data.set('AR-DA-08',AR-DA-
08)/tal:block
/span

With the error:

Compilation failed
TAL.TALDefs.TALError: Python expression error:
invalid token (Python expression data.set('AR-DA-08',AR-DA-08), 
line 1) in expression python: data.set('AR

Yet this works:

span tal:define=standards python: request.SESSION
   tal:block define=temp python: data.set('AR-DA-07',AR-DA-
07)/tal:block
/span

So you are saying the interpreter is seeing the '-' as a minus? Why 
would it work in one case and not the other?

Could the minus be escaped somehow?




-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] DTML Call Fails

2006-10-24 Thread hpinson
Yep, changing to a underscore from a dash does the trick.

Thanks to everyone who helped me understand this.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] DTML Call Fails

2006-10-24 Thread hpinson
Changing the dash to an underscore in the variable name solved the 
problem.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] probably a simple answer..

2005-11-17 Thread hpinson
I'm thinking Kate means that she is writing to an Excel file on a 
Zope/Windows server, acting as a simple database, perhaps via ODBC. 

Kate can you clarify what you are trying to do? Thanks.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] probably a simple answer..

2005-11-17 Thread hpinson
Well, I can suggest how I might approach it, which might be different 
than what you intend... but for what it is worth...

First, run Zope on a Windows server so you can interact with an Excel 
file as an ODBC Data Source (DSN).  You could setup a Zope/ODBC 
adaptor Product like zodbc or (better) mxODBC in Zope.  Then in 
Windows control panel, setup an ODBC DSN to the Excel file, and 
create a Zope/ODBC connection in the ZMI.  Then you might be able to 
use ZSQL methods, or Python if you perfer, perhaps using SQL or the 
Windows API, to write to the Excel spreadsheet. You might have to use 
some sort of external file storage for the Excel file, i.e. I'm not 
sure how you could store the Excel file in the ZODB and still 
interact with it and expose it through Zope, though that might be 
possible. 

Like Andreas said, you can't write to a users file system directly,  
if that's what you meant.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] Error on starting and stopping Zope 2.8.2

2005-10-14 Thread hpinson
Hello. On starting and stopping Zope 2.8.2 (upgraded from 2.8.1, 
compiled with Python 2.4.2, running on Fedora Core 3) I get the 
following error. Performance does not seem to be affected.  
Resolution?

# service zopectl start
/opt/python2.4.2/lib/python2.4/whrandom.py:38: DeprecationWarning: 
the whrandom module is deprecated; please use the random module
  DeprecationWarning)
. daemon process started, pid=22829

# service zopectl stop
/opt/python2.4.2/lib/python2.4/whrandom.py:38: DeprecationWarning: 
the whrandom module is deprecated; please use the random module
  DeprecationWarning)
. daemon process stopped


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] Error on starting and stopping Zope 2.8.2

2005-10-14 Thread hpinson
 Please also keep in mind that Zope 2.8.2 requires Python 2.3.5. Zope 2.8.2
 is not certified for any Python 2.4.x versions. So using Python 2.4 is 
 neither recommended nor supported and any related questions or problems are 
 likely to be ignored until 2.4 is an officially supported Python version 
 for Zope.

My mistake, but given that, any sense if I can I safely ignore the 
warning?

So far, things seems to be running well under Python 2.4.2. The 
instance contains a Plone 2.1 site and lots of DTML/ZSQL stuff, which 
appear unaffected. 




-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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] Error on starting and stopping Zope 2.8.2

2005-10-14 Thread hpinson
 It's a DeprecationWarning. 
 
I see. Thanks.

 In contrast, Python 2.4 is now _required_ for Zope 3 development. 
 Zope 3 has a different approach to security, which isn't as sensitive
 to changes in Python.

Good point-- this is why I had compiled 2.8.2 erroneously with Python 
2.4.2-- I was experimenting with Zope 3 instance, and had read the 
docs recommending Py 2.4.2.  My bad assumption was to take the same 
approach with Python 2.8.2. Fortunatly I have 2.3.5 installed along 
side 2.4.2 and can revert to that.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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 will not start after failed 2.8.1 upgrade

2005-09-02 Thread hpinson
Upgraded to Zope 2.8.1 on Fedora Core 2, compiled with Python 2.3.5 
(sitting alongside in the paralell to the system python).  Zope 
started, but with errors.  

Reverted back to my former stable Zope 2.7.7 and Python 2.3.3, but 
Zope will not start at all now.

Running the debugger reveals this. Any suggestions as to how to 
recover. I am at a total loss.

export EVENT_LOG_FILE
EVENT_LOG_FILE=
/var/zope-instance/bin/runzope
Traceback (most recent call last):
  File /var/zope277/lib/python/Zope/Startup/run.py, line 50, in ?
run()
  File /var/zope277/lib/python/Zope/Startup/run.py, line 19, in run
start_zope(opts.configroot)
  File /var/zope277/lib/python/Zope/Startup/__init__.py, line 52, 
in start_zope
starter.startZope()
  File /var/zope277/lib/python/Zope/Startup/__init__.py, line 231, 
in startZope
Zope.startup()
  File /var/zope277/lib/python/Zope/__init__.py, line 47, in 
startup
_startup()
  File /var/zope277/lib/python/Zope/App/startup.py, line 96, in 
startup
OFS.Application.initialize(application)
  File /var/zope277/lib/python/OFS/Application.py, line 278, in 
initialize
initializer.initialize()
  File /var/zope277/lib/python/OFS/Application.py, line 303, in 
initialize
self.install_inituser()
  File /var/zope277/lib/python/OFS/Application.py, line 484, in 
install_inituser
app.acl_users._createInitialUser()
  File /var/zope277/lib/python/AccessControl/User.py, line 1075, in 
_createInitialUser
if len(self.data) = 1:
  File /usr/lib/python2.3/UserDict.py, line 18, in __len__
def __len__(self): return len(self.data)
  File /var/zope277/lib/python/ZODB/Connection.py, line 600, in 
setstate
self._set_ghost_state(obj, p)
  File /var/zope277/lib/python/ZODB/Connection.py, line 638, in 
_set_ghost_state
unpickler.load()
ImportError: No module named mapping



-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

___
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: Zope will not start after failed 2.8.1 upgrade

2005-09-02 Thread hpinson
Well, fortunatly I had last nights backup of the Data.fs.  Restoring 
that allowed Zope to be reverted to 2.7.7 and restart.

So here is my question.

Normally I have been able to upgrade Zope, and if the upgrade had 
problems, revert to a prior version by simple redirecting the startup 
and python to the earlier version. Zope 2.8.1 was different. The 
upgrade, at least on the surface, appeared to alter something in the 
Data.fs, which prevented reversion to 2.7.7.

I would be very interested in any insights into why this is.  Was I 
experience a Zope issue or a Python 2.3.5 issue?  The logs have not 
provided me an insight expect that the Mapping module was missing 
after the revert, which I don't think was an accurate assessment of 
the problem.


-- 
Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED]
Phone: 505 994-2135
Fax: 505 994-3603

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


[Zope] Python formatting question

2005-07-21 Thread hpinson
In a Python script, how can I break up a SQL statement over more than 
one line?  For example, to transform

#generate the sql statement
sql=DELETE FROM tblUsers WHERE user_name LIKE '%'

to:

#generate the sql statement
sql=DELETE FROM tblUsers 
   WHERE user_name LIKE '%'

...does not work. Is there a way to break lines?

Any example would be appreciated.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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 formatting question

2005-07-21 Thread hpinson
Perfect. Thanks for the great tips.  I had looked at the various 
tutorials, but had not made the connection with 

 Why don't you use Z SQL methods?
I do, but sometimes it is more convient to do SQL through python. I 
also find that ZSQL encourages SQL duplication, especially among 
multiple developers. With a python script, the SQL calls can be 
stored as a single central library

Thanks again!

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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 won't give up WebDAV Lock

2005-07-06 Thread hpinson
I have a regularly occuring WebDAV problem:

A file edited via ExternalEditor gets a WebDAV lock.  Upon closing 
(Textpad in this case) occasionally the lock is not released.

The lock is not listed in Control Panel  WebDAV Lock Manager, 
therefore cannot be released there.

Restarting Zope does not release the lock.

This is getting to be a terrible problem.  Once a lock is in place, 
the file cannot be changed, renamed, or deleted at all subsequently.

Zope is 2.7.6 Final, Fedora Core 3, Python 2.3.3

Here is the only reference that I have been able to find in the log:

2005-07-06T10:22:00 ERROR(200) SiteError http://.../PUT
Traceback (most recent call last):
  File /var/zope276/lib/python/ZPublisher/Publish.py, line 101, in 
publish
request, bind=1)
  File /var/zope276/lib/python/ZPublisher/mapply.py, line 88, in 
mapply
if debug is not None: return debug(object,args,context)
  File /var/zope276/lib/python/ZPublisher/Publish.py, line 39, in 
call_object
result=apply(object,args) # Type scr to step into published 
object.
  File 
/var/zope276/lib/python/Products/PageTemplates/ZopePageTemplate.py, 
line 239, in PUT
self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
  File /var/zope276/lib/python/webdav/Resource.py, line 106, in 
dav__simpleifhandler
raise Locked, Resource is locked.
Locked: Resource is locked.


Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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] fcForum

2005-06-30 Thread hpinson
Does anyone know the status of the fcForum product?  Is it still in 
production?  Posts on the http://fcforum.techfuel.net website seem to 
have gone unanswered for several months now.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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 External Editor Problem

2005-06-21 Thread hpinson
Hello. I am having a problem with Zope External Editor 0.8 - the 
helper app running on W2K.  This problem occurred on upgrade from the 
previous version.

When I lauch the external editor, by clicking the pencil, MS Word 
lauches (and if I save, badly mangles the HTML.

In ZopeEdit.ini my editor setting has not changed:

# Uncomment and specify an editor value to override the editor
# specified by the operating system
editor = C:\Program Files\TextPad 4\TextPad.exe

I used to be able to change this path to Dreamweaver as well, but 
when I do that, only MS Word launches.

What could account for this? Is there a solution to get Zope External 
Editor working as it did prior to the upgrade?

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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 External Editor Problem

2005-06-21 Thread hpinson
Hi Chris.  The ini  that I was editing is located at:

c:\program files\zopeexternaleditor

Which is where the previous versions had been looking.

I looked in:

C:\Documents and Settings\me

and yes there is another ZopeEdit.ini

Editing that resolves the problem

I wonder if this should be in the readme for upgraders?  I.e there 
can might be more than one .ini file.

Thanks a bunch!



Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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] WebDAV Locked Item Unlockable

2005-05-16 Thread hpinson
Hi. How do I unlock a locked WebDAV item (in this case a ZPT) edit 
with Dreamweaver MX.  The locked item does not show up on the Control 
Panel  WebDAV Lock Manager, and the lock even survives a Zope 
restart.  All attempts to edit or remove the item fail. This seems to 
be happening on a regular basis in my Zope 2.7.4 / FC3 install when 
editing content through Dreamweaver MX WebDAV.

Thanks.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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] WebDAV Locked Item Unlockable

2005-05-16 Thread hpinson
Yes, as I mentioned, the lock does not show up in the ZMI WebDAV 
lockmanager at all, yet persists. That is the problem.  How to get 
rid of a WebDAV lock that is not visible to the lockmanager, and even 
persists past a hard restart of zope.

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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: ChartDirector and Zope

2005-05-16 Thread hpinson
Hi Paul, yes I did, but not as an external python method, which is 
what I was hoping for.

What I ended up doing was defining a cgi-local folder under the 
Apache site root, which sits in front of my Zope instance.  Using 
rewriterules I can access the cgi-local directory from Zope and pass 
arguments to the python chart script and render results with no 
problems:

VirtualHost *:80
ServerName www.yoursite.org
ServerAlias yoursite.org *.yoursite.org
ServerAdmin [EMAIL PROTECTED]
CustomLog /var/log/apache/yoursite.org/combined_log %h %l %u %t 
\%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
ScriptAlias /cgi-bin/ /var/www/cgi-bin/
Alias /cgi-local/ /var/www/html/yoursite.org/cgi-local/

Directory /var/www/html/yoursite.org/cgi-local
Options +ExecCGI
AllowOverride None
Order allow,deny
Allow from all
/Directory

# Zope rewrite.
RewriteEngine On
RewriteRule /cgi-local/ - [L]
RewriteRule ^/(.*) 
http://216.147.203.60:8080/VirtualHostBase/http/www.mystandards.org:80
/http/mystandards.org/VirtualHostRoot/$1 [L,P]

/VirtualHost

The Perl version of ChartDirector would work too in this instance, 
but I am very happy with the Python library. FYI... ChartDirector is 
just outstanding for the price, and very much worth the 100 dollars 
it costs.  The variety of charts (that work) is just amazing!

I would very much have liked to get this working as a Zope external 
Python method, but had no luck at all with that, and ran out of time 
to research. No sure at all what the problem was, but I could not 
render output at all from the chart.  If you figure this out, please 
let me know.


Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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: Zope 2.75 tgz distribution

2005-05-04 Thread hpinson
Hi Tres.  I duplicated your actions on FC3. Just redownloaded to FC3,
gunzipped and tar -xvf'd and built with no problems at all.  

The exact same file, unbundled using WinZip 8 or TurboZip 5.1 on W2K 
Server or XP Pro seems to give a very different result, which seems 
to be what Paul is seeing.  I have attached a zip of the results for 
analysis. A lot is missing when unbundled in this way-- not sure why. 
I've never seen problems opening a gz/tar file with either of these  
software before.  

cygwin could gunzip the file, but not untar it.

The answer seems to be use native gunzip and tar to open this.

Paul-- can I assume that you tried to unbundle on Windows-- if not 
what OS and distribution?

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

___
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 2.75 tgz distribution

2005-05-03 Thread hpinson
Er... is something missing from the Zope 2.7.6 tgz on zope.org?

http://www.zope.org/Products/Zope/2.7.6/Zope-2.7.6-final.tgz

Can someone else confirm that there might be a wee problem?

Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

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