Hi,
I've just insalled Zope to test a web application by thirdy part ....
well .... it's very embarrassing cause I'm not able to
see it at work because of Zope ..... (yeah... I'm really newbie :( )
I found out that the problem is in Products/PythonScript permission.
To test them, in the ZMI, I created this script and then I tested it
==============================================
SCRIPT
==============================================
# Example code:
from Products.PythonScripts.standard import html_quote, urlencode
return 1
==============================================
OUTPUT DU TEST
==============================================
Zope has encountered an error while publishing this resource.
Error Type: ImportError
Error Value: import of "urlencode" from "Products.PythonScripts.standard" is
unauthorized
In Zope Bible they say there is a trick to escape this control
using "External Methods", but it should be another way
because the application I have to test doesn't use them at all ...
any useful suggestion ..........?
Thank you very
Lucas
btw:
Zope = Zope 2.5.1
Python= 2.1.3 5 2918
Lucas Branca wrote: I've just insalled Zope to test a web application by thirdy part .... well .... it's very embarrassing cause I'm not able to see it at work because of Zope ..... (yeah... I'm really newbie :( )
You're more likely to get help with Zope problems from one of the Zope
mailing lists.
# Example code: from Products.PythonScripts.standard import html_quote, urlencode return 1
Works for me -- what version of Zope and Python are you using?
Cheers,
Evan @ 4-am
> You're more likely to get help with Zope problems from one of the Zope mailing lists.
# Example code: from Products.PythonScripts.standard import html_quote, urlencode return 1
Works for me -- what version of Zope and Python are you using?
on Debian woody I installed :
Zope version = Zope 2.5.1
Python version = 2.1.3
and I'm not having "a really good time" with it .... :(
Ok..... let's look at Zope site then ........
Thx
Lucas
> I found out that the problem is in Products/PythonScript permission. To test them, in the ZMI, I created this script and then I tested it
============================================== SCRIPT ============================================== # Example code: from Products.PythonScripts.standard import html_quote, urlencode return 1
============================================== OUTPUT DU TEST ============================================== Zope has encountered an error while publishing this resource.
Error Type: ImportError Error Value: import of "urlencode" from "Products.PythonScripts.standard"
is unauthorized
OK.... if somebody else have same problem and Googling come here,
that's the way I went (and now all works)
on Debian I used package for Zope (2.5.1) and Python (2.1.3) from woody
and I received the error above
now I removed debian zope package ( :( sigh sigh ) ,
and I 'm using http://zope.org/Products/Zope/2.6.2/...linux2-x86.tgz
Finally, all works fine .....
Lucas
Lucas Branca wrote: now I removed debian zope package ( :( sigh sigh ) , and I 'm using http://zope.org/Products/Zope/2.6.2/...linux2-x86.tgz
As a fellow Debian user I feel your pain, but Zope is a prime example of
software that you're really better off installing from the source
tarball. The Zope Corp. folks have worked *very* hard to make
installing and running Zope as easy as they can, and version 2.6 is more
stable than the 2.5.1 in Debian "stable".
Cheers,
Evan @ 4-am
"Evan Simpson" <ev**@4-am.com> wrote in message
news:ma*************************************@pytho n.org... now I removed debian zope package ( :( sigh sigh ) , and I 'm using http://zope.org/Products/Zope/2.6.2/...linux2-x86.tgz
As a fellow Debian user I feel your pain, but Zope is a prime example of software that you're really better off installing from the source tarball. The Zope Corp. folks have worked *very* hard to make installing and running Zope as easy as they can, and version 2.6 is more stable than the 2.5.1 in Debian "stable".
That's good to know.
Actually, installing Zope from the tar is a quick and clean operation.
At the end, I have all in one directory and I can have a happy life with
it, too ;)
Great work!
Regards
Lucas This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: webmaster |
last post by:
Hi,
I'm desperatly trying to use Kinfxdb, but I have numerous segmentation
faults, who lead my Zope to crash. It mostly occurs when I try to work
with "date" fields (with an Informix Online...
|
by: Lukasz Indyk |
last post by:
im's sorry if it's wrong group to ask this question, but i could not
find any that seems to be better ...
i have existing web site (written in html and javascript only, no php
etc.), and i want...
|
by: Jochen Demuth |
last post by:
Hi, I am trying to install ZWiki on Zope 2.5.1 / Debian 2.4.20-bf2.4-xfs.
First I copied the contents of the ZWiki-0.32.0.tgz to the
Products-directory under SOFTWARE_HOME:
This is what it...
|
by: KK |
last post by:
Hallo.
I have Zope 2-7-0 on Linux platform and the following problem :)
I'm sending an image through form on the pythonScript. I want script to
resize image and save on the zope folder in 3...
|
by: Avery Warren |
last post by:
I am investigating converting a wiki site to plone. I am having
a lot of difficulty finding good documentation programmatically
accessing the ZODB API.
A lot of the user feedback is centered on...
| |
by: krzychu |
last post by:
Hi,
I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone
2.0.5, OS Debian 1:3.3.6-2.
After import a old Plone site from the following platform
Zope-2-7-4, Python 2.3.3, Plone...
|
by: ryankaskel |
last post by:
I don't know if this is the appropriate place to post a Zope question
but I figure many here are familiar with it. I'm confused about the
role of the ZMI when it comes to development. I want to...
|
by: Marcel Hartmann |
last post by:
Hi,
I have problems to get ZOracleDA run in Zope - I cannot found a solution
wheter in Zope Groups nor searching google and I think it's a python
problem. The connection in python - without zope...
|
by: jack139 |
last post by:
I installed zope under windows and found a problem when import addition
modules - iHotfix and itools. When place itools in python's library
path, site-packages, import works fine. When place itools...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |