[Zope] dtml-if errors in sql method

2000-07-18 Thread Tim Hicks
dtml-if "which_table == 'Plays'" SELECT * FROM dtml-var which_table WHERE "Play title" like dtml-sqlvar "'%'+_.string.strip(form_string)+'%'" type=string; 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

Re: [Zope] dtml-if 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] dtml-if errors in sql method Hi, Are you searching for the exact word "Plays", or is there a varia

Re: [Zope] dtml-if 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] dtml-if errors in sql method Tim Hicks writes: dtml-if "which_table == 'Plays'" SELECT

[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

[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

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: I am trying to work my way up thr

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 Hicks wrote: I am trying to

[Zope] dtml-with and PARENTS[0]

2000-08-31 Thread Tim Hicks
OK, I have a standard_html_header for my site that uses the following dtml-with "PARENTS[0]" titledtml-var head_title/title META NAME="keywords" CONTENT="dtml-var meta_keywords" META NAME="description" CONTENT="dtml-var meta_description" META NAME="author" CONTENT="dtml-var meta_author"

Re: [Zope] dtml-with 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] dtml-with and PARENTS[0] on Thursday, August 31, 2000 Tim Hicks wrote : TH OK, I have a

[Zope] Re: Re[2]: [Zope] dtml-with 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] dtml-with and PARENTS[0] on Thursday, August 31, 2000 Tim Hicks wrote :

[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,

[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,

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 standard_html_header Tim Hicks

[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 calling standard_html_header)

[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 calling standard_html_header)

[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-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_header) Hi Tim Name

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 Thu, 7 Sep 2000, Tim Hicks wrote:

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 Hicks wrote: dtml-unles

[Zope] Simple dtml-unless problem

2000-09-13 Thread Tim Hicks
I have the following code in my standard_html_header dtml-unless "id == 'index_html'" img src="dtml-var path/images/transparent.gif" width=400 height=12 alt="" H1 align="center"dtml-var title/h1 /dtml-unless The problem is, it displays the img and h1 stuff even when the page that the

[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') spl =

[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

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 snip def list_messages(self): class msg: def

[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] 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 multi-part message in MIME format

[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

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 for the life of me figure out or find anywhere

[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] 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 have created a custom edit

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: from a builtin edit form as my

[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

[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

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 issues. As

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/Guards.py so

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... I made the TypeError a little more revealing on line 96

[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

Re: [Zope-dev] Zope 2.6 planning - call for contributors!

2002-03-05 Thread Tim Hicks
See below This isn't exciting by any means unless you're one of the people who package Zope up for distribution, or maybe you're one of the people who manage lots of little Zopes on one system; but I'd like to revive the grand unified Zope installation and control proposal that has been

Re: [Zope-dev] bug in mapply.py?

2002-11-05 Thread Tim Hicks
Thanks for the reply Steve, Steve Alexander said: I must admit to not understanding why this should only break over xmlrpc and not directly from Zope. The problem appears to be that my method is defined something like: def method(self, *args, **kw) mapply doesn't put things into **kw

[Zope-dev] Bug in ExternalMethods?

2002-12-19 Thread Tim Hicks
I think I've found a bug in ExternalMethod, but I don't know if it's already been fixed or not. Basically, the call signature of ExternalMethods seems to get mixed up sometimes. I'm running Zope 2.5.1 on Linux. Here's a small demonstration of the bug: --test.py-- def test(self, a_string,

[Zope-dev] connecting server code to the ZODB

2004-10-28 Thread Tim Hicks
Hi, I'm trying to figure out how to adjust Nikolay Kim's smtpserver code http://cvs.sourceforge.net/viewcvs.py/collective/smtpserver/ so that objects within the ZODB can affect the way that messages are received (i.e. veto messages based on certain criteria in the first instance). My problem is

Re: [Zope-dev] connecting server code to the ZODB

2004-11-08 Thread Tim Hicks
Paul Winkler said: What I really want to be able to do from the server code is something like:: root = magic_that_gets_me_zodb_root() That magic is basically (from memory): import Zope Zope.startup() root = Zope.app() But note that starting up a zope is slow, so you don't

Re: [Zope-dev] connecting server code to the ZODB

2004-11-10 Thread Tim Hicks
Paul Winkler said: Ok, so I could simply drop the Zope.startup() line and things would be fine (and quick), right? I haven't tried it, but I think doing Zope.app() will try to acquire a lock on the database and it is already locked by the running Zope (or ZEO). So I don't think you can do

Re: [Zope-dev] connecting server code to the ZODB

2004-11-14 Thread Tim Hicks
Replying to myself in case anyone is interested in the answer to my problems... Tim Hicks said: Nope, I don't have a reference to a persistent object. I'm looking at the code in smtpserver.SMTPServer and trying to figure out what I need to adjust. As far as I can tell, the only point

[Zope-dev] 2.7 and 2.8 roadmap

2004-12-17 Thread Tim Hicks
Hi, just wondering what the plans are for zope 2.7 and 2.8. Specifically: 1) When is the recent release of 2.7.4b2 expected to be followed up with a 'final' (or indeed another beta) release? 2) I have seen mutterings about a 2.7.5 release, but I'm not sure why this should be necessary as I

Re: [Zope-dev] 2.7 and 2.8 roadmap

2004-12-17 Thread Tim Hicks
Andreas Jung said: 1) When is the recent release of 2.7.4b2 expected to be followed up with a 'final' (or indeed another beta) release? 2.7.4 final is scheduled for early January. Ok, thanks. 2) I have seen mutterings about a 2.7.5 release, but I'm not sure why this should be

Re: [Zope-dev] Re: CookieCrumbler and User-Logging

2005-02-08 Thread Tim Hicks
Tres Seaver said: I am attaching the patch which Casey Duncan worked up to log the cookie-based user somewhat more cleanly. Hi Tres, I'm just wondering what the status of this patch is. I mean, is it now part of any (forthcoming) release of cookiecrumbler or CMF? Does it have any downsides?

Re: [Zope-dev] Re: CookieCrumbler and User-Logging

2005-02-08 Thread Tim Hicks
Tres Seaver said: | Does it have any downsides? I can't recall whether the patch includes a knob to turn off the logging behavior. If not, I would want to add one before checking it in. It does have that knob. | Would you install it on a production server? We have done so for some

[Zope-dev] 2.8.0b1 issues with plone 2.0.5

2005-04-24 Thread Tim Hicks
Apologies if this is already known about... I just installed 2.8.0b1 (using python 2.3.5), fired it up, then tried to add a 'plone site' (2.0.5). The plone site actually did get added, but here's what I got as well: 2005-04-24 12:57:32 ERROR Zope.ZCatalog Recataloging object at

Re: [Zope-dev] 2.8.0b1 issues with plone 2.0.5

2005-04-24 Thread Tim Hicks
Tim Hicks said: File /home/tim/zope/2.8.0b1/lib/python/ZPublisher/Publish.py, line 40, in call_object result=apply(object,args) # Type scr to step into published object. File /home/tim/zope/2.7.4b2/Products/CMFCore/PortalContent.py, line 116, in __call__ return view() Eek

Re: [Zope-dev] Make objectValues return a generator?

2005-08-04 Thread Tim Hicks
Petri Savolainen wrote: Am I right in assuming that calls to objectValues etc. still return a real sequence of objects loaded in memory from ZODB? How about making object* calls return a generator instead? Has this been discussed somewhere already? I tried a bit of googling list-searching but

Re: [Zope-dev] Re: Wishlist Item

2006-03-26 Thread Tim Hicks
Tino Wildenhain wrote: Maybe its just me but I personally dont like direct filesystem access in the core - if someone wants it, (s)he can pick from the 3rd party products - maybe there can be a list of recommended (active maintained) products? Direct access products should also carry some

Re: [Zope-dev] local namespace optimizations?

2006-07-05 Thread Tim Hicks
Florent Guillaume wrote: Is anyone opposed to me removing the stupid: _getattr = getattr _none = None marker = _marker local namespace optimizations that are found in unrestrictedTraverse? I find these things rather confusing when looking at zope core code, and always

[Zope-dev] Resolution of issue #2333 before next maintenance release(s)?

2007-06-25 Thread Tim Hicks
Hi, Apparently a maintenance release for 2.10 is imminent. Would it be possible for someone to review the report for issue #2333 @: http://www.zope.org/Collectors/Zope/2333. The fix provided there comes with a test. If it's deemed suitable, could someone with commit privileges apply the

Re: [Zope-dev] Re: Resolution of issue #2333 before next maintenance release(s)?

2007-06-25 Thread Tim Hicks
Tres Seaver wrote: Tres Seaver wrote: Tim Hicks wrote: Hi, Apparently a maintenance release for 2.10 is imminent. Would it be possible for someone to review the report for issue #2333 @: http://www.zope.org/Collectors/Zope/2333. The fix provided there comes with a test. If it's deemed

[Zope-dev] Product version number redundancy with version.txt and setup.py

2008-07-07 Thread Tim Hicks
Hi, Am I right in thinking that there is a duplication of information in having an eggified product's version number stored in setup.py and version.txt? Both seem to be necessary - the first for use with pypi and the second so that Zope knows what version of a product it has. The former