Re: [Zope] catalog.getpath -->search results as links

2000-07-12 Thread sean

Here is the traceback after changing the DTML VAR syntax and 
changing the catalog.getpath to full_site.getpath (my catalog ID)

Error:
Error Type: KeyError
   Error Value: PrincipiaSearchSource

Traceback (innermost last):
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 214, in publish_module
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 179, in publish
  File /home/kelley/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 
202, in zpublisher_exception_hook
(Object: ElementWithAttributes)
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 165, in publish
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, 
line 160, in mapply
   (Object: report)
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 102, in call_object
   (Object: report)
  File /home/kelley/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, 
line 150, in __call__
   (Object: report)
  File /home/kelley/Zope-2.1.6-
src/lib/python/DocumentTemplate/DT_String.py, line 502, in 
__call__
   (Object: report)
  File /home/kelley/Zope-2.1.6-
src/lib/python/DocumentTemplate/DT_In.py, line 611, in renderwb
  (Object: full_site)
   KeyError: (see above)


On 13 Jul 2000, at 0:10, Chris Withers wrote:

> [EMAIL PROTECTED] wrote:
> > my catalog ID is full_site, but I already tried this and got another
> > error.  
> 
> What was this error? (please include the full traceback..)
> 
> > When I leave out the link syntax changes, I get the search
> > results (w/o them as active links)...so the catalog term must be
> > right.
> 
> Not necessarly...
> 
> cheers,
> 
> Chris
> 
Thanks for having a look--
Sean


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




Re: [Zope] catalog.getpath -->search results as links

2000-07-12 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> my catalog ID is full_site, but I already tried this and got another
> error.  

What was this error? (please include the full traceback..)

> When I leave out the link syntax changes, I get the search
> results (w/o them as active links)...so the catalog term must be
> right.

Not necessarly...

cheers,

Chris

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




Re: [Zope] catalog.getpath -->search results as links

2000-07-12 Thread sean

On 12 Jul 2000, at 23:35, Chris Withers wrote:

> [EMAIL PROTECTED] wrote:
> > Replace it with this:
> > 
> >  ">
> >   
> >  
> > 
> 
> What is the id of your catalog object?
> 
> replace 'catalog' with that id. I'm guessing you should have 'Catalog'
> instead ;-)
> 
my catalog ID is full_site, but I already tried this and got another 
error.  When I leave out the link syntax changes, I get the search 
results (w/o them as active links)...so the catalog term must be 
right.

> HTH,
> 
> Chris
> 
> PS: Change to using the  syntax instead of , it has
> been deprecated, I think...
> 
I already tried this too.  

Any other ideas?

Thanks for the response also!

--Sean

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




Re: [Zope] catalog.getpath -->search results as links

2000-07-12 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> Replace it with this:
> 
>  ">
>   
>  
> 

What is the id of your catalog object?

replace 'catalog' with that id. I'm guessing you should have 'Catalog'
instead ;-)

HTH,

Chris

PS: Change to using the  syntax instead of , it has
been deprecated, I think...

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




[Zope] catalog.getpath -->search results as links

2000-07-12 Thread sean

I am trying to follow along with the zcatalog tutorial, but when I get to the 
instructions where you can make your zope object results links to the 
actual object the following instructions are used:
In the source of report, find the following line::


Replace it with this:

 ">
  
 

In making this change however, my search results gets broken with the 
following error:
Error Type: NameError
Error Value: catalog
Any ideas why?  Has the syntax changed?
My exact replacement is:
">  



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