repoze.bfg

25 Messages Forum Options Options
Embed this topic
Permalink
1 2
Malthe Borch-2
Re: repoze.bfg
Reply Threaded More
Print post
Permalink
In reply to this post by Malthe Borch-2


Martijn Faassen wrote:
> So basically you felt Zope 3 wasn't a good match for Vudo, in the
> sense that the normal browser:page wasn't really want you wanted
> either, right? Similar to the way you could extend Zope 3 with your
> own new ZCML directives to set up the way you'd like views to work
> (I'm not sure whether you're doing this), you could as well extend
> Grok with your own new grokkers.

Correct. And we did create a new directive to define layouts.

I actually  think ZCML is very suitable when you're configuring stuff
that hasn't to do with code. Whether it's good for configuring code is
for another discussion.

> I just didn't want Grok singled out here - I don't to leave people
> with the impression that Grok locks them into a certain approach any
> more than Zope 3-the-application-framework does; I don't believe it
> does. Of course Zope 3-the-libraries leave the options more open,
> witness this thread. The various grok libraries (martian,
> grokcore.component) should be seen as part of this wider ecosystem as
> well.

That's a good point. Certainly Grok proves to be quite flexible, but
it's still very centralized on defining a set of components and have
them automatically glued together.

I think Grokkish ideas will make much sense in Vudo *applications*. For
the framework code I'm a bit more conversative.

> I hope that some of your explorations concerning layouts could be
> plugged into Grok as a library eventually.

The layout stuff is definitely easy to reuse and I think Brandon already
has a good grasp on how it might fit in. The key idea with
``vudo.layout`` is that you can just plug in HTML and have it work.

\malthe


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
ianb
Re: [Repoze-dev] repoze.bfg
Reply Threaded More
Print post
Permalink
In reply to this post by Chris McDonough
Chris McDonough wrote:
> I had planned to create another package named repoze.lemonade which:
...
>   - Did indexing of content.

What were you thinking of for indexing?  Just catalog stuff?  More general?

There's been a tension in the opencore stuff with the catalog, mostly
that it's easy to setup and use for things, but it doesn't really work
for things outside of the ZODB.  Or, I guess theoretically you could
catalog things not in the ZODB, but it's never happened.

That said, there's a real need for cross-system indexing of different
kinds.  There's text search indexes, but other kinds of more strict
indexes also make sense.  It would be very handy to have an index that
wasn't tied to the ZODB, a database, or anything else.  (It could be
implemented using the ZODB or a database, of course.)

--
Ian Bicking : ianb@... : http://blog.ianbicking.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Chris McDonough
Re: [Repoze-dev] repoze.bfg
Reply Threaded More
Print post
Permalink
Ian Bicking wrote:
> Chris McDonough wrote:
>> I had planned to create another package named repoze.lemonade which:
> ...
>>   - Did indexing of content.
>
> What were you thinking of for indexing?  Just catalog stuff?  More general?

I was considering just using zope.index but I haven't really thought much about
it yet.

> There's been a tension in the opencore stuff with the catalog, mostly
> that it's easy to setup and use for things, but it doesn't really work
> for things outside of the ZODB.  Or, I guess theoretically you could
> catalog things not in the ZODB, but it's never happened.

IMO, mostly it's a matter of deciding what "index" and "catalog" means for
searching.  If you only need full-text search, some indexing systems are totally
inappropriate.  Likewise, if you only need "field" indexes that match just one
particular value, it's sometimes vastly simpler just to come up with your own
system based on, e.g. a relational table, than it is to try to use somebody
else's "indexer" or "catalog".

> That said, there's a real need for cross-system indexing of different
> kinds.  There's text search indexes, but other kinds of more strict
> indexes also make sense.  It would be very handy to have an index that
> wasn't tied to the ZODB, a database, or anything else.  (It could be
> implemented using the ZODB or a database, of course.)

Xapian seems like a good choice too.  It has its own persistence mechanism and
reasonable Python bindings (although from experience maybe slightly memory-leaky).

- C

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
ianb
Re: [Repoze-dev] repoze.bfg
Reply Threaded More
Print post
Permalink
Chris McDonough wrote:

>> There's been a tension in the opencore stuff with the catalog, mostly
>> that it's easy to setup and use for things, but it doesn't really work
>> for things outside of the ZODB.  Or, I guess theoretically you could
>> catalog things not in the ZODB, but it's never happened.
>
> IMO, mostly it's a matter of deciding what "index" and "catalog" means
> for searching.  If you only need full-text search, some indexing systems
> are totally inappropriate.  Likewise, if you only need "field" indexes
> that match just one particular value, it's sometimes vastly simpler just
> to come up with your own system based on, e.g. a relational table, than
> it is to try to use somebody else's "indexer" or "catalog".

They are similar in that they both need to get information about
updates, and a way to reindex.  Full text search can be a little lazier,
as being 100% up-to-date isn't such a big issue.

>> That said, there's a real need for cross-system indexing of different
>> kinds.  There's text search indexes, but other kinds of more strict
>> indexes also make sense.  It would be very handy to have an index that
>> wasn't tied to the ZODB, a database, or anything else.  (It could be
>> implemented using the ZODB or a database, of course.)
>
> Xapian seems like a good choice too.  It has its own persistence
> mechanism and reasonable Python bindings (although from experience maybe
> slightly memory-leaky).

Yes, once you get the documents into it.  Actually, it's really a
many-to-many notification system that's needed.  We have one that needs
documenting and review
(http://www.openplans.org/projects/cabochon/project-home) but while it
handles notifications and events (as do several other systems), that
doesn't cover reindexing the site.  And then you also need a set of
useful endpoints, but those can grow over time.

--
Ian Bicking : ianb@... : http://blog.ianbicking.org

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
Chris McDonough
Re: [Repoze-dev] repoze.bfg
Reply Threaded More
Print post
Permalink
Ian Bicking wrote:

> Chris McDonough wrote:
>>> There's been a tension in the opencore stuff with the catalog, mostly
>>> that it's easy to setup and use for things, but it doesn't really
>>> work for things outside of the ZODB.  Or, I guess theoretically you
>>> could catalog things not in the ZODB, but it's never happened.
>>
>> IMO, mostly it's a matter of deciding what "index" and "catalog" means
>> for searching.  If you only need full-text search, some indexing
>> systems are totally inappropriate.  Likewise, if you only need "field"
>> indexes that match just one particular value, it's sometimes vastly
>> simpler just to come up with your own system based on, e.g. a
>> relational table, than it is to try to use somebody else's "indexer"
>> or "catalog".
>
> They are similar in that they both need to get information about
> updates, and a way to reindex.  Full text search can be a little lazier,
> as being 100% up-to-date isn't such a big issue.

I'd typically handle the "info about updates" bit by sending an event (which I
suspect cabochon is all about).

>>> That said, there's a real need for cross-system indexing of different
>>> kinds.  There's text search indexes, but other kinds of more strict
>>> indexes also make sense.  It would be very handy to have an index
>>> that wasn't tied to the ZODB, a database, or anything else.  (It
>>> could be implemented using the ZODB or a database, of course.)
>>
>> Xapian seems like a good choice too.  It has its own persistence
>> mechanism and reasonable Python bindings (although from experience
>> maybe slightly memory-leaky).
>
> Yes, once you get the documents into it.  Actually, it's really a
> many-to-many notification system that's needed.  We have one that needs
> documenting and review
> (http://www.openplans.org/projects/cabochon/project-home) but while it
> handles notifications and events (as do several other systems), that
> doesn't cover reindexing the site.  And then you also need a set of
> useful endpoints, but those can grow over time.

Stuff that I'm not sure about above:

   "many-to-many notification system"

   "reindexing the site"

That said...

I guess what you're saying is that it's hard to send an event that makes it
clear what needs to be done as a result of the event being sent.

In the case where you have a content node that holds data, that node would be
attched to the event.  it's pretty clear that you need to do.. that thing
changed, and the indexing code needs to inspect it and reindex whatever indexes
you've got sitting around that are willing to index data about those types of nodes.

In the case where you need to deal with the simultaneous case that some row in
an RDB was changed, it's not quite as clear.  What does it mean and who should
do what with that event?  It's all policy at that point.  I'm not sure any
framework helps.  It's just block-and-tackle event reception and reaction, "do
the needful", isn't it?

- C


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Plone-developers mailing list
Plone-developers@...
https://lists.sourceforge.net/lists/listinfo/plone-developers
1 2