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
- 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
- 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
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
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
- 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
- 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
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"
- 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
- 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 :
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,
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,
- 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
- 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)
- 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)
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]
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
- 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:
- 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
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
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 =
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
- 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
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: 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
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
- 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
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: 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
- 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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
55 matches
Mail list logo