I got the following error:
ForbiddenAttribute: ('__rsub__', frozenset([20]))
I hope I dont have to declare permissions built in
classes?!?
- Shaun
___
Zope3-users mailing list
Zope3-users@zope.org
Hello list,
I was trying to run doctests on a formlib.EditForm-derived object, which uses ViewPageTemplateFile. The template then tries to access the
object; and for testing I have override with a test template to exercise the
object w/out too much html.
To set up the doctest, I use
It would be very nice if there were a faq or other doc addressing
all of
these scalability-related questions systematically for someone like
me
who understands what a relational database is doing for them (in
return
for squashing all their objects). It seems I'm not the only one with
From: Tom Dossis [mailto:[EMAIL PROTECTED]
Shaun Cutts wrote:
But with replication, this issue is taken care of. (Too bad
replication
isn't part of the core functionality)
Maybe soon..
http://hathawaymix.org/Software/PGStorage
Great!
Another potential issue on the scalability
On Sat, 2006-02-25 at 08:59 -0600, Andreas Jung wrote:
--On 26. Februar 2006 01:52:29 +1100 Alen Stanisic
[EMAIL PROTECTED] wrote:
For some reason it doesn't feel completely safe just relying on
Data.fs.
That means what? Why shouln't it be safe...please come up with some
Is there a reason why zope.app.form.browser.add.AddView
defines:
def nextURL(self):
return self.context.nextURL()
but zope.app.form.browser.editview.EditView doesnt?
My redirection works for add but not edit, and this is the
reason. Is this a feature or a bug? If a bug, all
this break anything else? Is there some reason why the editview
doesn't do redirect?
I have gotten offlist feedback that I'm not the only one interested in
this
Thanks,
- Shaun
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Shaun Cutts
Sent: Friday
Ok --
Thanks Gary and Michael.
I've defined changed in my mixin, and it works:
def changed( self ):
self.request.response.redirect(self.nextURL())
And I can still use the same mixin to do redirect for both edit and add
forms, so I can't grumble about that.
I'm curious how this
On Behalf Of Garanin Michael
What is mixin? Is it content-object or view?
Well, I think in the wider python context mixin is something that you
can use as a base class to extend the functionality of your class,
assuming you provide some standard interface. (e.g. UserDict.DictMixin.)
I'm not
that are defined in _bootstrapfields, but I get an error when I
access Date, which lives in _field!
I defer to those who know more, but whether I'm supposed to be allowed
to access the title or not, the current behavior seems like a bug, as it
is inconsistent.
- Shaun Cutts
Ok everyone: it is a zope bug.
The following should be included in zope.app.schema.fields.zcml:
content class=zope.schema.Date
factory
id=zope.schema.Date
title=Date Field
description=Date Field /
require like_class=zope.schema.Orderable /
require
Well, one could have a base class along the lines of
class PersistSetItemOnAttributes:
def __setattr__( self, attr, val ):
oldSI = val.__class__.__dict__.get( '__setitem__', None )
if oldSI is not None:
def newSI( vself, vattr, vval ):
Gary,
Thanks for the reply.
On Feb 13, 2006, at 10:33 PM, Shaun Cutts wrote:
Um...
I guess I must have asked too many questions at once :)
:-) and this is still a bit much for me.
I've implemented
a first pass of a container for external data and got it working on
some
Um...
I guess I must have asked too many questions at once :) I've implemented
a first pass of a container for external data and got it working on some
of my collections.
I've included the (first pass of the) base DBContainer and DBContained
objects for criticism, and would be very grateful if
point me to it.
- Shaun Cutts
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users
15 matches
Mail list logo