Re: [Zope] blacklisting referers and/or specific hosts

2005-07-04 Thread Tim Hicks
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

[Zope] blacklisting referers and/or specific hosts

2005-07-03 Thread Tim Hicks
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

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
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... >

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
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

Re: [Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
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

[Zope] Security on email.Message.Message

2005-04-12 Thread Tim Hicks
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').

[Zope] Script to do various 'manage_' operations

2001-01-27 Thread Tim Hicks
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

Re: [Zope] reindex when a zclass is edited

2001-01-13 Thread Tim Hicks
- 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: > &

Re: [Zope] document_src not doing what I thought it did

2001-01-13 Thread Tim Hicks
- 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

[Zope] document_src not doing what I thought it did

2001-01-11 Thread Tim Hicks
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

Re: [Zope] reindex when a zclass is edited

2001-01-11 Thread Tim Hicks
- 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

[Zope] reindex when a zclass is edited

2001-01-10 Thread Tim Hicks
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

Re: [Zope] inserting half a dtml tag into a zclass

2001-01-10 Thread Tim Hicks
- 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

[Zope] inserting half a dtml tag into a zclass

2000-12-27 Thread Tim Hicks
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

Re: [Zope] dtml-in over the output from my method

2000-11-06 Thread Tim Hicks
- 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

[Zope] testing a product, then it disappears after restart

2000-11-06 Thread Tim Hicks
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

[Zope] dtml-in over the output from my method

2000-11-06 Thread Tim Hicks
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')  

[Zope] Re: CASE in point -- [Zope] Simple dtml-unless problem

2000-09-13 Thread Tim Hicks
- 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 > >

[Zope] Simple dtml-unless problem

2000-09-13 Thread Tim Hicks
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

Re: [Zope] Simple dtml-unless problem

2000-09-13 Thread Tim Hicks
- 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

Re: [Zope] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks
- 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

[Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-07 Thread Tim Hicks
- 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

[Zope] Zclass not reindexing (it is CatalogAware)

2000-09-07 Thread Tim Hicks
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

[Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-06 Thread Tim Hicks
- 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

[Zope] Re: ZClass Bug (was: Re: [Zope] How to access id and title of document calling standard_html_header)

2000-09-05 Thread Tim Hicks
- 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

Re: [Zope] How to access id and title of document calling standard_html_header

2000-09-04 Thread Tim Hicks
- 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

Re: [Zope] How to access id and title of document calling standard_html_header

2000-09-02 Thread Tim Hicks
- 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

[Zope] How to access id and title of document calling standard_html_header

2000-09-02 Thread Tim Hicks
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

[Zope] How to access id and title of document calling standard_html_header

2000-09-02 Thread Tim Hicks
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

[Zope] Re: Re[2]: [Zope] and PARENTS[0]

2000-08-31 Thread Tim Hicks
- 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

Re: [Zope] and PARENTS[0]

2000-08-31 Thread 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

[Zope] and PARENTS[0]

2000-08-31 Thread Tim Hicks
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

Re: [Zope] Nested dtml???

2000-08-29 Thread Tim Hicks
- 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

Re: [Zope] Nested dtml???

2000-08-29 Thread Tim Hicks
- 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: > >

[Zope] Nested dtml???

2000-08-28 Thread Tim Hicks
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

[Zope] How to get URL of folder (name unknown) with a certain property?

2000-08-27 Thread Tim Hicks
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

Re: [Zope] errors in sql method

2000-07-18 Thread Tim Hicks
- 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 * > >

Re: [Zope] errors in sql method

2000-07-18 Thread Tim Hicks
- 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",

[Zope] errors in sql method

2000-07-18 Thread Tim Hicks
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