[Zope] passing a parameter - namespace and dtml-with

2005-08-29 Thread Sean Kelley
I am trying to pass the title of a page to a dtml method which is in another folder named links. If I pass the actual title like below everything works. However, when I try to pass the value of the current title to category_results using various other methods it does not.

What is the syntax so that I can pass the current value of dtml-var title to the method? Would the dtml-with block change the namespace it pulls the title variable from to the context of the method category_results in the links folder?


dtml-with linksdtml-commentThis line works/dtml-commentdtml-var category_results(_.None, _, title1='Hannoverian Stallions Lauries Crusador ')/dtml-with

___
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] passing a parameter - namespace and dtml-with

2005-08-29 Thread Sean Kelley
I tried using orig_title in the format dtml-var orig_titlein the called dtml-method (category_results) and I get a zope error which I don't understand:
Error Type: TypeErrorError Value: sequence index must be integer
When I call it in the orignal page which I want the title for it works fine. 

John Eikenberry jae-zope at kavi.com Mon Aug 29 16:05:37 EDT 2005 


Previous message: [Zope] passing a parameter - namespace and dtml-with 
Next message: [Zope] zope 2.8 command line tracebacks 
Messages sorted by: [ date ] [ thread ] 
[ subject ] [ author ] 

Sean Kelley wrote:

 I am trying to pass the title of a page to a dtml method which is in another 
 folder named links. If I pass the actual title like below everything works. 
 However, when I try to pass the value of the current title to 
 category_results using various other methods it does not.
 What is the syntax so that I can pass the current value of dtml-var title 
 to the method? Would the dtml-with block change the namespace it pulls the 
 title variable from to the context of the method category_results in the 
 links folder?

Yes.

Here's a quick hack that will work.

dtml-call REQUEST.set('orig_title',this().title)
dtml-with links
dtml-var catagory_results(_.None,REQUEST.get('orig_title'))
/dtml-with

  dtml-with links
 dtml-commentThis line works/dtml-comment
 dtml-var category_results(_.None, _, title1='Hannoverian Stallions Lauries 
 Crusador ')
 /dtml-with

___
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-dev] SQL compare to form value -HELP-

2002-03-09 Thread Sean Kelley

I am trying to test whether or not 3 SQL fields are equal to a form
field.  I am doing this within an SQL method.  (I am trying to learn
zope and Mysql at the sam time) How does one do this?  Here is where I
am going with this so far:
I have these listed as arguments: Breeds Breed1 Breed2 Breed3

SELECT * from Ranch
WHERE Breeds = dtml-sqltest name=Breed1 type=string OR Breeds =
dtml-sqltest name=Breed2 type=string
or Breeds = dtml-sqltest name=Breed3 type=string

Breeds is the name of the form input and I want to test and see if it
equals any one of the 3 fields Breed1, Breed2, or Breed3 and return all
of the row if there is a match.

--
Sean



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



[Zope] How does one rename document ids?

2000-09-04 Thread Sean Kelley

Hi,
I have a number of dtml documents without the form "name_html".  I would like to 
rename everything in a particular folder
to name_html from name.  Is there a way to do this?

Thanks



___
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] Yihaw Properties creates error

2000-08-19 Thread Sean Kelley

When I click "Properties" on a new Yihaw folder, I get the following Zope error.
What does it mean?


Error Type: NameError
   Error Value: Catalog



   Troubleshooting Suggestions

This resource may be trying to reference a nonexistent object or
variable Catalog.
The URL may be incorrect.
The parameters passed to this resource may be incorrect.
A resource that this resource relies on may be encountering an
error.

   For more detailed information about the error, please refer to the HTML
source for this page.

   If the error persists please contact the site maintainer. Thank you for
your patience.

   © Copyright 1995-2000

  ALL RIGHTS RESERVED

   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: CatalogAware)
  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: manage_folderproperties)
  File /home/kelley/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, line 102, in
call_object
  (Object: manage_folderproperties)
   File /home/kelley/Zope-2.1.6-src/lib/python/OFS/DTMLMethod.py, line 150, in
__call__
  (Object: manage_folderproperties)
  File /home/kelley/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, line
502, in __call__
  (Object: manage_folderproperties)
  File /home/kelley/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_In.py, line 633,
in renderwob
(Object: Catalog(meta_type='Yihaw Pointer'))
  File /home/kelley/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line
335, in eval
(Object: Catalog(meta_type='Yihaw Pointer'))
   (Info: Catalog)
File string, line 0, in ?
 NameError: (see above)




___
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] Yihaw- adding HTML files - newbie questions?

2000-08-19 Thread Sean Kelley

I want to add HTML files to the Yihaw directory but when I use "add file" it
creates its own header thereby cancelling out my header in the file.  If I use the
add text note or other methods for adding objects you can paste HTML into a form
but cannot select from the OS (upload).  Am I missing something here or is it a
little difficult to add these types of items?  I may want to edit an HTML file but
there is no mechanism for doing this with add file.

All I am trying to provide an easy way to display/manage hierarchical html files in
folders.  I may want to add a squishdot object on some folders and would like to
incorporate banner ads, etc.  Am I better of with straight Zope?  Is there another
product that will do this?  If I use straight Zope, is there an easy way to show a
folders dtml documents via DTML?

--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 )




[Zope] zcatalog and squishdot newbie question

2000-07-23 Thread Sean Kelley

I have created a catalog and added my squishdot site to it.  However,
when I go to look at the catalog contents there are no squishdot
articles listed (the suishdot site object is listed though).  When I run
a search for a keyword that I know is in the squishdot object, I get no
matches (but do when I search for other non-squishdot keywords).  I
thought this may have something to do with running squishdot 3.1 so I
upgraded to 4.1, reindexed and still nothing.  What could be the
problem?  I heard somone say something about your catalog cataloging
itself (mine does)- should it do this?  I tried removing it but nothing.

--
Sean Kelley





___
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] simple instructions for site search

2000-07-11 Thread Sean Kelley

I am a new Zope user- Can anyone tell me if there is documented
anywhere, simple instructions for creating a full site search by
keyword?  I have a simple site with squishdot and zope chat.
Thanks

--
Sean Kelley
www.kelleydesign.com  *  www.horse101.com  *  www.dressage.to



___
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] mail host question

2000-06-12 Thread Sean Kelley

I am having some problem configuring zope mail to work properly,
particularly with PTK v 0.7.1.
When I logon as a new member, its says "successful", but I get no mail to
confirm my logon (I did get it to work once but don't know how).  I have the
smtp host set to an IP address for an smtp mail server.  I tried a couple of
others by name such as "mail.domain.com" but got an error relating to
needed/missing "domain"
The permissions on the various zope security screens has all possible users
set to "use mail host"


Sean Kelley
Prompt Software, Inc.
www.promptsoftware.com
[EMAIL PROTECTED]
voice: (415) 382-8840
fax:(415) 382-8868


___
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 )