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

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

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 an

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 o

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 ): vself._p_chan

RE: [Zope3-Users] Lists dont accept default values

2006-02-15 Thread Shaun Cutts
Frank, I'm not sure how widgets manage to get default values; I know that zope.schema itself doesn't set them. There is further problem with the design for "default" -- see discussion of "default_factory" on zope3-dev: basically, even if the widget were to get this default, it would be *the* list

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

2006-02-16 Thread Shaun Cutts
Is this possible? Is it a good idea? Thanks very much, - Shaun Cutts PS... perhaps I could declare the "containedInterface" itself to be content? I'm going to try fiddling around with that, but I'm sending this message anyway, because even if that works, it seems too strang

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

2006-02-16 Thread Shaun Cutts
ields of the schema objects 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. - S

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: PS -- Jim -- I sent in my contributor form almost two weeks ago? Have you received it yet? I'd be happy to put this in myself, if I could. - Shaun

[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 doesn’t?   My redirection works for add but not edit, and this is the reason. Is this a feature or a bug? If a

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 Cut

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 w

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 n

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 co

RE: [Zope3-Users] zodb objects backup

2006-02-26 Thread Shaun Cutts
rdware for our production system, so I couldn't yet say how high the bar is. - Shaun > -Original Message- > From: Gary Poster [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 25, 2006 3:39 PM > To: Shaun Cutts > Cc: Alen Stanisic; zope3-users@zope.org > Subject:

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 > Gre

RE: [Zope3-Users] zodb objects backup

2006-02-27 Thread Shaun Cutts
Gary, Thanks again for your patient answers to all my questions. I'm trying to think of reasons why ZODB would not work in advance (as ZODB master/postgres slave), as this is a fundamental decision which would take much too much time to undo, and scalability testing is also time consuming. So fa

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 wit

[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

[Zope3-Users] forbiddenAttribute on frozenset?!

2006-03-05 Thread Shaun Cutts
I got the following error:   ForbiddenAttribute: ('__rsub__', frozenset([20]))   I hope I don’t have to declare permissions built in classes?!?   - Shaun ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/li