Within the ExternalMethod you could check the ACTUAL_URL variable (in
REQUEST) and if the name of the external method is found you could redirect
the user to a "you're a baaad user" page.
Jonathan
- Original Message -
From: "Pedro LaWrench"
To:
Sent: Tuesday, April 28, 2009 11:04 AM
If you are using a form-processor routine (ie. some routine which examines
login id/pwd entered by user on a form), then you could send the "demo-ee" a
link, which contains the id/pwd as url parameters, and directly calls the
form processor routine.
- Original Message -
From:
To:
S
I use python script as an external method,
Do you know how to define the python libraries path.
I get an error No module named .
Here is something I use in external methods:
EXTDIR = '/apps/zope/Extensions'
import sys
if EXTDIR not in sys.path:
sys.path.append(EXTDIR)
hth
Jonathan
- Original Message -
From: "Fabian Schoeck"
To:
Sent: Wednesday, May 27, 2009 4:08 AM
Subject: [Zope] Error packing database
>
> I searched the web for help, but did not find anything really helpful.
> Is this due to some timeout of the web browser? The Data.fs is quite
> large (7 GB).
I need to support a third party web service (which is not within my control)
that wants to send xml data to my zope server (Zope 2.9.2 running on Redhat
linux).
When Zope receives a POST request with a Content-Type of text/xml it assumes
that it is an xmlrpc call (which it is not - it is just p
>- Original Message -
>From: "Andreas Jung"
>To: "Jonathan (dev101)"
>Cc:
>Sent: Friday, July 10, 2009 4:30 PM
>Subject: Re: [Zope] Problem with POST and text/xml
>
> https://bugs.launchpad.net/zope2/+bug/373663
>
> -aj
>
>
- Original Message -
From: "Michael Haubenwallner"
To:
Sent: Saturday, July 11, 2009 9:51 AM
Subject: Re: [Zope] Problem with POST and text/xml
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jonathan (dev101) wrote:
>> I need to support a third par
As a quick test I modified HTTPRequest.py to turn off the zope assumption
that all POST requests with content-type of text/xml are xmlrpc requests.
This had the effect of eliminating the xmlrpc error that zope was raising,
but a side effect is that the xml data is not available within the REQUES
"Michael Haubenwallner" wrote in message
news:4a5898f5.8040...@d2m.at...
>
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jonathan (dev101) wrote:
>> I need to support a third party web service (which is not within my
>> control)
>> that
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Jonathan (dev101) wrote:
>> Just out of curiosity I ran a test using content-type of
>> 'application/xml'
>> and zope does not raise the xmlrpc error (as it does with content-type of
>> 'text/
Problem: zope interprets POST requests with a Content-Type of "text/xml" to
be xmlrpc requests.
Work-around (requires Apache as a reverse proxy): use Apache to re-write the
Content-Type header of the incoming request before it gets to zope using the
following directives:
SetEnvIfNoCase Conten
- Original Message -
From: "Thomas Bennett"
To:
Sent: Friday, September 04, 2009 2:58 PM
Subject: [Zope] apache rules with zope
>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_U
- Original Message -
From: "Thomas Bennett"
To: "Jonathan (dev101)"
Sent: Friday, September 04, 2009 4:09 PM
Subject: Re: [Zope] apache rules with zope
> I'm trying to serve the files on the underlying directories straight
> through
> apache wit
- Original Message -
From: "Allen Schmidt Sr."
To: "Dieter Maurer"
Cc: "Zope Users"
Sent: Sunday, October 04, 2009 4:40 PM
Subject: Re: [Zope] [Zope-Annce] ZClasses resurrected
> So...we are on 2.8.10 and our biggest app on our site is a ZClass based
> news object. How close will thi
- Original Message -
From: "Bert Vanderbauwhede"
To:
Sent: Friday, October 16, 2009 8:07 AM
Subject: [Zope] Prevent a logger from writing to event.log
> Hi,
>
> Is it possible to have a logger in Zope that doesn't write to the
> event.log? All the other loggers can write to the event
- Original Message -
From: "Tres Seaver"
To:
Sent: Sunday, November 29, 2009 4:05 PM
Subject: Re: [Zope] Finding unused products
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Gaute Amundsen wrote:
>> On Sun, 2009-11-29 at 12:32 +0100, Jens Vagelpohl wrote:
>>> On Nov 29, 2009,
> after having some weird issues with Sessions and ZEO usage I've found
> out part of the problem.
> It turns out certain browsers (IE6 mostly) save the session ID cookies,
> but sometimes these disappear. This results in a new _ZopeId being
> generated and thus the new session is empty.
>
> At fir
Just a guess, but it looks like you are trying to get a transaction lock on
a mysql table, so does the mysql table you are using have a storage engine
that supports transactions (eg. InnoDB)?
Jonathan
From: zope-boun...@zope.org [mailto:zope-boun...@zope.org] On Behalf Of
iarly selbir | ski
Something like:
wont work because you will turn B006 into B7
If you want to retain the leading zeros you will need to pad them.
As Andreas said, this would be better done using a python script (which you
can call from dtml you dont have to use zpt).
Jonathan
From: z
19 matches
Mail list logo