[Zope3-Users] forbiddenAttribute on frozenset?!

2006-03-05 Thread Shaun Cutts
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

[Zope3-Users] doctest w/ formlib and ViewPageTemplateFile

2006-03-04 Thread Shaun Cutts
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

RE: [Zope3-Users] zodb objects backup

2006-02-28 Thread Shaun Cutts
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

RE: [Zope3-Users] zodb objects backup

2006-02-26 Thread Shaun Cutts
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

RE: [Zope3-Users] zodb objects backup

2006-02-25 Thread Shaun Cutts
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

[Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Shaun Cutts
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

RE: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Shaun Cutts
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

RE: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Shaun Cutts
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

RE: [Zope3-Users] nextURL: add vs edit

2006-02-17 Thread Shaun Cutts
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

RE: [Zope3-Users] question: can I make a view trusted?

2006-02-16 Thread Shaun Cutts
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

RE: [Zope3-Users] question: can I make a view trusted: A BUG

2006-02-16 Thread 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

RE: [Zope3-Users] What attributes are made persistent

2006-02-15 Thread Shaun Cutts
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 ):

RE: [Zope3-Users] newbie design questions for UI to external data

2006-02-14 Thread Shaun Cutts
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

RE: [Zope3-Users] newbie design questions for UI to external data

2006-02-13 Thread Shaun Cutts
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

[Zope3-Users] newbie design questions for UI to external data

2006-02-10 Thread Shaun Cutts
point me to it. - Shaun Cutts ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users