[Zope3-Users] Adding indexes to a Catalog tool subclass

2005-09-27 Thread Tom Dossis
I can add a tool which is a simple subclass of Catalog. However if I try to add some index(es) in the constructor it fails with a NotYet error (see below). Is there a simple way to achieve this? from zope.app.catalog.interfaces import ICatalog from zope.app.catalog.catalog import Catalog from

[Zope3-Users] Problems with a catalog

2005-09-27 Thread Tom Dossis
1. How do I add a catalog to a site ? 2. Catalog error 1/- I get thus far.. From the /++etc++site/@@SiteManagement form I can successfully add a Catalog object. However, when I try to add an index, it fails ... File "... /zope/app/c

Re: [Zope3-Users] Re: formlib.form.Action.render()

2005-09-27 Thread Christian Lueck
Ruslan Spivak wrote: >> The action.render() call causes a component lookup error: >> >> >> Module formlibexample.browser, line 89, in renderActions >> result.append(action.render()) >> Module zope.formlib.namedtemplate, line 61, in __get__ >> return component.getAdapter(instance, INamed

[Zope3-Users] Re: formlib.form.Action.render()

2005-09-27 Thread Ruslan Spivak
> Hi there! > > I have a problem with formlib, form.Fields are rendered correctly :) but > I got stuck with Actions > Well, I followed the lines of formlib/form.txt > but adapted the examples for use with ZPT by overridding the template > method: > template = ViewPageTemplateFile('mytemplate.pt')

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 17:14 schrieb Julien Anguenot: > Florian Lindner wrote: > > Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: > >>Florian Lindner wrote: > >>>Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: > Hello, > I've a wierd error. > > >>

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Duncan McGreggor
On Sep 27, 2005, at 12:09 PM, Jean-Marc Orliaguet wrote: http://svn.nuxeo.org/trac/pub/file/z3lab/cpsskins/branches/jmo- perspectives/browser/caching.py On Sep 27, 2005, at 12:13 PM, Benji York wrote: Chapter 35 of Stephan's book. I couldn't find "traverse" in the index of Philipp's book,

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Jean-Marc Orliaguet
Duncan McGreggor wrote: > > On Sep 27, 2005, at 11:54 AM, Benji York wrote: > >> Duncan McGreggor wrote: >> >>> My problem is that I haven't figured out how to point to this image, >>> as it is part of the content object itself. Ideally, I would like to >>> be able to refer to it in a ZPT via a UR

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Benji York
Duncan McGreggor wrote: Man, that sounds perfect... But! *sheepish grin* I've never done that before... is there someplace you could point me (and future readers of the list archives) where I could read about doing that (chapter of a book?) Chapter 35 of Stephan's book. I couldn't find "tr

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Duncan McGreggor
On Sep 27, 2005, at 11:54 AM, Benji York wrote: Duncan McGreggor wrote: My problem is that I haven't figured out how to point to this image, as it is part of the content object itself. Ideally, I would like to be able to refer to it in a ZPT via a URL. Something on the order of /> Any ideas

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Benji York
Duncan McGreggor wrote: My problem is that I haven't figured out how to point to this image, as it is part of the content object itself. Ideally, I would like to be able to refer to it in a ZPT via a URL. Something on the order of Any ideas or code to which I could be pointed? You could ma

Re: [Zope3-Users] images in a content object

2005-09-27 Thread Duncan McGreggor
On Jun 3, 2005, at 3:28 PM, Stephan Richter wrote: On Saturday 14 May 2005 14:21, [EMAIL PROTECTED] wrote: A direction to a working example would be very much appreciated. Playing with Z3 is nice, but it is much harder than Z2 when it comes to getting where I want. But, I'm not giving up!

[Zope3-Users] User Password Reset functionality.

2005-09-27 Thread Alec Munro
Hi List, I'm trying to implement functionality to allow users to reset their passwords if they have forgotten them. My general plan: Users enters email address, clicks "forgot my password". I generate a hash, possibly of their old password, and store it. I send out an email with a link including t

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Lindner wrote: > Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: > >>Florian Lindner wrote: >> >>>Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: >>> Hello, I've a wierd error. I've a configure.zcm

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Dienstag, 27. September 2005 15:34 schrieb Julien Anguenot: > Florian Lindner wrote: > > Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: > >>Hello, > >>I've a wierd error. > >> > >>I've a configure.zcml with: > >> > >> >>schema="CS.Link.interfaces.ILink" > >>nam

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Julien Anguenot
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Florian Lindner wrote: > Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: > >>Hello, >>I've a wierd error. >> >>I've a configure.zcml with: >> >>>schema="CS.Link.interfaces.ILink" >>name="AddCSLink.html" >>cont

Re: [Zope3-Users] addview name not form

2005-09-27 Thread Florian Lindner
Am Samstag, 17. September 2005 15:10 schrieb Florian Lindner: > Hello, > I've a wierd error. > > I've a configure.zcml with: > > schema="CS.Link.interfaces.ILink" > name="AddCSLink.html" > content_factory="CS.Link.link.Link" > permission="CS.Add" > layer