Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Users

How to use ZCatalog to create a sitemap

 

 

Zope users RSS feed   Index | Next | Previous | View Threaded


roopesh.praj at gmail

Jan 15, 2009, 4:08 AM

Post #1 of 4 (1143 views)
Permalink
How to use ZCatalog to create a sitemap

Hi All,

I am trying to use ZCatalog to create a sitemap. For that I created a
ZCatalog object. In "Find Objects" tab, I selected objects of type Page
Template and DTML Document, I selected the permission as "Access Transient
Objects".

What options should I select for creating a sitemap. Am I going in the
correct way? Please advice.

I use Zope 2.8 (there is no Plone)

Thanks,
Roopesh


lists at zopyx

Jan 15, 2009, 4:32 AM

Post #2 of 4 (1078 views)
Permalink
Re: How to use ZCatalog to create a sitemap [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 15.01.2009 13:08 Uhr, Rupesh P Raj wrote:
> Hi All,
>
> I am trying to use ZCatalog to create a sitemap. For that I created a
> ZCatalog object. In "Find Objects" tab, I selected objects of type Page
> Template and DTML Document, I selected the permission as "Access
> Transient Objects".
>
> What options should I select for creating a sitemap. Am I going in the
> correct way? Please advice.

The ExtendedPathIndex implementation of Plone (usable outside Plone!)
provides related options. Check its README.txt.

- -aj
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAklvLNgACgkQCJIWIbr9KYwC6wCgirmvO6hJPWpQjZSuZoVD16B/
NZ0AnAl9P2g+6Fj9q+jcpbkmPs81kExI
=vCZZ
-----END PGP SIGNATURE-----
Attachments: lists.vcf (0.31 KB)


lukesh at seznam

Jan 15, 2009, 4:33 AM

Post #3 of 4 (1068 views)
Permalink
Re: How to use ZCatalog to create a sitemap [In reply to]

I use recursive DTML method for cca 500 folders in about 8 levels. Rendering
tooks under 1 second, with relativelly complex rendering (javascript menu,
tables, background images and styles by URL...). I use one hour RAM cache
for this method.

To even even more folders, it is better to use external method, which is
much faster and you dont need to use cache (only browser's cache - use HTTP
cache object).

Both ways I use, but external method sometime need to recompile after server
restart (click to "save changes" button).

I think, that using Zcatalog for this issue is not the right way.


----- Original Message -----
From: Rupesh P Raj

I am trying to use ZCatalog to create a sitemap. For that I created a
ZCatalog object. In "Find Objects" tab, I selected objects of type Page
Template and DTML Document, I selected the permission as "Access Transient
Objects".

What options should I select for creating a sitemap. Am I going in the
correct way? Please advice.

_______________________________________________
Zope maillist - Zope [at] zope
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 )


tseaver at palladion

Jan 15, 2009, 7:04 AM

Post #4 of 4 (1069 views)
Permalink
Re: How to use ZCatalog to create a sitemap [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Rupesh P Raj wrote:

> I am trying to use ZCatalog to create a sitemap. For that I created a
> ZCatalog object. In "Find Objects" tab, I selected objects of type Page
> Template and DTML Document, I selected the permission as "Access Transient
> Objects".
>
> What options should I select for creating a sitemap. Am I going in the
> correct way? Please advice.
>
> I use Zope 2.8 (there is no Plone)

The "Find Objects" tab searches the catalog's parent and its descendents
for objects of the given type(s). I would leave the permission
unselected to do the search.

Once indexed, you can query the objects in the catalog by calling its
'search' or 'searchResults' methods. E.g., in a PythonScript:

catalog = context.my_catalog
for result in catalog.search():
print catalog.getPath()
return printed


Tres.
- --
===================================================================
Tres Seaver +1 540-429-0999 tseaver [at] palladion
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJb1B0+gerLs4ltQ4RAk0MAJoCUO0u2VcarpyNJC1ssG4HXT/4eQCfVqt5
hH7kmNMCWcQKL1VDhgCRFJU=
=hkt/
-----END PGP SIGNATURE-----

_______________________________________________
Zope maillist - Zope [at] zope
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 users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.