David Pratt wrote:
> Hi Tim. I think what Jens has to say is the best solution. I have also
> made my own thing with zope as well since I don't always have control
> of the firewall.
Yes, this is the problem I have. I'm hosted on zettai, so am a little
limited in the options available to me (I b
Hi,
I have a zope site up and running which has recently had a *lots* of hits
from a client (or clients) that show referers pointing at various
gambling, meds, and loan sites. Requests only come in for the main page,
not for the associated images, css, etc that should go with it.
The consequence
Tim Hicks said:
> Andreas Jung said:
>
>>> Module RestrictedPython.Guards, line 96, in handler
>>> TypeError: object does not support item or slice assignment
>>>
>>> Does anyone have any idea what the problem is?
>
> Digging further...
>
Andreas Jung said:
>> Module RestrictedPython.Guards, line 96, in handler
>> TypeError: object does not support item or slice assignment
>>
>> Does anyone have any idea what the problem is?
Digging further...
I made the TypeError a little more revealing on line 96 of
RestrictedPython/Guard
Andreas Jung said:
>> Module RestrictedPython.Guards, line 96, in handler
>> TypeError: object does not support item or slice assignment
>>
>> Does anyone have any idea what the problem is?
>
> Move your code into an external method which is less painful than dealing
> with module security i
Hi,
I'm trying to import and use the email.Message.Message class in a zope
'Script (Python)'.
I have the following security assertions in my product code::
from AccessControl import allow_module, allow_class
from AccessControl import ModuleSecurityInfo
ModuleSecurityInfo('email.Message').
I have been trying to get hold of a script that can automatically convert
various dtml methods to custom zclass instances. I found a script on the
zope mailing list (see bottom)
I put my file (see below) in the Extensions directory and added an external
method from within zope. This all appeare
- Original Message -
From: Aleksander Salwa <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 8:34 AM
Subject: Re: [Zope] reindex when a zclass is edited
>
> On Thu, 11 Jan 2001, Tim Hicks wrote:
>
&
- Original Message -
From: Dieter Maurer <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>
Sent: Friday, January 12, 2001 10:28 PM
Subject: Re: [Zope] document_src not doing what I thought it did
> Tim Hicks writes:
> > I have a dtml-documentish zclass and
I have a dtml-documentish zclass and have created a custom edit method for
it so that I can do an automatic reindex when each instance is edited. I
created this custom form by simply copying the source html that is generated
for the standard edit form, and then replacing the static parts of what
- Original Message -
From: Ivan Cornell <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, January 10, 2001 7:53 PM
Subject: Re: [Zope] reindex when a zclass is edited
> Tim Hicks wrote:
>
> > I can't f
I know this has been asked numerous times before (once by me!), and I'm
sorry to cover the same ground again, but I've spent all afternoon searching
through the list archives to no avail. I have a zclass that is catalogaware
(selected first and all that). When I add an instance, it gets cataloged
- Original Message -
From: Dieter Maurer <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, December 29, 2000 9:38 AM
Subject: Re: [Zope] inserting half a dtml tag into a zclass
> Tim Hicks writes:
> > This is a
OK, I'm sorry for the wierd title, but I can't
really describe what I want to say very easily in one line.
Basically, my problem is this;
- I have a zclass called DEHS with catalog_aware
and dtml_document as base classes.
- DEHS instances have a selectable property of
public/private.
- I
- Original Message -
From: Max M <[EMAIL PROTECTED]>
To: Tim Hicks <[EMAIL PROTECTED]>; Zope@Zope. Org <[EMAIL PROTECTED]>
Sent: Monday, November 06, 2000 9:48 PM
Subject: RE: [Zope] dtml-in over the output from my method
>
> def list_messages(s
I am trying to create a zope product and it
basically works in python, so I thought I would start trying to 'zopify' it. I
created a directory in the zope Products directory called zIMAP and placed my
code in there, along with a __init__.py file to initialise the product. Here is
what it loo
I am trying to create a zope product in python but
have got stuck with using the dtml-in tag to iterate over a method (or is it a
function? I get a little mixed up) of my class. Here is the method,
def
list_messages(self):
lr = open(self.user_dir+'/msg_list',
'r')
- Original Message -
From: "albert boulanger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 1:45 PM
Subject: CASE in point -- [Zope] Simple dtml-unless problem
>
>
I have the following code in my standard_html_header
The problem is, it displays the and stuff even when the
page that the standard_html_header is being dropped into is
index_html. I'm pretty sure I'm missing something really silly here,
but if anyone could point it out, I'd really apprec
- Original Message -
From: "Oleg Broytmann" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 13, 2000 12:56 PM
Subject: Re: [Zope] Simple dtml-unless problem
> On Wed, 13 Sep 2000, Tim
- Original Message -
From: "R. David Murray" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, September 07, 2000 10:12 PM
Subject: Re: [Zope] Zclass not reindexing (it is CatalogAware)
> On
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Sent: Thursday, September 07, 2000 7:00 PM
Subject: Re: ZClass Bug (was: Re: [Zope] How to access id and title of
document calling standard_html_hea
I have created a Zclass, the the _ZClass_for_CatalogAware base class
as the first added base class (second in the list of base classes).
My zcatalog (named Catalog) is set to 'Find objects of type:
"myClass_metatype"' and therefore, when I add a new instance of my
class, it is automatically added
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 9:44 PM
Subject: ZClass Bug (was: Re: [Zope] How to access id and title of
document cal
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, September 05, 2000 9:44 PM
Subject: ZClass Bug (was: Re: [Zope] How to access id and title of
document calli
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, September 04, 2000 7:48 PM
Subject: Re: [Zope] How to access id and title of document calling
standard_html_head
- Original Message -
From: "Kapil Thangavelu" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, September 02, 2000 3:59 PM
Subject: Re: [Zope] How to access id and title of document calling
st
For those of you who saw my posts from a couple of days ago (Dieter
Maurer and Geir Bfkholt), this is the question that I think I should
have been asking in the first place.
I have a standard_html_header that is inserted into Zclasses. These
Zclasses have properties including meta_author, meta_d
For those of you who saw my posts from a couple of days ago (Dieter
Maurer and Geir Bfkholt), this is the question that I think I should
have been asking in the first place.
I have a standard_html_header that is inserted into Zclasses. These
Zclasses have properties including meta_author, meta_d
- Original Message -
From: "Geir Bfkholt" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 2:56 PM
Subject: Re[2]: [Zope] and PARENTS[0]
> on Thursday, August 31, 2000 Tim Hicks
- Original Message -
From: "Geir Bfkholt" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 2:30 PM
Subject: Re: [Zope] and PARENTS[0]
> on Thursday, August 31, 2000 Tim Hicks wrote
OK, I have a standard_html_header for my site that uses the following
In this way, the properties of the ZClass (into which the
standard_html_header is placed) are used for the for the meta
author/copyright/keywords/description/javascript. All of those that I
just mentioned
- Original Message -
From: "Curtis Maloney" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>; "zope" <[EMAIL PROTECTED]>
Sent: Wednesday, August 30, 2000 12:24 AM
Subject: Re: [Zope] Nested dtml???
> On Tue, 29 Aug 2000, Tim Hic
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: "zope" <[EMAIL PROTECTED]>
Sent: Tuesday, August 29, 2000 11:10 PM
Subject: Re: [Zope] Nested dtml???
> Tim Hicks writes:
> >
I am trying to work my way up through folders, checking whether each
folder has a property named 'site_root_folder'. Logically (in *my*
head anyway), what I have written below is what I want to do, but I'm
not sure that I'm really writing this the write way. I vaguely
remember reading that I can
I am trying to figure out how to get hold of the URL (using
absolute_url I presume) of a folder with a property called
"sehs_root_folder" set to "yes". I do not know what the name of this
folder is, so I am finding it difficult to use the hasattr function,
and I don't have any way of knowing wher
- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Sent: Tuesday, July 18, 2000 9:51 PM
Subject: Re: [Zope] errors in sql method
> Tim Hicks writes:
> >
> >
> > SELECT *
> >
- Original Message -
From: "Gregory Haley" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Sent: Tuesday, July 18, 2000 7:35 PM
Subject: Re: [Zope] errors in sql method
> Hi,
>
> Are you searching for the exact word "Plays",
SELECT *
FROM
WHERE "Play title" like ;
Can anybody explain to me what is going on with my zsql method? Zope
gives me the following error when I try and change my method to what
is above.
Invalid attribute name, "which_table", for tag , on line 16 of
I've scoured the mailing list, but I'm
39 matches
Mail list logo