Itai Tavor writes:
> I got a ZClass 'Test', with a DTML Method 'view' containing id>, and a DTML Document 'view2' with the same line. instance/view
> works. instance/view2 returns (ZDebug output):
>
> Error type: Unauthorized
> Error value: The object /test/view2, which is contained in
>
Hi!
I just encountered another problem with ZPatterns (well not exactly with ZPatterns
but the way I use it.. ;-)
I have some Specialist with a normal rack which stores data persistently in the ZODB.
Everytime I am creating a new object I want to create an object of another specialist
on the fly
I have the following form action pythonscript:
req = context.REQUEST
context.propertysheets.info.manage_changeProperties(longdesc=req.form['longdesc'])
context.commitSubtransaction()
req.RESPONSE.redirect(req['URL1']+'/edit_longdescForm')
context is a DataSkin instance. When I submit the form,
Hi,
I'm trying to create a tag to evaluate the expression passed to it, adding in the
expression eval namespace a variable that contains the result of dtml processing of
the tag's block. For instance, the following construct:
some text
would invoke the expression "foo(a=1)" with a varia
Itai Tavor wrote:
> Hi,
>
> I got a ZClass 'Test', with a DTML Method 'view' containing id>, and a DTML Document 'view2' with the same line. instance/view
> works. instance/view2 returns (ZDebug output):
>From SimpleItem.py:
"""Direct use of the 'id' attribute is deprecated - use getId()"""
Steve Alexander wrote:
>
> Michael R. Bernstein wrote:
> >
> > File /home/webmaven/Products/ZPatterns/DataSkins.py, line 208, in
> > __set_attr__ (Object: ElementWithAttributes) KeyError: (see above)
>
> What version of ZPatterns are you using?
0.4.3b2 on Zope 2.2.0
> I certainly don't have
Hi - let me preface this message by saying that I _thought_ I knew how
acquisition worked, but now I'm starting to doubt.
A simple enough scenario:
Python 1.5.2 (#1, Sep 30 2000, 18:08:36) [GCC 2.95.3 19991030
(prerelease)] on linux-i386
Copyright 1991-1995 Stichting Mathematisch Centrum, Amster
[EMAIL PROTECTED] wrote:
>
> I've now added the ability to set the message to be sent back to the FTP
> client on FTPResponse. The patch is attached. We'll be using it and I hope
> that it, or something similar, makes it into the 2.3.1.
Please, please, please put this in the collector :-)
I'd a
Michael R. Bernstein wrote:
>
> File /home/webmaven/Products/ZPatterns/DataSkins.py, line 208, in
> __set_attr__ (Object: ElementWithAttributes) KeyError: (see above)
What version of ZPatterns are you using?
I certainly don't have the __set_attr__ method covering line 208 in my
version.
T
Jonothan Farr wrote:
> > I've now added the ability to set the message to be sent back to the FTP
> > client on FTPResponse. The patch is attached. We'll be using it and I hope
> > that it, or something similar, makes it into the 2.3.1.
>
> Try submitting it to the collector. It's likely to get l
Andy McKay wrote:
>> | The ideal solution would be to use an object that lives in the ZODB,
>> | I wonder if there is a way to keep the 'object history' empty? That
>> | is, keeping the counter 'packed' while retaining 'object history'
>> | information on all other objects.
>
>
> That would wo
Ok, to recap:
1) Add 'import Globals' to the start of the myClass.py file
2) Change the def __init__ in the 'class myClass' definition
to:
def __init__(self, id, title):
myClass.inheritedAttribute('__init__')(self, id)
# rest of your __init__ method
3) add the following line a
Hopefully this is enough context for this question.
When I subclass Acquisition.Implicit or .Explicit, I find myself
losing the foo["item"] and foo[slice:slice] syntax. __getslice__ and
__getitem__ aren't affected.
When I don't subclass Acquisition, the [] syntax works fine.
I can get them ba
13 matches
Mail list logo