Re: [Zope] Changing links base address

2007-04-13 Thread Peppe Top

 Does this include the following?

 style type=text/css!-- @import
 url(http://www.site.net/.../ploneStyles.css); --/style

 (this is in the HEAD section)

Yes, that is included. If this is Plone, you really do not have to
worry about this at all, the above comment is generated too.


Thanks, I cleared all my confusion! ...for now ;-)

I was able to change the address using virtual host and rewrite (apache)
plus VHM, like you suggested. Thanks again for the help.

-- Peppe
___
Zope maillist  -  [EMAIL PROTECTED]
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] Changing links base address

2007-04-12 Thread Peppe Top

Hi,

thanks to your help I've successfully searched and
edited the content of the site (the guy who manged it
is unavailable at the moment). Now when I look at
the html I see there are a lot of absolute links like:

base ... www.site.net
script ... www.site.net
link ... www.site.net...css
href ... www.site.net

Because I have to change domain, I was
looking to replace those links, with

www.newsite.org

What's the best way to do that?

Would it be a good idea using relative links?

I understand that my apache-zope configuration
utilizes VirtualHostMonster to translate addresses
so I guess absolute links could be there for good
reason, right?

This is apache+python2.3.5+zope2.8.7+plone2.1.2

Thanks for your time
-- Peppe
___
Zope maillist  -  [EMAIL PROTECTED]
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] Z Search Interface returns numbers

2007-04-11 Thread Peppe Top

 When I search something in the SearchForm (via the test tab)
 I just get numbers. I mean the ReportForm correctly reports the
 objects containing the searched string, but lists handles (I guess).

You missed a step: you must use the Metadata tab of the ZCatalog to
define which fields of the indexed objects should be returned with the
results from the search. After you do that, you'll have to update the
catalog (Advanced tab) and then regenerate your search interface.

For instance, to return the ids of the objects, add id as a metadata.
If you'd like to show the URL of each item, there is no need to set
metadata for that, since the records returned form the catalog have a
method called getUrl which gives you that. So you can use
record/getUrl, where record is the variable name used in the
tal:repeat statement which invokes the catalog search results.


Thanks a lot, it works!

I ended up using getURL metadata, because it's simplier for me.

Again thanks for your support.
-- 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 )


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 )


[Zope] Z Search Interface returns numbers

2007-04-10 Thread Peppe Top

I've diligently followed the tutorial about searching in the Zope book:

http://www.zope.org/Documentation/Books/ZopeBook/2_6Edition/SearchingZCatalog.stx

You basically:
- create a ZCatalog object
- create a Lexicon and an Index
- finding objects and cataloging them
- create a web interface (with Z Search Interface) to search the ZCatalog.

When I search something in the SearchForm (via the test tab)
I just get numbers. I mean the ReportForm correctly reports the
objects containing the searched string, but lists handles (I guess).

Is this normal?

What can I do in order to get something like:

/Zoo/Serpents
/Zoo/Reptiles

(the above are imaginary DTML documents matching
the search criteria, and their path to ZODB root)

instead of:

4567489
4567480

???

Thanks a lot
-- Peppe

(Plone 2.1.2, Zope 2.8.7, Python 2.3.5, Red Hat Linux)
___
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 )