Re: [Zope] Simple ZODB Search and Edit

2007-04-11 Thread Sascha Welter
(Tue, Apr 10, 2007 at 11:01:39AM +0200) Peppe Top wrote/schrieb/egrapse:
 I'm new to Zope and I'm reading through a few tutorials
 and the Zope book. I need to do a text string search on
 a ZODB and I need to know which objects contain the string.
 
 Example: I have a site running up, and I need to know
 where my mail is mentioned, so I can edit each object
 and update the mail. (I think using ZMI)

Go to the Root Folder in the ZMI, click on the Find tab. Enter
whatever data you have and click on Find.

 From the documentation I think that ZCatalog might do
 the trick, but I'm not sure it's the easier solution.
 
 Am I on the right path?

I don't think so, but it largely depends on what you are really trying
to do.

 Can you get me started?

To get started please read:
http://wiki.zope.org/zope2/ZopeStarter

If you want to build your own application with Zope, you should build
your own products that will hold the presentation and business logic.
The instances of those products will be stored in the ZODB and those
will contain the content of your application. As someone else already
mentioned you can make your content searchable with very little work, by
using a ZCatalog and a minimal amount of extra code in your products.

 I just need a fixed string search, returning the name
 (maybe the path too) of the object inside the ZODB, so
 I can later edit.
 
 Is ZMI the right tool to do simple editing?

No. The ZMI is an administrative interface. It's not meant to build end
user interfaces upon it.

 Also is ZCatalog already included in Zope, or do I need
 to install it?

Sure it's in there. You can see it as ZCatalog from the ZMI Add menu
in the upper right corner.

Another thought: *If* you are trying to build a content management
system, maybe you should consider starting out with one of the existing
ones that run on Zope? Configuring / extending that to your needs? They
usually come with full text search out of the box - and they already
know how to handle all those little pitfalls you will encounter.

Regards,

Sascha

___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Simple ZODB Search and Edit

2007-04-11 Thread Peppe Top

 Example: I have a site running up, and I need to know
 where my mail is mentioned, so I can edit each object
 and update the mail. (I think using ZMI)

Go to the Root Folder in the ZMI, click on the Find tab. Enter
whatever data you have and click on Find.


Yeah, that works, but I need to search the
SearchableText property, and the Find tool
doesn't report all the results I need.

However, you all have helped me a lot, and now
I have a correctly working ZCatalog, searching
the whole site, and returning the path of the
objects :-)


To get started please read:
http://wiki.zope.org/zope2/ZopeStarter

If you want to build your own application with Zope, you should build
your own products that will hold the presentation and business logic.
The instances of those products will be stored in the ZODB and those
will contain the content of your application. As someone else already
mentioned you can make your content searchable with very little work, by
using a ZCatalog and a minimal amount of extra code in your products.


I didn't know about the wiki, very useful.


 Is ZMI the right tool to do simple editing?

No. The ZMI is an administrative interface. It's not meant to build end
user interfaces upon it.


OK, see below.


Another thought: *If* you are trying to build a content management
system, maybe you should consider starting out with one of the existing
ones that run on Zope? Configuring / extending that to your needs? They
usually come with full text search out of the box - and they already
know how to handle all those little pitfalls you will encounter.


You are dead right, I'm digging into Plone too, right now.

Thanks Sascha, and all the list, you helped me big time.

-- Peppe
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Simple ZODB Search and Edit

2007-04-10 Thread Peppe Top

Hi all,

I'm new to Zope and I'm reading through a few tutorials
and the Zope book. I need to do a text string search on
a ZODB and I need to know which objects contain the string.

Example: I have a site running up, and I need to know
where my mail is mentioned, so I can edit each object
and update the mail. (I think using ZMI)


From the documentation I think that ZCatalog might do

the trick, but I'm not sure it's the easier solution.

Am I on the right path?

Can you get me started?

I just need a fixed string search, returning the name
(maybe the path too) of the object inside the ZODB, so
I can later edit.

Is ZMI the right tool to do simple editing?

Also is ZCatalog already included in Zope, or do I need
to install it?

Thanks a lot for your time
-- Peppe
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )