Re: [Zope] how to prevent URL access to an external method?

2009-04-28 Thread Jonathan (dev101)
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

Re: [Zope] auto login user

2009-04-30 Thread Jonathan (dev101)
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

Re: [Zope] define library path for python external method

2009-05-11 Thread Jonathan (dev101)
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

Re: [Zope] Error packing database

2009-05-27 Thread Jonathan (dev101)
- 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).

[Zope] Problem with POST and text/xml

2009-07-10 Thread Jonathan (dev101)
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

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Jonathan (dev101)
>- 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 > >

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Jonathan (dev101)
- 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

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Jonathan (dev101)
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

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Jonathan (dev101)
"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

Re: [Zope] Problem with POST and text/xml

2009-07-11 Thread Jonathan (dev101)
> -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/

Re: [Zope] Problem with POST and text/xml (work-around)

2009-07-13 Thread Jonathan (dev101)
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

Re: [Zope] apache rules with zope

2009-09-04 Thread Jonathan (dev101)
- 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

Re: [Zope] apache rules with zope

2009-09-04 Thread Jonathan (dev101)
- 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

Re: [Zope] [Zope-Annce] ZClasses resurrected

2009-10-05 Thread Jonathan (dev101)
- 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

Re: [Zope] Prevent a logger from writing to event.log

2009-10-16 Thread Jonathan (dev101)
- 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

Re: [Zope] Finding unused products

2009-11-30 Thread Jonathan (dev101)
- 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,

Re: [Zope] generate unique user id, without cookies

2010-01-04 Thread Jonathan (dev101)
> 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

Re: [Zope] unable to acquire commit lock

2010-02-24 Thread Jonathan (dev101)
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

Re: [Zope] string formatting

2010-08-13 Thread Jonathan (dev101)
Something like: won’t 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 don’t have to use zpt). Jonathan From: z