Johan Carlsson wrote:
Martijn Faassen wrote:
[snip]
Does you code for adding catalogs and adding fields get called
in the same request?
Yes, it's done when an application root is installed.
Regards,
Martijn
___
Zope3-users mailing list
Zope3-users
Martijn Faassen wrote:
Johan Carlsson wrote:
Anyone had any success with ZCatalog in Zope 3?
Sure. I'm not sure what the problem is but I see you get a lot of
replies. We (Infrae) certainly got it working without having to patch
anything.
Um, the setup code we use it something like:
de
Johan Carlsson wrote:
Anyone had any success with ZCatalog in Zope 3?
Sure. I'm not sure what the problem is but I see you get a lot of
replies. We (Infrae) certainly got it working without having to patch
anything.
Um, the setup code we use it something like:
def _registerUtility(context
Dominik Huber wrote:
Johan Carlsson wrote:
Right after that I do this:
catalog = Catalog()
for index_name, index_attribute, idx_if, attr_call, index_type
in indexes:
idx = index_type(index_attribute, idx_if, attr_call)
catalog[index_name] = idx
Johan Carlsson wrote:
Right after that I do this:
catalog = Catalog()
for index_name, index_attribute, idx_if, attr_call, index_type
in indexes:
idx = index_type(index_attribute, idx_if, attr_call)
catalog[index_name] = idx
tools['catalo
Johan Carlsson wrote:
Dominik Huber wrote:
Johan Carlsson wrote:
I've tried this, it doesn't remove the NotYet problem though!??
Our framework relies on that concept and it is still working ;)
Did you assert to add the catalog to the sitemanagement folder before
adding its indexes?
I f
Johan Carlsson wrote:
Hi again,
The ComponentLookupError have re appeared!
> Error type: zope.component.interfaces.ComponentLookupError
> Error object: (, '')
What happend was that I had a IntId utitlity in the root site (renamed
to '') that answered the request when I added the Indexes in
Hi again,
The ComponentLookupError have re appeared!
> Error type: zope.component.interfaces.ComponentLookupError
> Error object: (, '')
What happend was that I had a IntId utitlity in the root site (renamed
to '') that answered the request when I added the Indexes in a sub site.
So the ques
Dominik Huber wrote:
handler pseudo code:
def addCatalogAndIndex(obj, event):
sm = zapi.getNextSiteManager(obj)
catalog = Catalog()
addLocalUtility(sm, 'XY', ICatalog, catalog)
catalog[name] = Index(name, IAnyInterface)
Regards,
Dominik
From the apidoc for IWriteContainer.__s
Dominik Huber wrote:
Johan Carlsson wrote:
I've tried this, it doesn't remove the NotYet problem though!??
Our framework relies on that concept and it is still working ;)
Did you assert to add the catalog to the sitemanagement folder before
adding its indexes?
I found the error, in the
Johan Carlsson wrote:
Dominik Huber wrote:
Hi Johan
Your problem is that the catalog is not locatable itself during the
addition of its indexes (-> state within the create and add method),
therefore the location of the indexes cannot be located and the
NotYetError is raised. You can move yo
Dominik Huber wrote:
Hi Johan
Your problem is that the catalog is not locatable itself during the
addition of its indexes (-> state within the create and add method),
therefore the location of the indexes cannot be located and the
NotYetError is raised. You can move your code to an
ObjectAdde
Dominik Huber wrote:
Hi Johan
Your problem is that the catalog is not locatable itself during the
addition of its indexes (-> state within the create and add method),
therefore the location of the indexes cannot be located and the
NotYetError is raised. You can move your code to an
ObjectAdde
Hi Johan
Your problem is that the catalog is not locatable itself during the
addition of its indexes (-> state within the create and add method),
therefore the location of the indexes cannot be located and the
NotYetError is raised. You can move your code to an
ObjectAddedEvent-subscriber for
Gary Poster wrote:
Hm. A very quick look at the patch concerns me a bit. Am I right
that, if you apply the patch, then requests that are currently raising
a NotYet for you will instead silently fail, not cataloging what you
requested? That seems undesirable to me. I'd prefer the excep
On Nov 17, 2005, at 9:05 AM, Johan Carlsson wrote:
Johan Carlsson wrote:
Ivo van der Wijk wrote:
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
The code you gave me shows the same showed the same problem as
Jürgen
pointied out, the IntId needs to have '' as id.
I remember hav
Johan Carlsson wrote:
Ivo van der Wijk wrote:
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
The code you gave me shows the same showed the same problem as Jürgen
pointied out, the IntId needs to have '' as id.
I remember having some real issues with IntId / Catalog, I doubt if
t
Ivo van der Wijk wrote:
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
The code you gave me shows the same showed the same problem as Jürgen
pointied out, the IntId needs to have '' as id.
I remember having some real issues with IntId / Catalog, I doubt if
they ever really got fixed
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
>
> The code you gave me shows the same showed the same problem as Jürgen
> pointied out, the IntId needs to have '' as id.
I remember having some real issues with IntId / Catalog, I doubt if
they ever really got fixed. Check the patch in INS
And thanks both of you for really fast replies :-)
Johan
--
Johan Carlsson Tel: + 46 8 31 24 94
Colliberty Mob: + 46 70 558 25 24
Torsgatan 72Email: [EMAIL PROTECTED]
SE-113 37 STOCKHOLM
___
Zope3-users mailing list
Zo
Ivo van der Wijk wrote:
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
Anyone had any success with ZCatalog in Zope 3?
I'm trying to add indexes to the catalog
but I get an ComponentLookupError:
Error type: zope.component.interfaces.ComponentLookupError
Error object: (, '')
I'm not s
Ivo van der Wijk wrote:
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
Anyone had any success with ZCatalog in Zope 3?
I'm trying to add indexes to the catalog
but I get an ComponentLookupError:
Error type: zope.component.interfaces.ComponentLookupError
Error object: (, '')
I'm not s
On 11/17/05, Johan Carlsson <[EMAIL PROTECTED]> wrote:
>
> Anyone had any success with ZCatalog in Zope 3?
>
> I'm trying to add indexes to the catalog
> but I get an ComponentLookupError:
>
> Error type: zope.component.interfaces.ComponentLookupError
> Error object: (, '')
>
> I'm not sure how to
Johan Carlsson wrote:
Anyone had any success with ZCatalog in Zope 3?
I'm trying to add indexes to the catalog
but I get an ComponentLookupError:
Error type: zope.component.interfaces.ComponentLookupError
Error object: (, '')
I'm not sure how to setup the IntIds utility, what I've done so far
Anyone had any success with ZCatalog in Zope 3?
I'm trying to add indexes to the catalog
but I get an ComponentLookupError:
Error type: zope.component.interfaces.ComponentLookupError
Error object: (, '')
I'm not sure how to setup the IntIds utility, what I've done so far
is just add one and gi
25 matches
Mail list logo