Re: [Zope3-Users] Problem running examples from Zope3 book Weiterhausen

2006-03-15 Thread ksmith99
Hi Tom, Personally, I'd switch to an earlier version of Zope3 to match the version in the book. You also might try including widget.py and configure.zcml here to aid in debugging. Kevin -- View this message in context: http://www.nabble.com/Problem-running-examples-from-Zope3-book-Weiterhaus

[Zope3-Users] Problem with SetIndex (from zc.catalog)

2006-03-15 Thread Thierry FLORAC
Hi, I'm actually using a SetIndex (as defined in "zc.catalog.catalogindex" package). Indexing my documents works perfectly but I still have a little problem : when trying to get to the "Advanced" page of my catalog, a TraversalError exception is raised : 2006-03-15T23:39:27 ERROR SiteError

[Zope3-Users] Accessing sub objects view class?

2006-03-15 Thread Mats Nordgren
I’m trying to figure out how to access a sub objects view class.   1. 2. Title 3.   Description 4.    5. 6.    7. 8. 9.    10.     11.   12.   I’m trying to format the description of subobject ‘item’ on line 8 with its renderDescription functio

Re: [Zope3-Users] Re: Prevent Duplicate Persistency

2006-03-15 Thread Dax
Would it not make sense to do this when you define the object as persistent, like in mysql "create unique index ...". And then check for errors in the formlib level. On 3/15/06, jürgen Kartnaller <[EMAIL PROTECTED]> wrote: > Dax wrote: > > Thanks a lot, Mats. This is a way to do it, but if I wer

[Zope3-Users] Re: Prevent Duplicate Persistency

2006-03-15 Thread jürgen Kartnaller
Dax wrote: > Thanks a lot, Mats. This is a way to do it, but if I were to add a > "name" schema to IMark and checkName on the actual "name", then I > would not be able to do this for "url" as well, right? So my question > is how would I do this for url without having url as the name for the > Mar

Re: [Zope3-Users] Prevent Duplicate Persistency

2006-03-15 Thread Dax
Thanks a lot, Mats. This is a way to do it, but if I were to add a "name" schema to IMark and checkName on the actual "name", then I would not be able to do this for "url" as well, right? So my question is how would I do this for url without having url as the name for the Mark object? On 3/15/06

Re: [Zope3-Users] Re: IField in Object(Field): RequiredMissing

2006-03-15 Thread Christian Lück
Daniel Nouri wrote: >> >> There is a nice and helpfull example in ++apidoc++: Book --> Widgets and >> Forms --> Advanced Widgets >> Please also refer to srichter's book, chapter 8.3 (p. 54). > > I don't have Stephan's book around right now. Isn't it online on the zope3 homepage? > But I'm us

RE: [Zope3-Users] Prevent Duplicate Persistency

2006-03-15 Thread Mats Nordgren
This could be done by using the URL as the name for the Mark object. from zope.app.container.contained import NameChooser Class MarkNameChooser(NameChooser): def chooseName(self, name, object): name = object.url self.checkName(name, object)

Re: [Zope3-Users] Re: zc.table - how does sorting work?

2006-03-15 Thread Martijn Faassen
Laurence Rowe wrote: Once I added the package includes, adding for c in columns: directlyProvides(c, zc.table.interfaces.ISortableColumn) did the trick. I'd love to have a look at your alternate sorting implementation, though will need to get checking privileges before merging. (I

[Zope3-Users] Re: IField in Object(Field): RequiredMissing

2006-03-15 Thread Daniel Nouri
On Mon, 2006-03-13 at 17:13 +, Christian Lück wrote: > Daniel Nouri wrote: > > Not sure I'm using the Object field right, but this seems odd: > > > > >>> from zope.schema import Field, Object > > >>> from zope.schema.interfaces import IField > > >>> field = Object(IFiel