[Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney

Administrator Administrator" <Administrator@fd.org
Sun, 06 Aug 2000 15:15:55 -0400


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. Controlling object type when uploading via FTP? (Paul D. Godley)
  2. Re: compile ZPoPyDA product problems (continued) (Stephen Nosal)
  3. Solution Suggestions? (Craig)
  4. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney (Administrator)
  5. Hey buddy can you spare some Zen? (Steve Drees)
  6. RE: Hey buddy can you spare some Zen? (Steve Drees)
  7. Re: compile ZPoPyDA product problems (continued) (Stephen Nosal)
  8. updating 2 catalogs (Richard Bartels)
  9. Re: Redirecting from Python? (Christian Scholz)
  10. Re: Redirecting from Python? (Christopher J. Kucera)
  11. Less than helpful traceback (Spicklemire, Jerry)
  12. Re: compile ZPoPyDA product problems (continued) (Stephen Nosal)

--__--__--

Message: 1
Reply-To: <pdg@tcdi.com>
From: "Paul D. Godley" <pdg@tcdi.com>
To: <zope@zope.org>
Subject: [Zope] Controlling object type when uploading via FTP?
Date: Fri, 4 Aug 2000 15:26:26 -0400
charset="iso-8859-1"

Is there a way to control the type of an object when you upload via FTP. It
seems to always create DTML documents. What if I want to create a DTML
method or DTML template?

If not that, is there an easy way to change the type of a group of objects?

Thanks.

-P

--
Technology Concepts & Design, Inc.
(336) 773-0323



--__--__--

Message: 2
Date: 4 Aug 2000 12:38:14 -0700
To: zope@zope.org
From: Stephen Nosal <stephennosal@e3mil.com>
Subject: Re: [Zope] compile ZPoPyDA product problems (continued)

On Fri, 04 August 2000, jpenny@universal-fasteners.com wrote:

> 
> On Fri, Aug 04, 2000 at 11:42:38AM -0700, Stephen Nosal wrote:
> OK, to start another line entirely--
>  does psql work?

Sure does - no problems at all. Even have a database up and running with users...

- Steve


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

--__--__--

Message: 3
Date: Fri, 4 Aug 2000 15:43:11 -0400
To: zope@zope.org
Subject: [Zope] Solution Suggestions?
From: Craig <craig@tool.net>

Unfortunately I do not know enough about Zope yet to know what the best
approach is to solving my problem, so please let me know if you have any
suggestions or have done something similar before.

I am trying to build a "tips" site and am trying to decide on how to store
the tips. The options I can think of are database, XML documents (stored
within Zope), or my own custom Zope object type or product. I've read a
little about XML documents in Zope, but I know nothing about creating my own
object types or products. Can anyone give me some advantages (and
disadvantages) of the latter approach? Perhaps there is already a product
for something similar. Squishdot is slight overkill for what I'm looking
for, although I would eventually like to attach discussion threads to each
tip, so maybe it is not.

This is the information that would need to be stored for each tip
(hypothetically) :

Tip title
Abstract
Tip text
Author (email, etc...)
Date submitted
Date approved (if we allow users to submit tips)
Number of hits (so we can have a "10 most popular", etc...)
Image link 

...and more may be added as time goes on.

Any thoughts?

Later,
-- 
\ Craig "Cowboy" McDaniel 
/_\ Software Engineer
/_/_\ Internet Tool & Die
/_/_/_\ craig@tool.net
/_/_/_/_\ (502) 584-8665 ext 108

--__--__--

Message: 4
Date: Fri, 04 Aug 2000 15:23:50 -0400
To: zope@zope.org
From: "Administrator" <Administrator@fd.org>
Reply-To: "Administrator" <Administrator@fd.org>
Subject: [Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney (Administrator)
  2. 2.2 as a service and Zodbcda (Jim Sanford)
  3. Re: create DTML-Source-link like on zope.org (Chris Withers)
  4. Problem accessing property value (David Riggs)
  5. Re: Confusing aq - I don't get it, anyone know why? (Dieter Maurer)
  6. Re: Evaluating a string of DTML code? (Dieter Maurer)
  7. Re: ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses (Dieter Maurer)
  8. Re: Batchpeocessing with multiple selection (Dieter Maurer)
  9. Re: Problem accessing property value (Chris Withers)
  10. Re: Zope + Apache on FreeBSD 4.0 problems (Peter Haight)
  11. Installation of 2.2.0 under Linux (Steve Sorenson)
  12. Re: create DTML-Source-link like on zope.org (Bill Anderson)
  13. Re: Installation of 2.2.0 under Linux (Nick Garcia)
  14. Re: acquisition vs. inheritance (Jonothan Farr)
  15. Upload applet in Java/JPython (Alexander Limi)
  16. How to prime a selection? (Jean Jordaan)
  17. RE: How to prime a selection? (RC Compaan)
  18. Re: How to prime a selection? (Loren Stafford)
  19. Re: Retrieving the week number with DateTime (Rob W. W. Hooft)
  20. RE: Packing with cron (Andy Dawkins)
  21. Re: acquisition vs. inheritance (Chris Withers)
  22. Re: ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses (Andreas Rippel)
  23. Vocabulary?? (Sven Hohage)
  24. Help with demoportal (Owen Smith)
  25. New Wikis on zope.org (Bill Anderson)
  26. SiteAccess and zope2.2 (Terry Kerr)
  27. Re: Help with demoportal (Chris Withers)
  28. Moving Objects that are Cataloged... (Chris Withers)
  29. Caching How-To (was Cache concerns (was zope/proxy_pass
 configuration problem) (Ragnar Beer)
  30. Re: Moving Objects that are Cataloged... (Chris Withers)
  31. Re: Moving Objects that are Cataloged... (Terry Kerr)
  32. RE: Moving Objects that are Cataloged... (Andy Dawkins)
  33. Re: Moving Objects that are Cataloged... (Chris Withers)
  34. Re: Informix and Zope (Erich Seifert)
  35. Re: Moving Objects that are Cataloged... (Chris Withers)
  36. Re: Help with demoportal (Owen Smith)
  37. ZCatalog attachments? (Simon Coles)
  38. Precondition (RC Compaan)
  39. RE: SiteAccess and zope2.2 (Jens Vagelpohl)
  40. Re: Caching How-To (was Cache concerns (was zope/proxy_pass configuration problem) configuration problem) (Toby Dickenson)
  41. Re: Caching How-To (was Cache concerns (was
 zope/proxy_pass configuration problem) configuration problem) (Ragnar Beer)
  42. zope not receiving POSTs from Apache (Fabio Akita)
  43. Re: ZCatalog attachments? (Aleksander Salwa)
  44. Please help !! (Pedro Vega)
  45. Python Product Tutorial (Erik Enge)
  46. Re: compile ZPoPyDA product problems (continued) (Stephen Nosal)
  47. REPOST: README.txt Tab (robert_j_roberts@rl.gov)
  48. Re: dtml-calendar question (still not working) (tom smith)
  49. Re: REPOST: README.txt Tab (Jeff K. Hoffman)
  50. Re: dtml-calendar question (I GOT IT!!!!!!!!) (tom smith)
  51. Re: ZODBC and Zope as a service` (Jim Sanford)
  52. Re: REPOST: README.txt Tab (Pavlos Christoforou)
  53. Re: Python Product Tutorial (Loren Stafford)
  54. RE: Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem) (bak @ kedai)
  55. ZDOM backward compatibility (Chime Thomas-Ogbuji)
  56. XSL Template proposal (Chime Thomas-Ogbuji)
  57. Moving an entire Zope site (Douglas Bates)
  58. Re: Moving an entire Zope site (Christopher J. Kucera)
  59. Redirecting from Python? (Christopher J. Kucera)
  60. Re: acquisition vs. inheritance (Jonothan Farr)
  61. Re: Redirecting from Python? (Jonothan Farr)
  62. Powered by Zope in different colors? (Marcin Kasperski)
  63. Re: Redirecting from Python? (Christopher J. Kucera)
  64. Zope with two platforms. (Francisco Assis Rosa)
  65. Re: compile ZPoPyDA product problems (continued) (Stephen Nosal)
  66. Re:[Zope]compile ZPoPyDA product problem (continued) (Stephen Nosal)
  67. Pluggable brains aren't seen by first-nnn in <dtml-in>? (Brad Clements)
  68. Re: Powered by Zope in different colors? (Christopher J. Kucera)

-- __--__-- 

Message: 1
Date: Thu, 03 Aug 2000 15:44:21 -0400
To: zope@zope.org
From: "Administrator" <Administrator@fd.org>
Reply-To: "Administrator" <Administrator@fd.org>
Subject: [Zope] cc:Mail Link to SMTP Undeliverable Message: Unknown user: Gustin Kiffney


Send Zope maillist submissions to
	zope@zope.org

To subscribe or unsubscribe via the web, visit
	http://lists.zope.org/mailman/listinfo/zope
or, via email, send a message with subject or body 'help' to
	zope-request@zope.org
You can reach the person managing the list at
	zope-admin@zope.org

(When replying, please edit your Subject line so it is more specific than
"Re: Contents of Zope digest...")


Today's Topics:

  1. free client to map Zope-FTP to drive letters on Windows OR Alex File System AFS (Marcus Schopen)
  2. (no subject) (weboats@web-oats.com)
  3. Re: Packing with cron (Jason Spisak)
  4. Re: dtml-calendar question. (R. David Murray)
  5. Re: dtml-calendar question (still not working) (R. David Murray)
  6. Re: Zope Usage (R. David Murray)
  7. Re: free client to map Zope-FTP (rgines@purina.com)
  8. Re: How do I count children? (Kapil Thangavelu)

--  __--__--  

Message: 1
From: Marcus Schopen <marcus@localguru.de>
Subject: [Zope] free client to map Zope-FTP to drive letters on Windows OR Alex File System AFS
Date: Thu, 03 Aug 2000 18:11:31 +0100
To: zope@ZOPE.ORG

Hi there,

I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
to a drive letter on my Windows workstation. Commercial Versions are
ftpNetDrive or WebDrive. But these are not free.

Thank you
Marcus

P.S.: mounting Zope`s FTP with AFS (Alex FS to local directory on my linux-box and
sharing this mounted directory by SAMBA seems to be to much work. But
if someone has experiences with this serverside solution, please let me know.

______________________________________

     (0>   Marcus Schopen
     //\   Bielefeld, Germany
     V_/_
______________________________________


--  __--__--  

Message: 2
From: weboats@web-oats.com
Date: Thu, 3 Aug 2000 10:13:03 -0700 (PDT)
To: zope@zope.org
Reply-To: weboats@web-oats.com
Subject: [Zope] (no subject)


Greetings,

Is there a limit to the number of objects that may appear in a product?

The goal is to be search engine friendly:

http://www.myserver.com/us/ca/San_Francisco/mycategory/index_html

/myroot
  /us
    /mycategory


Would it be unreasonable to have 42620 folders (one for each US city and town) in a 
zclass?

Regards,

Kevin Smith

--  __--__--  

Message: 3
From: "Jason Spisak" <444@hiretechs.com>
To: "Andy Dawkins" <andyd@nipltd.com>
Cc: zope@zope.org
Subject: Re: [Zope] Packing with cron
Date: Thu, 03 Aug 2000 08:21:09 GMT

Andy Dawkins writes:

Thank you Andy.  That was generous.
Have you ever used this from cron? Just so I know before I try it.

All my best,


> Jason
> 
> I'm not sure if it is worthy of putting up on Zope.
> Although I'm sure people will correct me if I am wrong.
> 
> But I have no problems in letting you have it
> 
> <packDb.py> is the main python script.
> 	You will need to change the line that reads
> 	s=xmlrpclib.Server('http://myserver:8080/', transport=None,
> username='username', password='password')
> 	To reflect your correct server details.
> 
> <xmlrpclib.py> xmlrpc Library for python.
> 	Place this in your python/libs directory, or the same directory as
> packDb.py
> 
> <packExtension.py> This contains the code for the external Method.
> 	Place this in your zope/Extensions directory.  Create it if it doesn't
> exist.
> 
> You will need to add an external method to the root of your ZODB that points
> to packExtensions.py script
> 
> If you have any problem then please let me know.
> 
> -Andy
> 


Jason Spisak
CIO
HireTechs.com
6151 West Century Boulevard
Suite 900
Los Angeles, CA 90045
P. 310.665.3444
F. 310.665.3544

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.

--  __--__--  

Message: 4
Date: Thu, 3 Aug 2000 13:27:23 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Chris Withers <chrisw@nipltd.com>
cc: Andrew Kenneth Milton <akm@mail.theinternet.com.au>, zope <zope@zope.org>
Subject: Re: [Zope] dtml-calendar question.

On Thu, 3 Aug 2000, Chris Withers wrote:
> > In what way does it *not* follow Python (expression) syntax rules?
> 
> _['something'] doesn't just return the value from the dictionary which
> has the 'something' key, if it's callable, it'll try to call it and then
> return that... not nice :(
> 
> If you want to be safe, use _.getitem('something',0)...

True enough, that's a somewhat weird semantic, but it's still
following python *syntax* rules <grin>.

--RDM



--  __--__--  

Message: 5
Date: Thu, 3 Aug 2000 13:35:31 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: zope@zope.org
Subject: Re: [Zope] dtml-calendar question (still not working)

On Thu, 3 Aug 2000, tom smith wrote:
> I'm still getting allsorts of errors. My code is like this...
> 
> <dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()">
>     <dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr">
> 
> 
>     <dtml-in expr="get_days_events(startDateString)">
>         <dtml-var EventName>
>     </dtml-in>
> 
>     </dtml-let>
> 
> </dtml-let>
> 
> I'm having trouble passing StartDateString to get_days_events. If I look at
> StartDateString using <dtml-var startDateString> it looks OK.

What kind of errors? 

--RDM


--  __--__--  

Message: 6
Date: Thu, 3 Aug 2000 13:52:10 -0400 (EDT)
From: "R. David Murray" <bitz@bitdance.com>
To: Marc Dullien <M.Dullien@digitalpublishing.de>
cc: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] Zope Usage

On Thu, 3 Aug 2000, Marc Dullien wrote:
> Q1: With what tool inside Zope do I program the HTML Templates ?

Read the DTML reference.

> Q2: I want to fill those templates with database entries

Read the ZSQL reference.

> Q3: How can I do the linkage

Isn't that the same as Q2?

> If you could send me a short Howto or something, that would be great, I can
> find ma way through from there !

Well, neither one is exactly short...so you might want to skim them
first and then go back and read in detail as you try things out.

--RDM


--  __--__--  

Message: 7
From: rgines@purina.com
To: Marcus Schopen <marcus@localguru.de>
cc: zope@zope.org
Date: Thu, 3 Aug 2000 13:26:55 -0500
Subject: Re: [Zope] free client to map Zope-FTP


My first question is "Do you realy need a drive letter?".   If you don't
need a drive letter, but really just need a connection which is mapped
within the Windows drive space, there is a utility called Internet
Neighborhood from KnoWare.   It allows you to map FTP sites into the
Windows 'File Explorer'.  It is not free, but it is shareware.   I don't
use it personally, but I did run across it when I was testing some
utilities for a client.  Depending on what your underlying need is, it
should work well for you.

>I'm looking for a free(!) Windows 95/98 programm to map my Zope-FTP
>to a drive letter on my Windows workstation. Commercial Versions are
>ftpNetDrive or WebDrive. But these are not free.








--  __--__--  

Message: 8
Date: Thu, 03 Aug 2000 06:33:52 -0700
From: Kapil Thangavelu <kvthan@wm.edu>
To: "J. Atwood" <jatwood@bwanazulia.com>
CC: zope@zope.org
Subject: Re: [Zope] How do I count children?

"J. Atwood" wrote:
> 
> So In ZUBB (my discussion product) I want to be able to show how many
> replies there have been to any one main topic. All replies are 'children' of
> the main post and when I state it with
> 
> <dtml-tree branches=children>
>     Stuff
> </dtml-tree>
> 
> It works and knows that each message is a child of the message.
> 
> When in go through a searchResult to list the message I want to  show many
> replies there are to that message.
> 
> Q: How do I count the 'children' of any one onject?



if children aren't nested
<dtml-let x="objectIds(['childrenClass'])">
<dtml-var "_.len(x)">
</dtml-let>

if children are nested you probably need a recursive dtml/python method.

in python 

def count_children(o):
	x = o.objectItems(['childClass'])	
	sum = len(x)
	for child, child_name in x:
		sum = sum + count_children(child)
	return sum


Kapil



--  __--__--  

_______________________________________________
Zope maillist  -  Zope@zope.org



--  __--__--  --

End of Zope Digest



-- __--__-- 

Message: 2
From: "Jim Sanford" <jsanford@atinucleus.com>
To: "Zope List" <zope@zope.org>, <brian@digicool.com>
Subject: [Zope] 2.2 as a service and Zodbcda
Date: Thu, 3 Aug 2000 15:05:40 -0500
charset="iso-8859-1"

Can you shed any insite?

***********Result of testing Z SQL Method with Zope 2.2 running as a service:

 Z SQL Method at /scripts/Zope.pcgi / testing / test2

--------------------------------------------------------------------------------
Error, sql.error: ('S0002', 173, "[Microsoft][ODBC Visual FoxPro Driver]File 'names.dbf' does not exist.")
--------------------------------------------------------------------------------
SQL used:

Could not render the query template!

Registry Parameter= start : REG_SZ : "C:\Progra~1\ATIAny~1\bin\python.exe" "C:\Program Files\ATIAnywhere\z2.py" -D -p
C:\InetPub\scripts\Zope.pcgi
=================================================

************Result of testing Z SQL Method with Zope 2.2 running from start.bat.:

 Z SQL Method at /scripts/Zope.pcgi / testing / test2

-------------------------------------------------------------------------
-------
Company
ATMEL

--------------------------------------------------------------------------------
SQL used:

select company
from names where val(id)=27000

Start.bat="C:\Program Files\ATIAnywhere\bin\python.exe" "C:\Program Files\ATIAnywhere\z2.py" -D -p C:\InetPub\scripts\Zope.pcgi


=============================================
Both are running via pcgi through MS IIS 4.0

Here is Zope.pcgi:

#!C:\Program Files\ATIAnywhere\pcgi\win32\pcgi-wrapper.exe
#
# This PCGI info file was generated automatically by
# the Zope installer. See the file doc/WEBSERVER.txt
# for more information on setting up PCGI support.

PCGI_NAME=Anywhere
PCGI_PORT=8090
PCGI_MODULE_PATH=C:\Progra~1\ATIAnywhere\lib\python\Main.py
PCGI_PUBLISHER=C:\Progra~1\ATIAnywhere\pcgi\pcgi_publisher.py
PCGI_EXE=C:\Progra~1\ATIAnywhere\pcgi"
PCGI_SOCKET_FILE=C:\Progra~1\ATIAnywhere\pcgi\pcgi.soc
PCGI_PID_FILE=C:\Progra~1\ATIAnywhere\pcgi\pcgi.pid
PCGI_ERROR_LOG=C:\Progra~1\ATIAnywhere\pcgi\pcgi.log
PCGI_DISPLAY_ERRORS=1
BOBO_REALM=Zope
BOBO_DEBUG_MODE=1
INSTANCE_HOME=C:\Progra~1\ATIAnywhere


-- __--__-- 

Message: 3
Date: Thu, 03 Aug 2000 21:27:30 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Deryk Barker <dbarker@turing.cs.camosun.bc.ca>
CC: zope@zope.org
Subject: Re: [Zope] create DTML-Source-link like on zope.org

Deryk Barker wrote:
> > Try something like:
> >
> > http://www.mysite.com/folder/dtmlmethod/view_source
> 
> 404 document not found...:-(

Of course it was, I made up the url as an example :P

> I'd like to view the source of my index_html.

So you go to:

http://www.yoursite.com/index_html/view_source.

cheers,

Chris

-- __--__-- 

Message: 4
Date: Thu, 03 Aug 2000 17:08:17 -0400
From: David Riggs <driggs@asset.com>
To: zope@zope.org
Subject: [Zope] Problem accessing property value

This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
released...I believe the problem is just a syntax one...

I'm running into a snag trying to access the value of a property I've
assigned to an instance of a ZClass...specifically, I've created a
ZClass of meta-type Customize, and created an instance (also called
Customize for simplicity) in each member's home folder. [for reference
sake, PTK creates a folder in the path
/ZopeRoot/PortalRoot/Members/UserName for each member] The instance has
a long list of properties that I'd like to access and use as
customization settings for each individual user.

Calling the property like this...
      <dtml-var
"AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property'">
Yields the following string literal (which isn't what I need)
        http://host:8080/Portal/Members/UserName/Customize.some_property

And calling it like so...
     <dtml-var
"_(AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property')">
Gives me this weird string (definitely not what I want)
      <DictInstance object at 134fdc0>
Where the hex number varies between 11xxxxx - 13xxxxx each time I render

it.

I've tried calling the Customize method like this
     <dtml-var "Members.UserName.Customize.some_property">
And I get the value I need, but this way I'm hard coding the user's name

into the path, where I want it to not be user specific.

I've tried a few times with getAttribute and getProperty, but can't seem

to get the syntax correct...If any Zope Masters could offer a hand, it'd

be GREATLY appreciated!

Thanks,
David Riggs





-- __--__-- 

Message: 5
From: Dieter Maurer <dieter@handshake.de>
Date: Thu,  3 Aug 2000 23:11:07 +0200 (CEST)
To: bkc@murkworks.com
Cc: zope@zope.org
Subject: Re: [Zope] Confusing aq - I don't get it, anyone know why?

Brad Clements writes:
 > ... Name Error in called DTML method ....

 > <dtml-var "FormatColumnTable(columnlist=packagecolumns,obj=GetSelf(),notable=1)">

Here, you break the namespace propagation!

As a general rule:

  If you call a DTML object explicitely (i.e. inside "..."),
  then *always* use "_.None" (or an object or object tuple)
  and "_" as the first two positional parameters.
  Only after these two, use your parameters as keyword
  parameters.

  If you do not, you break the namespace propagation
  (passing the "_" down to your called DTML object).

If you use the DTML object outside "..." (or in _[...]), then
the DTML magic does automatic propagation.
Inside "...", you must do it explicitely.



Dieter

-- __--__-- 

Message: 6
From: Dieter Maurer <dieter@handshake.de>
Date: Thu,  3 Aug 2000 23:03:00 +0200 (CEST)
To: "T.J. Mannos" <MannosTJ@slcc.edu>
Cc: <zope@zope.org>
Subject: Re: [Zope] Evaluating a string of DTML code?

T.J. Mannos writes:
 > I have an ExternalMethod that processes an HTML file, extracts the contents
 > of the BODY tag, and wraps my site template around it.  (In other words, it
 > takes a plain vanilla HTML file and adds standard_html_header and
 > standard_html_footer).
 > 
 > [See http://www.zope.org/Members/unfo/howto_wrapper/index_html for more
 > background]
 > 
 > The problem is this: I can't have arbitrary DTML code in the HTML file.
 > Zope completely ignores it.  I tried fmt=structured-text, but that doesn't
 > work, either.  Since the file is essentially read in as a string, is there
 > any way to evaluate an arbitrary string of DTML code?
What prevents you, to render the body? This should handle
DTML expansion, at least for simple cases.

	def wrap(self,what):
	    REQUEST= self.REQUEST
	    return self.standard_html_header(self,REQUEST) \
	           + what(self,REQUEST) \
		   + self.standard_html_footer(self,REQUEST)

This will break, if one of the DTML objects needs arguments
not present in the current REQUEST.


Dieter

-- __--__-- 

Message: 7
From: Dieter Maurer <dieter@handshake.de>
Date: Thu,  3 Aug 2000 22:58:23 +0200 (CEST)
To: Andreas Rippel <arippel@informatik.uni-kl.de>
Cc: zope@zope.org
Subject: Re: [Zope] ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses

Andreas Rippel writes:
 > I came across the situation, where the result rows of a Z SQL access
 > contained www strings like
 > www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below.
 > Using ZSearch generated dtml-methods generated the following html code,
 > when the result set contains more
 > than 50 items. See the generated reference for the next items
 > <a
 > href="www.uni-ko-ld.de/veranstaltungen/lehramt.html?fach=%25&hochschule=%25&SUBMIT=Submit+Query&query_start=51">,
 > which didn't refer to the running zope environment. Instead it merged
 > address stuff from a result row.

I expect that your table contains a column with the same name
as the DTML-variable used to build the navigation (URL, I think).

"dtml-in" brings the column names of your rows in the namespace.
they hide their other variables defined outside the "dtml-in".

If you can, rename your database column.


If you cannot, build your own DTML methods for testing by customizing
the DTML methods generated by the Z Search Interface.
Z SQL methods have the argument "src__" (in 2.2, there
is something for tests too). It gives you the generated SQL,
without executing it.


Dieter

-- __--__-- 

Message: 8
From: Dieter Maurer <dieter@handshake.de>
Date: Thu,  3 Aug 2000 22:50:55 +0200 (CEST)
To: vikas <vikas@mail.morelinux.com>
Cc: zope@zope.org, zope@egroups.com, support@digicool.com
Subject: Re: [Zope] Batchpeocessing with multiple selection

vikas writes:
 > ....
 > For this i am using batch processing. But
 > it is giving me errors Such as key error [city],[state] and gives the url
 > of my page where i m using batchprocessing. Can someone help me out how to
 > overcome the problem this problem as this is very urgent for me.
 > ...

You may make one of two types of errors:

 * you have no navigation button or did not include
   "sequence-query" in it "href"
   
 * you used "method=post" to send your query.
   In this case "QUERY_STRING" is not defined, and
   "sequence-query" does not work


Dieter

-- __--__-- 

Message: 9
Date: Thu, 03 Aug 2000 22:17:34 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: David Riggs <driggs@asset.com>
CC: zope@zope.org
Subject: Re: [Zope] Problem accessing property value

David Riggs wrote:
> 
> This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
> NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
> released...I believe the problem is just a syntax one...
> 
> I'm running into a snag trying to access the value of a property I've
> assigned to an instance of a ZClass...specifically, I've created a
> ZClass of meta-type Customize, and created an instance (also called
> Customize for simplicity) in each member's home folder. [for reference
> sake, PTK creates a folder in the path
> /ZopeRoot/PortalRoot/Members/UserName for each member] The instance has
> a long list of properties that I'd like to access and use as
> customization settings for each individual user.
> 

> Calling the property like this...
>       <dtml-var
> "AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property'">
> Yields the following string literal (which isn't what I need)
>         http://host:8080/Portal/Members/UserName/Customize.some_property

Try this instead (excuse mail wrapping ;-):
<dtml-var "AUTHENTICATED_USER.getHomeUrl()+'/'+Customize.some_property">

cheers,

Chris

-- __--__-- 

Message: 10
To: steve@spvi.com
cc: zope@zope.org
Subject: Re: [Zope] Zope + Apache on FreeBSD 4.0 problems
Date: Thu, 03 Aug 2000 14:22:42 -0700
From: Peter Haight <peterh@sapros.com>

>
>Hi Peter,
>
>   Hmm... I've never seen this problem, and I've been using
>pcgi/FreeBSD since 2.2.8. I have however seen another problem:
>
>http://lists.zope.org/pipermail/zope/1999-December/016465.html
>
>that has never really been resolved. I'm going to try your
>net.local magic to see if that has an effect. I tried the
>FreeBSD lists at one time, and never got any response. Maybe
>it's time to try them again....

I wasn't able to reproduce it on Zope. This is probably because I have since
switched to using fast cgi which has fixed all my problems. 

I was able to reproduce it using your test script and just piping it to
more. What's going on is that you are getting a broken pipe exception in
self.stdout.write in HTTPResponse.write(), but that exception is getting
masked somewhere which is why it seems mysterious as to what is happening.

I have no idea why we get a broken pipe when piping that to more. I made a
script:

import sys

file = open("fs.txt", "r")
data = file.read(1024)
while data:
        result = sys.stdout.write(data)
        data = file.read(1024)

And piped that to more. Same problem. If I do 'cat fs.txt | more' it works
fine. 

Upgrading my system from 4.0-RELEASE to 4.1-STABLE fixed this problem.



-- __--__-- 

Message: 11
From: "Steve Sorenson" <bigbaldlarvey@hotmail.com>
To: zope@zope.org
Subject: [Zope] Installation of 2.2.0 under Linux
Date: Thu, 03 Aug 2000 22:46:33 GMT

Hello,
When I installed the source code of 2.2.0 on my Linux machine, I got an 
error message saying "Error 256" just after it began compiling the python 
modules.  The same thing happens when I attempt to install the linux2 
release.  Has anybody else experienced anything of thie nature?
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


-- __--__-- 

Message: 12
Date: Thu, 03 Aug 2000 17:40:29 -0600
From: Bill Anderson <bill@libc.org>
To: Chris Withers <chrisw@nipltd.com>
CC: zope@zope.org
Subject: Re: [Zope] create DTML-Source-link like on zope.org

Chris Withers wrote:
> 
> Deryk Barker wrote:
> > > Try something like:
> > >
> > > http://www.mysite.com/folder/dtmlmethod/view_source
> >
> > 404 document not found...:-(
> 
> Of course it was, I made up the url as an example :P
> 
> > I'd like to view the source of my index_html.
> 
> So you go to:
> 
> http://www.yoursite.com/index_html/view_source.

Returns a 404 on my systems ...

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

-- __--__-- 

Message: 13
Date: Thu, 03 Aug 2000 17:27:22 -0700
From: Nick Garcia <ngarcia@codeit.com>
To: Steve Sorenson <bigbaldlarvey@hotmail.com>
CC: zope@zope.org
Subject: Re: [Zope] Installation of 2.2.0 under Linux

Steve Sorenson wrote:
> 
> Hello,
> When I installed the source code of 2.2.0 on my Linux machine, I got an
> error message saying "Error 256" just after it began compiling the python
> modules.  The same thing happens when I attempt to install the linux2
> release.  Has anybody else experienced anything of thie nature?

I think that means that you don't have the python development
libraries.  If you use RPMs, you need the python-devel package.

-- 
Nick Garcia | ngarcia@codeit.com
CodeIt Computing | http://codeit.com

-- __--__-- 

Message: 14
From: "Jonothan Farr" <jfarr@real.com>
To: "Bob Horvath" <bob@horvath.com>, <zope@zope.org>
Subject: Re: [Zope] acquisition vs. inheritance
Date: Thu, 3 Aug 2000 17:26:11 -0700
charset="iso-8859-1"

> Is it possible to have just one top level object that refers to
> other objects that get overridden as you go into other folders?

Acquisition works the other way around. You can create objects in subfolders
whose contents are overriden higher up. You can't have an object at the top
whose contents get overridden as you go down.

Your solution was correct. Create another index_html in the subfolder, which
uses the 'contents' object in the subfolder, but the standard_html_header and
standard_html_footer from the parent folder.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998



-- __--__-- 

Message: 15
From: "Alexander Limi" <alexander@limi.net>
To: <zope@zope.org>
Subject: [Zope] Upload applet in Java/JPython
Date: Fri, 4 Aug 2000 03:08:24 +0200
charset="iso-8859-1"

Hi,

I tried posting this to the comp.lang.pyton group, but I never got any
answer, so I was hoping that you friendly Zope folks could offer me some
advice.

The setting is this:

My web site collects big files (typically 2-5 MB) that the users
upload via HTTP POST (yeah, I know - FTP is nicer, but not when you
have untrusted users). When a person submits his file, he has to wait
20-30 minutes for the upload to complete, without any visual feedback
at all.

This is clearly not desirable. What I imagine would be nice, is a
small applet to handle the file and provide the user with a visual
feedback on the progress of the upload. Just a simple progress bar.

What I want to know is: Has this already been written by someone?
Either in Java or JPython? If so, could you please provide me with a
URL?

If not, is this a big task? I am a Python newbie, and I haven't
touched JPython at all.

All help appreciated.


Alexander.



-- __--__-- 

Message: 16
From: Jean Jordaan <Jean@mosaicsoftware.com>
To: "'zope@zope.org'" <zope@zope.org>
Cc: "RC Compaan (E-mail)" <roche@up-front.co.za>
Subject: [Zope] How to prime a selection?
Date: Fri, 4 Aug 2000 07:10:04 +0200
charset="iso-8859-1"

Hi all

I'm making a document class for a warehouse of papers.
It's based on ZCatalogAware and ObjectManager (to wrap
mainly PDFs and DOCs), and has fields:

  title   (string type)
  origin  (string type)
  format  No value for format_value.  
  type    No value for type_value.  

"format" and "type" are selections -- 

1. where do I supply their initial values (filling in 
   'format_value' and 'type_value')?
2. is it possible to let a field offer presets and 
   previously entered values, but to allow users to 
   add new ones, which are remembered and offered to 
   subsequent users?

A RTFM-type answer to question 1. is perfectly OK, though a 
page reference would be sorely appreciated.

-- 
jean

-- __--__-- 

Message: 17
From: "RC Compaan" <roche@up-front.co.za>
To: "Jean Jordaan" <Jean@mosaicsoftware.com>
Cc: "Zope" <zope@zope.org>
Subject: [Zope] RE: How to prime a selection?
Date: Fri, 4 Aug 2000 07:41:34 +0200
charset="iso-8859-1"

Hi Jean

The value for a selection list can be any zope object that returns a list
eg. MyDocClass can have a property "Format" with a value "FormatList", where
FormatList is a dtml-method that returns a list.

Practically:
1.Go to the property sheet for your new class and add the property Format
with value FormatList.
2.Go to the Folder where you want to add an instance of your ZClass and
create add a property "docformats" of type "lines" and enter the initial
formats.
3.In the Folder where you want to add your instance, create a dtml-method
called "FormatList" that will return the list, containing:
	<dtml-return docformats>

Hope this helps.

For more info on selection list see
http://www.zope.org/Members/AlexR/SelectionLists

Roché

> -----Original Message-----
> From: Jean Jordaan [mailto:Jean@mosaicsoftware.com]
> Sent: 04 August 2000 07:10
> To: 'zope@zope.org'
> Cc: RC Compaan (E-mail)
> Subject: How to prime a selection?
>
>
> Hi all
>
> I'm making a document class for a warehouse of papers.
> It's based on ZCatalogAware and ObjectManager (to wrap
> mainly PDFs and DOCs), and has fields:
>
>   title   (string type)
>   origin  (string type)
>   format  No value for format_value.
>   type    No value for type_value.
>
> "format" and "type" are selections --
>
> 1. where do I supply their initial values (filling in
>    'format_value' and 'type_value')?
> 2. is it possible to let a field offer presets and
>    previously entered values, but to allow users to
>    add new ones, which are remembered and offered to
>    subsequent users?
>
> A RTFM-type answer to question 1. is perfectly OK, though a
> page reference would be sorely appreciated.
>
> --
> jean
>


-- __--__-- 

Message: 18
From: "Loren Stafford" <lstaffor@dynalogic.com>
To: "Jean Jordaan" <Jean@mosaicsoftware.com>, <zope@zope.org>
Cc: "RC Compaan \(E-mail\)" <roche@up-front.co.za>
Subject: Re: [Zope] How to prime a selection?
Date: Thu, 3 Aug 2000 23:04:10 -0700
charset="iso-8859-1"



> Hi all
> 
> I'm making a document class for a warehouse of papers.
> It's based on ZCatalogAware and ObjectManager (to wrap
> mainly PDFs and DOCs), and has fields:
> 
>   title   (string type)
>   origin  (string type)
>   format  No value for format_value.  
>   type    No value for type_value.  
> 
> "format" and "type" are selections -- 
> 
> 1. where do I supply their initial values (filling in 
>    'format_value' and 'type_value')?
> 2. is it possible to let a field offer presets and 
>    previously entered values, but to allow users to 
>    add new ones, which are remembered and offered to 
>    subsequent users?
> 
> A RTFM-type answer to question 1. is perfectly OK, though a 
> page reference would be sorely appreciated.

http://www.zope.org/Members/lstaffor/zProperties




-- __--__-- 

Message: 19
Date: Fri, 4 Aug 2000 09:10:03 +0200 (CEST)
From: rob@hooft.net (Rob W. W. Hooft)
To: David Coe <davidc@debian.org>
Cc: Arjan Scherpenisse <acscherp@wins.uva.nl>, zope@zope.org
Subject: Re: [Zope] Retrieving the week number with DateTime
<86snsn5bkf.fsf@someotherplace.org>

>>>>> "DC" == David Coe <davidc@debian.org> writes:

 DC> I suspect there is no 'standard' definition of week number.

You're wrong. According to the calendar FAW (thanks, Google:-):

------------------------------------------------
5.7 What is the week number? 

International standard IS-8601 (mentioned in section 5.6) assigns a number to each week of the year. A week that lies partly in one year
and partly in another is assigned a number in the year in which most of its days lie. This means that 

    Week 1 of any year is the week that contains 4 January, 

or equivalently 

    Week 1 of any year is the week that contains the first Thursday in January. 

Most years have 52 weeks, but years that start on a Thursday and leap years that start on a Wednesday have 53 weeks. 
------------------------------------------------

Regards,

Rob Hooft

-- 
=====   rob@hooft.net          http://www.hooft.net/people/rob/  =====
=====   R&D, Nonius BV, Delft  http://www.nonius.nl/             =====
===== PGPid 0xFA19277D ========================== Use Linux! =========

-- __--__-- 

Message: 20
From: "Andy Dawkins" <andyd@nipltd.com>
To: "Jason Spisak" <444@hiretechs.com>
Cc: "Zope" <zope@zope.org>
Subject: RE: [Zope] Packing with cron
Date: Fri, 4 Aug 2000 09:16:10 +0100
charset="iso-8859-1"

> Have you ever used this from cron? Just so I know before I try it.
>
No I haven't tried it from cron yet but I see any reasons why you couldn't,
except to make sure all the libs are in a common/accessable place. eg.
Python/lib

-Andy


-- __--__-- 

Message: 21
Date: Fri, 04 Aug 2000 09:54:26 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Jonothan Farr <jfarr@real.com>
CC: Bob Horvath <bob@horvath.com>, zope@zope.org
Subject: Re: [Zope] acquisition vs. inheritance

Jonothan Farr wrote:
> 
> > Is it possible to have just one top level object that refers to
> > other objects that get overridden as you go into other folders?
> 
> Acquisition works the other way around. You can create objects in subfolders
> whose contents are overriden higher up. You can't have an object at the top
> whose contents get overridden as you go down.

Urm, I think wires are getting crossed here, so here's an example which
may help (and which we use on most of our sites):

index_html is a DTML method:

<dtml-var standard_html_header>
<dtml-var index.html>
<dtml-var standard_html_footer>

Now, in each folder we have DTML documents called index.html which
actually contain the pages.

So, we have one index_html and many index.html's.

When someone does http://www.mysite.com/folder/
This actually renders http://www.mysite.com/folder/index_html
Then, index_html is acquired from the root.
However, because index.html exists is /folder, it is that which is
displayed.

I hope this makes it a little clearer :S

cheers,

Chris

PS:
> Your solution was correct. Create another index_html in the subfolder, 

As long as index_html is a method, you only need one of them, in the
root.

> which
> uses the 'contents' object in the subfolder, 

This will still happen if there's only one index_html

-- __--__-- 

Message: 22
Date: Fri, 04 Aug 2000 10:56:56 +0200
From: Andreas Rippel <arippel@informatik.uni-kl.de>
Organization: AG ICSY
To: Dieter Maurer <dieter@handshake.de>
CC: Phil Harris <phil.harris@zope.co.uk>, zope@zope.org
Subject: Re: [Zope] ZSearch generated default report file fails on result set cardinality greater 50 for content which contains www addresses

Dieter Maurer wrote:
> 
> Andreas Rippel writes:
>  > I came across the situation, where the result rows of a Z SQL access
>  > contained www strings like
>  > www.uni-ko-ld.de/veranstaltungen/lehramt.html, see below.
>  > Using ZSearch generated dtml-methods generated the following html code,
>  > when the result set contains more
>  > than 50 items. See the generated reference for the next items
>  > <a
>  > href="www.uni-ko-ld.de/veranstaltungen/lehramt.html?fach=%25&hochschule=%25&SUBMIT=Submit+Query&query_start=51">,
>  > which didn't refer to the running zope environment. Instead it merged
>  > address stuff from a result row.
> 
>>>>>>>>>>>>>>>>>>>> I expect that your table contains a column with the same name
>>>>>>>>>>>>>>>>>>>> as the DTML-variable used to build the navigation (URL, I think).
> 
> "dtml-in" brings the column names of your rows in the namespace.
> they hide their other variables defined outside the "dtml-in".
> 
> If you can, rename your database column.
> 
> If you cannot, build your own DTML methods for testing by customizing
> the DTML methods generated by the Z Search Interface.
> Z SQL methods have the argument "src__" (in 2.2, there
> is something for tests too). It gives you the generated SQL,
> without executing it.
> 
> Dieter
This was exactly the reason.

Thanks
	Andreas

-- __--__-- 

Message: 23
Date: Fri, 04 Aug 2000 11:15:26 +0200
From: Sven Hohage <sven.hohage@zeitspringer.de>
Organization: die zeitspringer
To: zope@zope.org
Subject: [Zope] Vocabulary??

Hallo,
think I've missed something.
What is the feature "Vocabulary"??Just a hint please!


-- __--__-- 

Message: 24
Date: Fri, 04 Aug 2000 10:42:44 +0100
From: Owen Smith <owen@circlesquared.com>
To: zope <zope@zope.org>
Subject: [Zope] Help with demoportal

2000-08-04T09:29:53 ERROR(200) Zope Couldn't install DemoPortal
Traceback (innermost last):
  File /usr/local/dc/zope/lib/python/OFS/Application.py, line 464, in
install_products
    (Object: ApplicationDefaultPermissions)
    (Info: DemoPortal)
  File /usr/local/dc/zope/lib/python/App/Product.py, line 425, in
initializeProduct
    (Object: Products.DemoPortal)
  File /usr/local/dc/zope/lib/python/ZODB/ExportImport.py, line 284, in
importFile
SystemError: Failed to import class _ZClass_for_DemoPortalBase from
module Products.PTKDemo

anyone help me with this?

Owen


-- __--__-- 

Message: 25
Date: Fri, 04 Aug 2000 03:44:57 -0600
From: Bill Anderson <bill@libc.org>
To: zope@zope.org
Subject: [Zope] New Wikis on zope.org

I have added a couple of new wikis to my section on zope.org at http://www.zope.org/Members/Bill

The first one deals with the Membership product. I hope to expose some of my reasons and methodology in the development
of the product. You can get to it by going to my page at http://www.zope.org/Members/Bill/MembershipProductWiki . I do
ask that general questions go to the mailing list (zope-dev, thank you), and not to the discussion page. 

The second one I hope will be of use to some zopistas, new and old. it is an open documentation and logging of the
development of a Zope Powered Site. the site it references, is already up and public, but it is far from complete. It is
currently in the 'it works, let us get it out there' phase. it can be reached at
http://www.zope.org/Members/Bill/ThroughTheLookingGlass

Both sites have a seperate page for members to edit, as I'd like to keep the main pages clear and concise. I just put
these up, with some basic pages added, so bear with me the next few days. I'm readying another Membership release :) 

Yours in Zope, Bill

--
Do not meddle in the affairs of sysadmins, for they are easy to annoy,
and have the root password.

-- __--__-- 

Message: 26
Date: Fri, 04 Aug 2000 20:03:42 +1000
From: Terry Kerr <terry@adroit.net>
To: zope@zope.org
Subject: [Zope] SiteAccess and zope2.2

Hi,

I am trying to upgrade from zope2.1.6 to zope2.2 and my SiteAccess no
longer seems to work.  I have the new version of SiteAccess, and product
is not broken, it just doesn't redirect any hostnames of any of my
sites.  All domains point to the root of zope instead of their
respective folders.

Do I have to change anything else?

terry


--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




-- __--__-- 

Message: 27
Date: Fri, 04 Aug 2000 10:56:10 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Owen Smith <owen@circlesquared.com>
CC: zope <zope@zope.org>
Subject: Re: [Zope] Help with demoportal

What version of the PTK are vyou using?

Chris

Owen Smith wrote:
> 
> 2000-08-04T09:29:53 ERROR(200) Zope Couldn't install DemoPortal
> Traceback (innermost last):
>   File /usr/local/dc/zope/lib/python/OFS/Application.py, line 464, in
> install_products
>     (Object: ApplicationDefaultPermissions)
>     (Info: DemoPortal)
>   File /usr/local/dc/zope/lib/python/App/Product.py, line 425, in
> initializeProduct
>     (Object: Products.DemoPortal)
>   File /usr/local/dc/zope/lib/python/ZODB/ExportImport.py, line 284, in
> importFile
> SystemError: Failed to import class _ZClass_for_DemoPortalBase from
> module Products.PTKDemo
> 
> anyone help me with this?
> 
> Owen
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )

-- __--__-- 

Message: 28
Date: Fri, 04 Aug 2000 11:24:01 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: zope@zope.org
Subject: [Zope] Moving Objects that are Cataloged...

...is bad :(

Because Catalog stores objects not by reference but by the path to where
they are, if you move those objects, you'll start getting lots of
'Uncatalog of absent id' errors and your search results will point to
objects that don't exist.

And ideas/comments?

cheers,

Chris

-- __--__-- 

Message: 29
Date: Fri, 4 Aug 2000 12:33:53 +0200
To: zope@zope.org
From: Ragnar Beer <rbeer@uni-goettingen.de>
Subject: [Zope] Caching How-To (was Cache concerns (was zope/proxy_pass
configuration problem)
configuration problem)

During the last couple of days I could finally figure out how to set 
up caching with mod_proxy. This morning I put together a caching 
howto and submitted it for review.

If it's accepted it will be available under 
http://www.zope.org/Members/rbeer/caching

I'm going on holiday now (Crete: wonderful greek island) and I'm 
going without my laptop so I won't answer any emails for the next two 
weeks ;)

Ragnar

>Ragnar,
>
>Caching is a subject I'm not all that familiar with but one I need to learn
>really fast.  My site is about to go live, and I have a monster of a query
>that will bring my system to its knees if 100 students run it at a time.  So
>I'm sending this off to the Zope mailing list wondering if anyone can give
>us some caching/performance tips.
>
>- T.J.
>
>-----Original Message-----
>From: Ragnar Beer [mailto:rbeer@uni-goettingen.de]
>Sent: Wednesday, August 02, 2000 12:48 PM
>To: T.J. Mannos
>Subject: RE: [Zope] zope/proxy_pass configuration problem
>
>
>Very good idea! I tried it and it works like a charm :) Thanks a lot!
>
>One problem is left over: apache doesn't cache the documents although I have
>
><dtml-call "RESPONSE.setHeader('Expires',
>_.DateTime(_.DateTime().timeTime() + 3600).toZone('GMT').rfc822())">
>
>in my standard_html_header. ab -n 100 -c 1
>http://www.dummy.com/index_html shows 100 queries in Z2.log where
>there should be only one.
>What could I be doing wrong?
>
>Ragnar
>
>>Ragnar,
>>
>>If you're referring to my ZServer+Apache+SSL HOWTO, this would be a
>problem.
>>Going in through https will only give you access to the 'ssl' directory.
>>The quick & dirty solution (while retaining the ability to distinguish
>>between http and https) is to reverse the setup, i.e. place the https
>>SiteRoot in the main folder and create a separate folder called, say,
>>'http', which holds the http SiteRoot.  This solution will kill two birds
>>with one stone: it will grant access to the entire site via https while
>>restricting http users to an empty subdirectory.
>>
>>Hope this helps,
>>T.J.
>>
>>-----Original Message-----
>>From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
>>Ragnar Beer
>>Sent: Wednesday, August 02, 2000 1:30 AM
>>To: zope@zope.org
>>Subject: [Zope] zope/proxy_pass configuration problem
>>
>>
>>Hi Zope-Configuristas!
>>
>>I would finally like to say goodbye to pcgi but one thing keeps me
>>hooked. I tried and tried but the solution just won't appear. Here is
>>the problem:
>>
>>I have a site that is supposed to be reachable via http as well as
>>via https. That's not a problem per se. Configuration of zope with
>>proxy_pass is easy as can be. The problem is that management shall be
>>possible via https _only_ (for obvious reasons). But as soon as I use
>>site access to define the http-branch this branch is not
>>managable/accessable via https any more. Is there a solution?
>  >
>  >Ragnar
>  >
>  >_______________________________________________
>  >Zope maillist  -  Zope@zope.org
>  >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 maillist  -  Zope@zope.org
>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 )


-- __--__-- 

Message: 30
Date: Fri, 04 Aug 2000 11:42:52 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Terry Kerr <terry@adroit.net>
CC: zope@zope.org
Subject: Re: [Zope] Moving Objects that are Cataloged...

Terry Kerr wrote:
> 
> how are you moving them?
> 
> catalogAware objects unindex themselves when deleted then reindex
> themselves if pasted somewhere.

The objects aren't catalogAware..

Chris

-- __--__-- 

Message: 31
Date: Fri, 04 Aug 2000 20:55:14 +1000
From: Terry Kerr <terry@adroit.net>
To: Chris Withers <chrisw@nipltd.com>, zope@zope.org
Subject: Re: [Zope] Moving Objects that are Cataloged...

then as far as i know there is no way around the problem?  anyone else
have comment?

i think that is the whole point of making objects catalogAware.

Chris Withers wrote:

> Terry Kerr wrote:
> >
> > how are you moving them?
> >
> > catalogAware objects unindex themselves when deleted then reindex
> > themselves if pasted somewhere.
>
> The objects aren't catalogAware..
>
> Chris

--
Terry Kerr (terry@adroit.net)
Adroit Internet Solutions Pty Ltd (www.adroit.net)
Phone:   +613 9563 4461
Fax:     +613 9563 3856
Mobile:  +61 414 938 124
ICQ:     79303381




-- __--__-- 

Message: 32
From: "Andy Dawkins" <andyd@nipltd.com>
To: "Zope" <zope@zope.org>
Subject: RE: [Zope] Moving Objects that are Cataloged...
Date: Fri, 4 Aug 2000 12:01:54 +0100
charset="iso-8859-1"

Whilst in agreement with Chris I would like to throw another situation in
here that CatalogAware doesn't cater for.

If you change a folder name, somewhere higher in the tree, then all the
cataloged objects references are incorrect.

I think this is the same problem that Chris mentioned but a different
implementation.

-Andy

> then as far as i know there is no way around the problem?  anyone else
> have comment?
>
> i think that is the whole point of making objects catalogAware.
>
> Chris Withers wrote:
>
> > Terry Kerr wrote:
> > >
> > > how are you moving them?
> > >
> > > catalogAware objects unindex themselves when deleted then reindex
> > > themselves if pasted somewhere.
> >
> > The objects aren't catalogAware..
> >
> > Chris
>


-- __--__-- 

Message: 33
Date: Fri, 04 Aug 2000 12:06:19 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Terry Kerr <terry@adroit.net>
CC: zope@zope.org
Subject: Re: [Zope] Moving Objects that are Cataloged...

Terry Kerr wrote:
> i think that is the whole point of making objects catalogAware.

But catalogAware doesn't support subtransactions. It also doesn't handle
indirect deleting and several other conditions IIRC..

Also, in this particular case, the ZCatalog is a Squishdot Site and the
obejcts are Squishdot Postings so I don't really knwo how I could work
CatalogAware in even if I wanted to :S

cheers,

Chris

-- __--__-- 

Message: 34
Date: Fri, 04 Aug 2000 13:18:47 +0200
From: Erich Seifert <e.seifert@gmx.net>
To: zope@zope.org
Subject: Re: [Zope] Informix and Zope

"Nestor A. Diaz L." wrote:
> 
> HI,
> 
> Can anybody tell me if there is a posibility to use Zope with Informix 7.3
> on a Linux machine? maybe using odbc driver?
> 
> thanks you..

I would be interested in this, too.
Could anyone help or give some hints.

Thanks
Eric

-- __--__-- 

Message: 35
Date: Fri, 04 Aug 2000 12:24:07 +0100
From: Chris Withers <chrisw@nipltd.com>
Organization: New Information Paradigms
To: Andy Dawkins <andyd@nipltd.com>
CC: Zope <zope@zope.org>
Subject: Re: [Zope] Moving Objects that are Cataloged...

Andy Dawkins wrote:
> 
> Whilst in agreement with Chris I would like to throw another situation in
> here that CatalogAware doesn't cater for.
> 
> If you change a folder name, somewhere higher in the tree, then all the
> cataloged objects references are incorrect.
> 
> I think this is the same problem that Chris mentioned but a different
> implementation.

Slightly different, but still the same basic problems caused by storing
a patch to an object rather than a reference to the object.

Can someone remind me of the advtanges of storing the path?

cheers,

Chris

-- __--__-- 

Message: 36
Date: Fri, 04 Aug 2000 12:36:40 +0100
From: Owen Smith <owen@circlesquared.com>
CC: zope <zope@zope.org>
Subject: Re: [Zope] Help with demoportal

I installed the ptk snap shot -but Im not sure which version this is..
but I then installed  ZopePTK-0.8.0-alpha.tar.gz -but I get the same
error on restart
Owen

Chris Withers wrote:

> What version of the PTK are you using?
>
> Chris
>
> Owen Smith wrote:
> >
>


-- __--__-- 

Message: 37
Date: Fri, 4 Aug 2000 12:48:37 +0100
To: zope@zope.org
From: Simon Coles <simon@nipltd.com>
Subject: [Zope] ZCatalog attachments?

Hi,

We have binary files stored in Zope, for example Word documents (but 
could be any of a variety of document types).

We would like to be able to index and search the contents of these 
files using ZCatalog. So if a Word file contains the word "Fred", 
then any search for "Fred" would include that file in the list of 
documents returned.

Is anyone doing something like this? If so, how....?



Simon
-- 
--------- My opinions are my own, NIP's opinions are theirs ----------
Simon J. Coles                                 Email: simon@nipltd.com
New Information Paradigms                  Work Phone: +44 1344 753703
http://www.nipltd.com/                     Work Fax:   +44 1344 753742
=============== Life is too precious to take seriously ===============

-- __--__-- 

Message: 38
From: "RC Compaan" <roche@up-front.co.za>
To: "Zope" <zope@zope.org>
Subject: [Zope] Precondition
Date: Fri, 4 Aug 2000 13:51:26 +0200
charset="iso-8859-1"

What does the "Precondition" property of the file class refer to?

Roché


-- __--__-- 

Message: 39
From: Jens Vagelpohl <Jens@digicool.com>
To: "'Terry Kerr'" <terry@adroit.net>, "'zope@zope.org'" <zope@zope.org>
Subject: RE: [Zope] SiteAccess and zope2.2
Date: Fri, 4 Aug 2000 07:55:48 -0400

terry,

have you done the following:

* get the *latest* version of SiteAccess (only SiteAccess versions >2.0
work woth zope 2.2.0
* run the little helper script that comes with SiteAccess2 to upgrade
all existing SiteAccess-related objects to version 2
* just to be on the safe side, re-registered the access rules with their
respective folders

jens


> -----Original Message-----
> From: tejay@goanna.adroitnet.com.au
> [mailto:tejay@goanna.adroitnet.com.au]On Behalf Of Terry Kerr
> Sent: Friday, August 04, 2000 06:04
> To: zope@zope.org
> Subject: [Zope] SiteAccess and zope2.2
> 
> 
> Hi,
> 
> I am trying to upgrade from zope2.1.6 to zope2.2 and my SiteAccess no
> longer seems to work.  I have the new version of SiteAccess, 
> and product
> is not broken, it just doesn't redirect any hostnames of any of my
> sites.  All domains point to the root of zope instead of their
> respective folders.
> 
> Do I have to change anything else?
> 
> terry
> 
> 
> --
> Terry Kerr (terry@adroit.net)
> Adroit Internet Solutions Pty Ltd (www.adroit.net)
> Phone:   +613 9563 4461
> Fax:     +613 9563 3856
> Mobile:  +61 414 938 124
> ICQ:     79303381
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
> 
> 

-- __--__-- 

Message: 40
From: Toby Dickenson <mbel44@dial.pipex.net>
To: Ragnar Beer <rbeer@uni-goettingen.de>
Cc: zope@zope.org
Subject: Re: [Zope] Caching How-To (was Cache concerns (was zope/proxy_pass configuration problem) configuration problem)
Date: Fri, 04 Aug 2000 13:29:38 +0100
Reply-To: tdickenson@geminidataloggers.com

On Fri, 4 Aug 2000 12:33:53 +0200, Ragnar Beer
<rbeer@uni-goettingen.de> wrote:

>During the last couple of days I could finally figure out how to set 
>up caching with mod_proxy. This morning I put together a caching 
>howto and submitted it for review.
>
>If it's accepted it will be available under 
>http://www.zope.org/Members/rbeer/caching

Hey really? Me too.

 http://www.zope.org/Members/htrd/howto/caching



Toby Dickenson
tdickenson@geminidataloggers.com

-- __--__-- 

Message: 41
<p04320400b5b04a58b14d@[134.76.136.114]>
<pndlosss9cedtve2lauk3jkk2pc8hr8mab@4ax.com>
Date: Fri, 4 Aug 2000 15:08:44 +0200
To: zope@zope.org
From: Ragnar Beer <rbeer@uni-goettingen.de>
Subject: Re: [Zope] Caching How-To (was Cache concerns (was
zope/proxy_pass configuration problem) configuration problem)

Cool! I took a quick look at it and I think they fit together quiete 
nicely. In your howto you wrote "Some people have reported success 
with Apache using ProxyPass". This is exactly what my howto is about. 
Perhaps you could set a link?

Ragnar


>On Fri, 4 Aug 2000 12:33:53 +0200, Ragnar Beer
><rbeer@uni-goettingen.de> wrote:
>
>>During the last couple of days I could finally figure out how to set
>>up caching with mod_proxy. This morning I put together a caching
>>howto and submitted it for review.
>>
>>If it's accepted it will be available under
>>http://www.zope.org/Members/rbeer/caching
>
>Hey really? Me too.
>
>  http://www.zope.org/Members/htrd/howto/caching
>
>
>
>Toby Dickenson
>tdickenson@geminidataloggers.com


-- __--__-- 

Message: 42
From: "Fabio Akita" <akitaf@sti.com.br>
To: <zope@zope.org>
Subject: [Zope] zope not receiving POSTs from Apache
Date: Fri, 4 Aug 2000 10:30:09 -0300
charset="iso-8859-1"

Hi

And again there´s a weird behavior concerning Zope+Apache :) Well, I have
successfully set up an Apache in a Solaris system with Zope configured
behind it using the ProxyPass/Rewrite modules and SiteAccess Product method.
It looked to work fine but then I realized that the forms are not submitting
correctly. When I click a submit button it do goes to the correct page but
no data is passed to it, it´s like there was no Post at all.

Anyone knows something about this?

Regards


-- __--__-- 

Message: 43
Date: Fri, 4 Aug 2000 16:06:07 +0200 (CEST)
From: Aleksander Salwa <ololo@zeus.polsl.gliwice.pl>
To: zope@zope.org
Subject: Re: [Zope] ZCatalog attachments?


On Fri, 4 Aug 2000, Simon Coles wrote:

> We have binary files stored in Zope, for example Word documents (but 
> could be any of a variety of document types).
> 
> We would like to be able to index and search the contents of these 
> files using ZCatalog. So if a Word file contains the word "Fred", 
> then any search for "Fred" would include that file in the list of 
> documents returned.
> 
> Is anyone doing something like this? If so, how....?
> 

Simple search in binary data of course won't do it, because of complex
format of Word documents. So:
Try to keep beside every document its 'rendered' version - converted to
plain text (created by saving them with Word in plain text format).
Then create class representing your document. This class should provide
parameterless method 'PrincipiaSearchSource' returning rendered version of
document. However, it's untested - but seems to be a step in right
direction ;)


ololo@zeus.polsl.gliwice.pl

/--------------------------------------\
| `long long long' is too long for GCC |
\--------------------------------------/



-- __--__-- 

Message: 44
From: "Pedro Vega" <pvega@clientes.euskaltel.es>
To: <Zope@zope.org>
Subject: [Zope] Please help !!
Date: Fri, 4 Aug 2000 16:39:22 +0200
charset="iso-8859-1"

Anyone is working OK with the below configuration :

    Zope-2.2.0b4
    DCOracle-1.3.1b1
    ZOracleDA-2.2.0b1
    Oracle 8.1.6R2

if not, any similar configuration suggested ??


Thousands of thanks in advance.

Pedro Vega


-- __--__-- 

Message: 45
To: zope@zope.org
Subject: [Zope] Python Product Tutorial
From: Erik Enge <erik@enge.net>
Date: 04 Aug 2000 17:47:22 +0200

Hi.

Are there any good Python Product tutorials that deals with creating a
container (OFS.Folder.Folder will do) object and putting other objects
within it?

Thanks.

-- __--__-- 

Message: 46
Date: 4 Aug 2000 07:57:15 -0700
To: zope@zope.org
From: Stephen Nosal <stephennosal@e3mil.com>
Subject: Re: [Zope] compile ZPoPyDA product problems (continued)


> > Maybe I wasn't clear - my lib directory has the same links and files as yours (my libpq.a is smaller than yours). It's just that ldconfig -v gives me
> > 
> > /opt/pgsql/lib:
> >       libpq.so.2.1 -> libpq.so.2.1
> 
> OK, so does mine
> libpq.so.2.1 => libpq.so.2.1,
> so not.
> 
> Exactly what message are you getting now?

I'm still getting the same error: At the python interactive prompt, the command import PoPy results in the following: ImportError: /usr/lib/python1.5/site-packages/PoPymodule.so: undefined symbol: PQfsize

Any additional help would be greatly appreciated.

- Steve
> > 
> > There is no reference to libpq.so, and I still receive the same error with import PoPy. I question if I need a libpq.o listing from ldconfig -v or not?
> > 
> > Thanks for your prompt replies and help. I really appreciate it.


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

-- __--__-- 

Message: 47
From: Robert_J_Roberts@rl.gov
To: zope@zope.org
Subject: [Zope] REPOST: README.txt Tab
Date: Fri, 4 Aug 2000 08:08:14 -0700
charset="iso-8859-1"

I'll re-ask the question:

> How do I get the README tab to appear in a product?
> 
> I created a product and it is working great.  However, I would like to add
> the 'README' tab to the product (and if possible to each instance of the
> product).  I looked at other products that have the README tab and looked
> at the Product.py source code.  It appears that I should just be able to
> put a README.txt file in my product subdirectory and the tab should
> automagically appear.  It doesn't.
> 
> What do I need to do?
> 

-- __--__-- 

Message: 48
Date: Fri, 04 Aug 2000 16:13:27 +0100
Subject: Re: [Zope] dtml-calendar question (still not working)
From: tom smith <tom@othermedia.com>
To: "R. David Murray" <bitz@bitdance.com>
CC: zope <zope@zope.org>

This message is about how to use <dtml-calendar> to get it's data out of an
odbc database....

on 3/8/00 5:35 pm, R. David Murray at bitz@bitdance.com wrote:

> On Thu, 3 Aug 2000, tom smith wrote:
>> I'm still getting allsorts of errors. My code is like this...
>> 
>> <dtml-let yearnr="date.yy()" monthnr="date.mm()" daynr="date.dd()">
>> <dtml-let startDateString="monthnr+'/'+daynr+'/'+yearnr">
>> 
>> 
>> <dtml-in expr="get_days_events(startDateString)">
>> <dtml-var EventName>
>> </dtml-in>
>> 
>> </dtml-let>
>> 
>> </dtml-let>
>> 
>> I'm having trouble passing StartDateString to get_days_events. If I look at
>> StartDateString using <dtml-var startDateString> it looks OK.
> 
> What kind of errors?

I get

Zope has encountered an error while publishing this resource.

Error Type: Bad Request
Error Value: ['startDateString']

the get_days_events() sql function looks like this...

SELECT * FROM tblCalendar
WHERE
(startDate <='<dtml-var startDateString> 23:59:00'
AND endDate >= '<dtml-var startDateString> 00:00:00')
OR 
(startDate >= '<dtml-var startDateString> 00:00:00'
AND startDate <= '<dtml-var startDateString>  23:59:00')
ORDER BY startDate

with startDateString entered into the arguments field

I know the sql is a bit ugly but it's what I'm stuck with
:-|


I tried using <dtml-sqlvar but it wrapped quotes around my date which also
needs the time to work.



-- __--__-- 

Message: 49
Date: Fri, 4 Aug 2000 11:16:11 -0400 (EDT)
From: "Jeff K. Hoffman" <jeff.hoffman@goingv.com>
To: Robert_J_Roberts@rl.gov
Cc: zope@zope.org
Subject: Re: [Zope] REPOST: README.txt Tab

On Fri, 4 Aug 2000 Robert_J_Roberts@rl.gov wrote:

> I'll re-ask the question:
> 
> > How do I get the README tab to appear in a product?
> > 
> > I created a product and it is working great.  However, I would like to add
> > the 'README' tab to the product (and if possible to each instance of the
> > product).  I looked at other products that have the README tab and looked
> > at the Product.py source code.  It appears that I should just be able to
> > put a README.txt file in my product subdirectory and the tab should
> > automagically appear.  It doesn't.
> > 
> > What do I need to do?

If this is a Python product (NOT a ZClass "open box" product), delete the
product from your Product list and re-start Zope. Voila.

--Jeff

---
Jeff K. Hoffman                               704.849.0731 x108
Chief Technology Officer                      mailto:jeff.hoffman@goingv.com
Going Virtual, L.L.C.                         http://www.goingv.com/


-- __--__-- 

Message: 50
Date: Fri, 04 Aug 2000 16:24:54 +0100
Subject: Re: [Zope] dtml-calendar question (I GOT IT!!!!!!!!)
From: tom smith <tom@othermedia.com>
To: zope <zope@zope.org>

My problem was with passing the arguments around

I used ...

 <dtml-in "get_days_events(startDateString=startDateString)">
         <dtml-var name><br>
    </dtml-in>

notice the startDateString=StartDateString...which I thought the <dtml-let
would've handled, anyway....this seems to have fixed it

can anyone tell me why?

cheers

tom


-- __--__-- 

Message: 51
From: "Jim Sanford" <jsanford@atinucleus.com>
To: "Stephen Nosal" <stephennosal@e3mil.com>, <zope@zope.org>
Subject: [Zope] Re: ZODBC and Zope as a service`
Date: Fri, 4 Aug 2000 10:32:02 -0500
charset="iso-8859-1"

Thanks for the feedback.

we've been running Zope 2.1.2 from the start bat and so far
I have not had to run into the office to restart it in the
middle of the night.

I was hoping to not have to keep running it that way.

Jim ----- Original Message -----
From: "Stephen Nosal" <stephennosal@e3mil.com>
To: <jsanford@atinucleus.com>
Sent: Friday, August 04, 2000 10:13 AM
Subject: Re: ZODBC and Zope as a service`


Jim -

I never got it to work as a service and got no help from the
list. Since it was a test machine, I just ran it as a
startup file.

I was hoping it would go away in 2.2, but I guess not.

Good luck, and let me know if a solution is found.

(I'm moving my production box to Linux and having a bit more
luck there).

- Steve

On Wed, 02 August 2000, "Jim Sanford" wrote:

>
> Read a post you did in may on the subject of problems with
ZODBC and Zope running as a service on Windows.
>
> I am having similar problems with Zope 2.2 and ZODBCDA
3.1.0b2. When i start it manually with the start.bat my ZSQL
methods work
> fine. When I start it as a service, every ZSQL method  has
an SQL error where it says the table I am looking for does
not exist.
>
>  Did you ever get it to work?
>
> If so, what was the answer?
>
> Thanks in advance.
>
>
____________________________________________________________
______
>
>               Jim Sanford
>       .       Database Engineer
>      / \  /   Accelerated Technology, Inc.
>     /   /     720 Oak Circle Drive East
>    /  /  \    Mobile, AL 36609
>   / /     \   Voice: 334-661-5770  fax: 334-661-5788
>  /         \  E-Mail: jsanford@atinucleus.com
>               Web: http://www.atinucleus.com
>
>  Nucleus.  All You NEED in an RTOS.  Royalty Free
>
____________________________________________________________
______


____________________________________________________________
______
Get your Private, Anti-Spam, Free Email at http://e3mil.com
and Step into a Friendly Universe!



-- __--__-- 

Message: 52
Date: Fri, 4 Aug 2000 11:34:00 -0400 (EDT)
From: Pavlos Christoforou <pavlos@gaaros.com>
To: Robert_J_Roberts@rl.gov
cc: zope@zope.org
Subject: Re: [Zope] REPOST: README.txt Tab

On Fri, 4 Aug 2000 Robert_J_Roberts@rl.gov wrote:

> I'll re-ask the question:
> 
> > How do I get the README tab to appear in a product?
> > 
> > What do I need to do?

Its been a while but I think what you say is essentially correct. If there
is a README.txt it would be displayed assuming your product was
initialized correctly. Also make sure you delete the product from the
product management screen and restart Zope.

Pavlos


-- __--__-- 

Message: 53
From: "Loren Stafford" <lstaffor@dynalogic.com>
To: <zope@zope.org>, "Erik Enge" <erik@enge.net>
Subject: Re: [Zope] Python Product Tutorial
Date: Fri, 4 Aug 2000 09:13:19 -0700
charset="iso-8859-1"

I don't know of any tutorial. ZScheduler creates a container (a subclass of
Catalog in fact), so you might use that code as a starting point. It doesn't
put other objects in the container, tho.

-- Loren

http://www.zope.org/Members/lstaffor/ZScheduler

----- Original Message -----
From: "Erik Enge" <erik@enge.net>
To: <zope@zope.org>
Sent: August 04, 2000 08:47 AM
Subject: [Zope] Python Product Tutorial


> Hi.
>
> Are there any good Python Product tutorials that deals with creating a
> container (OFS.Folder.Folder will do) object and putting other objects
> within it?
>
> Thanks.
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>
>


-- __--__-- 

Message: 54
From: "bak @ kedai" <kedai@kedai.com.my>
To: "Ragnar Beer" <rbeer@uni-goettingen.de>
Cc: <zope@zope.org>
Subject: RE: [Zope] Caching How-To (was Cache concerns (waszope/proxy_pass configuration problem) configuration problem)
Date: Sat, 5 Aug 2000 00:21:54 +0800
charset="iso-8859-1"


has anybody had bad experience with caching when using ie?  i've done as
what you did, but ie keeps showing old data.  this with a no-cache
header,must-revalidate.


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of
Ragnar Beer
Sent: Friday, August 04, 2000 9:09 PM
To: kdie@nstp.com.my
Subject: Re: [Zope] Caching How-To (was Cache concerns
(waszope/proxy_pass configuration problem) configuration problem)


Cool! I took a quick look at it and I think they fit together quiete
nicely. In your howto you wrote "Some people have reported success
with Apache using ProxyPass". This is exactly what my howto is about.
Perhaps you could set a link?

Ragnar


>On Fri, 4 Aug 2000 12:33:53 +0200, Ragnar Beer
><rbeer@uni-goettingen.de> wrote:
>
>>During the last couple of days I could finally figure out how to set
>>up caching with mod_proxy. This morning I put together a caching
>>howto and submitted it for review.
>>
>>If it's accepted it will be available under
>>http://www.zope.org/Members/rbeer/caching
>
>Hey really? Me too.
>
>  http://www.zope.org/Members/htrd/howto/caching
>
>
>
>Toby Dickenson
>tdickenson@geminidataloggers.com


_______________________________________________
Zope maillist  -  Zope@zope.org
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 )


-- __--__-- 

Message: 55
Date: Fri, 4 Aug 2000 10:18:47 -0600 (MDT)
From: Chime Thomas-Ogbuji <cogbuji@fourthought.com>
To: zope-xml@egroups.com, zope-dev@zope.org
cc: zope@zope.org
Subject: [Zope] ZDOM backward compatibility

A decision needs to be made regarding ZDOM backward compatibility with DOM
level I.  We would like to know to what extent pcople use the old
interfaces and if adhering to DOM II only would break a lot of prior work.

The wiki describing the situation can be found here:

http://www.zope.org/Wikis/zope-xml/ZDOMCompatibility

Chime


-- __--__-- 

Message: 56
Date: Fri, 4 Aug 2000 10:34:05 -0600 (MDT)
From: Chime Thomas-Ogbuji <cogbuji@fourthought.com>
To: zope-xml@egroups.com, zope@zope.org
cc: xml-sig@python.org, fr-xml@dollar.fourthought.com
Subject: [Zope] XSL Template proposal

A proposal for an XSL Template product in Zope has been posted on the
Zope developer site.  We would appreciate, feedback suggestions,
additions, etc. to the proposal.  If you would like to participate with
the process and you aren't already a  member you can join here 
http://dev.zope.org/Register/register.html, and you will then be able to 
participate in the collaborative process.  The proposal can be found here:

http://dev.zope.org/Wikis/DevSite/Proposals/XSLTMethod

Chimezie Thomas-Ogbuji
Consultant
Fourthought Inc. (303) 583 9900 ext 104
cogbuji@fourthought.com   


-- __--__-- 

Message: 57
To: zope@zope.org
Cc: Haonan Tan <haonan@stat.wisc.edu>
Subject: [Zope] Moving an entire Zope site
From: Douglas Bates <bates@stat.wisc.edu>
Date: 04 Aug 2000 12:02:53 -0500

I will be doing a demo of a Zope-based query system at a conference
soon and need to replicate my entire site on a stand-alone machine.
Is there a convenient way to archive a Zope site and move it to another
machine?

Please cc: me on replies.  I'm over 1000 messages behind on reading
this list and probably will never catch up. :-)
-- 
Douglas Bates                            bates@stat.wisc.edu
Statistics Department                    608/262-2598
University of Wisconsin - Madison        http://www.stat.wisc.edu/~bates/

-- __--__-- 

Message: 58
Date: Fri, 04 Aug 2000 12:16:26 -0500
From: "Christopher J. Kucera" <ckucera@globalcrossing.com>
To: Douglas Bates <bates@stat.wisc.edu>
CC: zope@zope.org, Haonan Tan <haonan@stat.wisc.edu>
Subject: Re: [Zope] Moving an entire Zope site

Douglas Bates wrote:
> I will be doing a demo of a Zope-based query system at a conference
> soon and need to replicate my entire site on a stand-alone machine.
> Is there a convenient way to archive a Zope site and move it to another
> machine?

Just copy the Data.fs file.  (And any External Methods, etc, you might
be using, of course.)

-CJ

-- __--__-- 

Message: 59
Date: Fri, 04 Aug 2000 12:49:52 -0500
From: "Christopher J. Kucera" <ckucera@globalcrossing.com>
To: zope@zope.org
Subject: [Zope] Redirecting from Python?

Greetings!

I'm working on a Product, and I'd like to be able to do a RESPONSE.redirect()
from inside the Python code.  What I had was basically this:

<dtml-if "some number of conditions">
  View the page . . .
<dtml-else>
  <dtml-call "RESPONSE.redirect('blahblahblah')">
</dtml-if>

This works fine, but rather than having that sitting out in DTML-land,
I figured I could put the conditions in the Python code and simplify
the if statement, so all I'd have to do is:

<dtml-if someConditions>
  View the page . . .
</dtml-if>

The Python code I was hoping would accomplish this was:

def someConditions(self):
  if (some number of conditions):
    return 1
  else:
    self.REQUEST.RESPONSE.redirect('blahblahblah')

My problem is that the redirect just doesn't happen.  I've had this
function return values and the like, so I know it's parsing my conditions
correctly, and I can even do a "return self.REQUEST.RESPONSE.redirect" and
have the function returned back into my page, but it won't actually
redirect.

Any ideas?  Thanks in advance . . .

-CJ

-- __--__-- 

Message: 60
From: "Jonothan Farr" <jfarr@real.com>
To: "Chris Withers" <chrisw@nipltd.com>
Cc: "Bob Horvath" <bob@horvath.com>, <zope@zope.org>
Subject: Re: [Zope] acquisition vs. inheritance
Date: Fri, 4 Aug 2000 10:56:19 -0700
charset="iso-8859-1"

Dang! Just when I think I understand this acquisition thing. ;)

Sorry for the misinformation.

--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

----- Original Message -----
From: Chris Withers <chrisw@nipltd.com>
To: Jonothan Farr <jfarr@real.com>
Cc: Bob Horvath <bob@horvath.com>; <zope@zope.org>
Sent: Friday, August 04, 2000 1:54 AM
Subject: Re: [Zope] acquisition vs. inheritance


> Jonothan Farr wrote:
> >
> > > Is it possible to have just one top level object that refers to
> > > other objects that get overridden as you go into other folders?
> >
> > Acquisition works the other way around. You can create objects in subfolders
> > whose contents are overriden higher up. You can't have an object at the top
> > whose contents get overridden as you go down.
>
> Urm, I think wires are getting crossed here, so here's an example which
> may help (and which we use on most of our sites):
>
> index_html is a DTML method:
>
> <dtml-var standard_html_header>
> <dtml-var index.html>
> <dtml-var standard_html_footer>
>
> Now, in each folder we have DTML documents called index.html which
> actually contain the pages.
>
> So, we have one index_html and many index.html's.
>
> When someone does http://www.mysite.com/folder/
> This actually renders http://www.mysite.com/folder/index_html
> Then, index_html is acquired from the root.
> However, because index.html exists is /folder, it is that which is
> displayed.
>
> I hope this makes it a little clearer :S
>
> cheers,
>
> Chris
>
> PS:
> > Your solution was correct. Create another index_html in the subfolder,
>
> As long as index_html is a method, you only need one of them, in the
> root.
>
> > which
> > uses the 'contents' object in the subfolder,
>
> This will still happen if there's only one index_html
>


-- __--__-- 

Message: 61
From: "Jonothan Farr" <jfarr@real.com>
To: "Christopher J. Kucera" <ckucera@globalcrossing.com>, <zope@zope.org>
Subject: Re: [Zope] Redirecting from Python?
Date: Fri, 4 Aug 2000 10:58:02 -0700
charset="iso-8859-1"

Are you doing a dtml-var or dtml-call to call your external method? I believe
you need a dtml-call.
--jfarr

"Perl is worse than Python because people wanted it worse."
Larry Wall, 14 Oct 1998

----- Original Message -----
From: Christopher J. Kucera <ckucera@globalcrossing.com>
To: <zope@zope.org>
Sent: Friday, August 04, 2000 10:49 AM
Subject: [Zope] Redirecting from Python?


> Greetings!
>
> I'm working on a Product, and I'd like to be able to do a RESPONSE.redirect()
> from inside the Python code.  What I had was basically this:
>
> <dtml-if "some number of conditions">
>   View the page . . .
> <dtml-else>
>   <dtml-call "RESPONSE.redirect('blahblahblah')">
> </dtml-if>
>
> This works fine, but rather than having that sitting out in DTML-land,
> I figured I could put the conditions in the Python code and simplify
> the if statement, so all I'd have to do is:
>
> <dtml-if someConditions>
>   View the page . . .
> </dtml-if>
>
> The Python code I was hoping would accomplish this was:
>
> def someConditions(self):
>   if (some number of conditions):
>     return 1
>   else:
>     self.REQUEST.RESPONSE.redirect('blahblahblah')
>
> My problem is that the redirect just doesn't happen.  I've had this
> function return values and the like, so I know it's parsing my conditions
> correctly, and I can even do a "return self.REQUEST.RESPONSE.redirect" and
> have the function returned back into my page, but it won't actually
> redirect.
>
> Any ideas?  Thanks in advance . . .
>
> -CJ
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )
>


-- __--__-- 

Message: 62
Date: Fri, 04 Aug 2000 20:07:49 +0200
From: Marcin Kasperski <Marcin.Kasperski@softax.com.pl>
To: Zope List Submission <zope@zope.org>
Subject: [Zope] Powered by Zope in different colors?

Has anyone considered preparing some collection of differently colorized
and sized 'Powered by Zope' logos? Recently I wanted to put it on two
different web pages I created and in both situations I needed to change
it. And I am not completely satisfied with the results (you can see them
on http://www.softax.com.pl/prywatne/marcink/ and
http://www.softax.com.pl) - on first of them I finally removed nice Z
letter, on the second I am unhappy with the colors.


-- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl 
|
| You have the right to change your mind, to substitute functionality,  
| and to change priorities. (Ken Beck's Third Customer Right)           
|

-- __--__-- 

Message: 63
Date: Fri, 04 Aug 2000 13:23:19 -0500
From: "Christopher J. Kucera" <ckucera@globalcrossing.com>
To: Jonothan Farr <jfarr@real.com>
CC: zope@zope.org
Subject: Re: [Zope] Redirecting from Python?

Jonothan Farr wrote:
> Are you doing a dtml-var or dtml-call to call your external method? I believe
> you need a dtml-call.

I've tried both. :)  Other things I've tried:
  * Explicitly passing in the REQUEST object
  * Explicitly passing in the RESPONSE object
  * slapping a "return" in front of the call

Also, it's not really an external method . . .  It's a method
defined in the product's class.  (Perhaps that's significant somehow.)

Thanks for the info, though . . . :)
-CJ

-- __--__-- 

Message: 64
Date: Fri, 04 Aug 2000 14:30:50 -0400
From: Francisco Assis Rosa <rosa@dynamicdiagrams.com>
Organization: Dynamic Diagrams
To: zope@zope.org
Subject: [Zope] Zope with two platforms.

Hi all,

I have a question I would like to pose you.
We want to setup a environment where we have
a development platform and a staging platform
(two distinct machines with two distinct Zope
instances).  On the development platform we
want to develop Zope Products while on
the staging platform we want to, based on
these products, add content to our
zope database.

We would like to be able to have
new developments on products to be passed
from the development platform to the
staging platform and to have new
content to be passed from the staging
platform to the development platform.

Any ideas on how we could do that using
Zope as our application server ?
In particular how do you think we
could deal with allowing content editing
to proceed in parallel with development of
products ? Is there any available solution for
Zope databases integration ?
Also, how would you see schema versioning
How could we for instance deal with
objects generated from a product if the product
schema changes ?

Thank you in advance,

Francisco.


--
Francisco Assis Rosa                 email: rosa@dynamicdiagrams.com
Dynamic Diagrams                       tel: 401.331.2014 ext. 136
12 Basset St., Providence, RI 02903    fax: 401.331.2015




-- __--__-- 

Message: 65
Date: 4 Aug 2000 11:42:38 -0700
To: zope@zope.org
From: Stephen Nosal <stephennosal@e3mil.com>
Subject: Re: [Zope] compile ZPoPyDA product problems (continued)

> > > Exactly what message are you getting now?
> > 
> > I'm still getting the same error: At the python interactive prompt, the command import PoPy results in the following: ImportError: /usr/lib/python1.5/site-packages/PoPymodule.so: undefined symbol: PQfsize
> > 
> > Any additional help would be greatly appreciated.
> > 
> > - Steve
> > > > 
> > > > There is no reference to libpq.so, and I still receive the same error with import PoPy. I question if I need a libpq.o listing from ldconfig -v or not?
> > > > 
> > > > Thanks for your prompt replies and help. I really appreciate it.
> > 
> 
> Hokay..
> 
> go to /opt/pgsql/libs and execute
> strings libpq.so.2.1 | fgrep PQfsize
> 
> On my system this returns
> PQfsize
> PQfsize
> 
> If it returns similar on your system, then 
> 1) ld is still not finding the library.  This may perhaps be
> modified by rechecking ld.so.conf and rerunning ldconfig;
> or you can edit the start script of zope and insert something like
> export LD_LIBRARY_PATH=/opt/pgsql/lib
> 
> or, if not, 2)
> The pgsql library is badly compiled.  (get an update, or install
> your own postgres)

Okay, this is really starting to get to me.

strings libpq.so.2.1 |grep PQfsize
returns:
PQfsize
PQfsize

I checked ld.so.conf and reran ldconfig. I looks as though it knows where the libraries are. No luck.

I did an export LD_LIBRARY_PATH=/opt/pgsql/lib
export shows that it was recognized. Still No luck.

The PostgreSQL install was compiled from the 7.0.2 source. I'm beginning to think the problem is in the PoPy source - ZPyGreSQLDA works just fine, and I think it's using the same libraries.

I just downloaded the ZPoPy-1.3.3 tarball - still no luck yet, post to follow.

Thanks again for all of your help, and if you can thnk of anything else...

- Steve


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

-- __--__-- 

Message: 66
Date: 4 Aug 2000 11:51:33 -0700
To: fog@mixadlive.com
From: Stephen Nosal <stephennosal@e3mil.com>
Cc: zope@zope.org, pcm@mixadlive.com
Subject: [Zope] Re:[Zope]compile ZPoPyDA product problem (continued)

Federico -

I downloaded PoPy-1.3.3.tgz and I'm running into the following problems:

PostgreSQL was compiled from 7.0.2 source from ftp.postgresql.org

Run as root:
root@fastclose:/opt/src/PoPy > ./autogen.sh --with-postgres-libraries=/opt/pgsql/lib --with-postgres-includes=/opt/pgsql/include


Results:
>creating cache ./config.cache
>checking for python... /usr/bin/python
>checking python version... 1.5
>checking python installation prefix... /usr
>checking python installation exec_prefix... /usr
>checking definitions in Python library makefile... >done
>checking location of python library... >$(prefix)/lib/python1.5/site-packages
>checking location of python shared modules... >$(exec_prefix)/lib/python1.5/site-packages
>checking for PQconnectStart in -lpq... no
>configure: error: can't build without PostgreSQL >libraries
>
>Now type 'make' to compile PoPy python module.
>root@fastclose:/opt/src/PoPy > 

What am I missing? the libraries are in /opt/pgsql/lib, 
the includes in /opt/pgsql/include, posgresql is in /opt/pgsql/bin. I've modified ld.so.conf and run ldconfig, I've also run
export LD_LIBRARY_PATH=/opt/pgsql/lib
No luck.

Please give me a hand here. I've got ZPyGreSQLDA running, but I'm just failing with ZPoPyDA. I'm running a new install of Suse 6.4 Linux.

- Steve

Thanks.

On Wed, 02 August 2000, Federico Di Gregorio wrote:

> 
> hi,
> 
> > > I keep getting the same compile error -
> > > 
> > > gcc - shared PoPymodule.o -lpq -o PoPymodule.so
> > > /usr/i486-suse-linux/bin/ld: cannot find -lpq
> > 
> > -Find libpq.so on your machine.
> > -Edit the last? (going from memory) line of Makefile, adding
> >    -L/directory/that/holds/your_libpq 
> >  (just the directory, not the filename) right before -lpq
> 
> with the new versions of PoPy you can simply do:
> 
>     ./configure --with-postgres-libs=/directory/that/holds/your_libpq
> 
> ciao,
> federico
> 
> -- 
> Federico Di Gregorio
> MIXAD LIVE System Programmer                           fog@mixadlive.com
> Debian GNU/Linux Developer & Italian Press Contact        fog@debian.org
>   Debian. The best software from the best people [see above]
>                                       -- brought to you by One Line Spam
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> 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 )


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

-- __--__-- 

Message: 67
From: "Brad Clements" <bkc@murkworks.com>
Organization: MurkWorks, Incorporated.
To: zope@zope.org
Date: Fri, 4 Aug 2000 15:02:18 -0400
Subject: [Zope] Pluggable brains aren't seen by first-nnn in <dtml-in>?
Reply-to: bkc@murkworks.com

I have a ZSQL method that has an associated class. That class defines 
a method eventday(self) that returns just the date portion of a datetime 
value.

I want to be able to use  <dtml-if first-eventday> to print the date only 
when it changes.

However first-eventday is ALWAYS true, however when I print &dtml-
eventday; the output value is always the same for each row, so first-
eventday shouldn't be true on any row except the first.

I've been looking at dt_insv.py, I assume that eventday() isn't seen as a 
true variable in self.data, so ... 

Any suggestions for how I can easily simulate first-nnn for a datetime 
when I only want to key off the date portion?



Brad Clements,                bkc@murkworks.com   (315)268-1000
http://www.murkworks.com                          (315)268-9812 Fax
netmeeting: ils://ils.murkworks.com               AOL-IM: BKClements

-- __--__-- 

Message: 68
Date: Fri, 04 Aug 2000 14:02:42 -0500
From: "Christopher J. Kucera" <ckucera@globalcrossing.com>
To: Marcin Kasperski <Marcin.Kasperski@softax.com.pl>
CC: Zope List Submission <zope@zope.org>
Subject: Re: [Zope] Powered by Zope in different colors?

Marcin Kasperski wrote:
> Has anyone considered preparing some collection of differently colorized
> and sized 'Powered by Zope' logos? Recently I wanted to put it on two

I just created a few that would probably work well with your sites:

http://www.zope.org/Members/cyborg/icons

One is just a plain inverse of the standard, and the other translated
the color into blue . . .

Hope those help!

-CJ



-- __--__-- 

_______________________________________________
Zope maillist  -  Zope@zope.org



-- __--__-- --

End of Zope Digest



--__--__--

Message: 5
Reply-To: <drees@the-bridge.net>
From: "Steve Drees" <drees@the-bridge.net>
To: "Zope@Zope. Org" <zope@zope.org>
Subject: [Zope] Hey buddy can you spare some Zen?
Date: Fri, 4 Aug 2000 14:50:53 -0500
charset="iso-8859-1"

I have the following ZSQLMethod.

ID:
=============================================================
SQLAddRelease
=============================================================
Arguments:
=============================================================
releases.headline releases.author releases.email releases.body
=============================================================


Query Template:
=============================================================
INSERT INTO releases
	(author,
	email,
	body,
	timestamp,
	headline)
	VALUES
         (<dtml-sqlvar releases.author type=string>,
		<dtml-sqlvar releases.email type=string>,
		<dtml-sqlvar releases.body type=string>,
		<dtml-sqlvar ZopeTime type=string>,
		<dtml-sqlvar releases.headline type=string>);

SELECT currval('releases_id_seq') AS Article_ID;
==============================================================

When I test this method zope is smart enough to show me what Article_ID is.
I can't for the life of me figure out how to get that value into the
namespace.

(Database is Postgres.)


-steve
----
drees@the-bridge.net   http://www.the-bridge.net/~drees
"A problem well stated, is a problem half-solved." - C. Kettering


--__--__--

Message: 6
Reply-To: <drees@the-bridge.net>
From: "Steve Drees" <drees@the-bridge.net>
To: <drees@the-bridge.net>, "Zope@Zope. Org" <zope@zope.org>
Subject: RE: [Zope] Hey buddy can you spare some Zen?
Date: Fri, 4 Aug 2000 15:05:19 -0500
charset="iso-8859-1"

> I have the following ZSQLMethod.
>
> ID:
> =============================================================
> SQLAddRelease
> =============================================================
> Arguments:
> =============================================================
> releases.headline releases.author releases.email releases.body
> =============================================================
>
>
> Query Template:
> =============================================================
> INSERT INTO releases
> 	(author,
> 	email,
> 	body,
> 	timestamp,
> 	headline)
> 	VALUES
>          (<dtml-sqlvar releases.author type=string>,
> 		<dtml-sqlvar releases.email type=string>,
> 		<dtml-sqlvar releases.body type=string>,
> 		<dtml-sqlvar ZopeTime type=string>,
> 		<dtml-sqlvar releases.headline type=string>);
>
> SELECT currval('releases_id_seq') AS Article_ID;
> ==============================================================
>
> When I test this method zope is smart enough to show me what
> Article_ID is.
> I can't for the life of me figure out how to get that value into the
> namespace.
>
> (Database is Postgres.)


I found the answer.

http://zope.nipltd.com/public/lists/zope-archive.nsf/47ba74c812dbc5dd8025687
f0024bb5f/0249b255731f1729802568e700386b2f?OpenDocument&Highlight=0,currval

Special thanks to NIP for providing this wonderful resource!



--__--__--

Message: 7
Date: 4 Aug 2000 13:09:47 -0700
To: zope@zope.org
From: Stephen Nosal <stephennosal@e3mil.com>
Subject: Re: [Zope] compile ZPoPyDA product problems (continued)

> Sorry, but I had one guy complain about PoPY, and psql did not even run!
> He was connecting to a very old pg on a sun with a recent libpg on Linux.
> 
> What does ldd psql say?
> Crap, mine is statically linked.
> 
> OK, what is ldd /whatever_the_path_is/PoPy_...?
> 
root@fastclose:~ > ldd /usr/lib/python1.5/site-packages/PoPymodule.so 
	libc.so.6 => /lib/libc.so.6 (0x40010000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)

and

root@fastclose:~ > ldd /opt/pgsql/bin/psql 
	libpq.so.2.1 => /opt/pgsql/lib/libpq.so.2.1 (0x4001c000)
	libcrypt.so.1 => /lib/libcrypt.so.1 (0x4002a000)
	libnsl.so.1 => /lib/libnsl.so.1 (0x40057000)
	libdl.so.2 => /lib/libdl.so.2 (0x4006e000)
	libm.so.6 => /lib/libm.so.6 (0x40072000)
	libutil.so.1 => /lib/libutil.so.1 (0x4008f000)
	libreadline.so.4.0 => /lib/libreadline.so.4.0 (0x40093000)
	libncurses.so.5 => /lib/libncurses.so.5 (0x400b9000)
	libc.so.6 => /lib/libc.so.6 (0x40102000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

So it looks like PoPy isn't even looking for libpq.

> I am wonderig if PoPy is looking in a particular directory for libpq.
> 
> > 
> > - Steve
> > 
> > 
> > __________________________________________________________________
> > Get your Private, Anti-Spam, Free Email at http://e3mil.com 
> > and Step into a Friendly Universe!
> > 
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > 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 )
> > 


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!

--__--__--

Message: 8
To: zope@zope.org
Date: Fri, 04 Aug 2000 13:23:48 -0700
From: "Richard Bartels" <barteri@my-deja.com>
Reply-To: barteri@my-deja.com
Subject: [Zope] updating 2 catalogs
Organization: My Deja Email  (http://www.my-deja.com:80)

I have created a catalogaware zclass following the instructions in How-To: Creating a CatalogAware ZClass.  It works fine.  Except for this:

I have a catalog in root folder which indexes the whole site.  Then I have catalogs in each of 6 main subfolders beneath the root folder for searching only in these folders.  

I am able to update both catalogs, however, when deleting the object it only is deleted from one of the catalogs, namely, the one that was updated last.  Is it valid to update two catalogs in this way?  Or should I be going about this another way entirely?

Thanks much,

Rick Bartels
Bank of America


--== Sent via Deja.com http://www.deja.com/ ==--
Before you buy.

--__--__--

Message: 9
Date: Fri, 4 Aug 2000 23:22:21 +0200
To: "Christopher J. Kucera" <ckucera@globalcrossing.com>
Cc: zope@zope.org
Subject: Re: [Zope] Redirecting from Python?
zope@zope.org
From: cs@comlounge.net (Christian Scholz)

Hi!

On Fri, Aug 04, 2000 at 12:49:52PM -0500, Christopher J. Kucera wrote:


> I'm working on a Product, and I'd like to be able to do a RESPONSE.redirect()
> from inside the Python code.  What I had was basically this:

[...]

> def someConditions(self):
>   if (some number of conditions):
>     return 1
>   else:
>     self.REQUEST.RESPONSE.redirect('blahblahblah')

You actually should use something like this:

    raise 'Redirect','http://my.server/my/path'

-- christian

-- 
Christian Scholz                                               MrTopf@IRC
COM.lounge                                          http://comlounge.net/
communication & design                                   cs@comlounge.net

--__--__--

Message: 10
Date: Fri, 04 Aug 2000 16:29:36 -0500
From: "Christopher J. Kucera" <ckucera@globalcrossing.com>
To: Christian Scholz <cs@comlounge.net>
CC: zope@zope.org
Subject: Re: [Zope] Redirecting from Python?

Christian Scholz wrote:
> You actually should use something like this:
> 
>     raise 'Redirect','http://my.server/my/path'

Ah yes!  This works wonderfully.  Thanks much! :)

-CJ

--__--__--

Message: 11
From: "Spicklemire, Jerry" <Jerry.Spicklemire@IFLYATA.COM>
To: "'zope@zope.org'" <zope@zope.org>
Subject: [Zope] Less than helpful traceback
Date: Fri, 4 Aug 2000 16:27:59 -0500

Hi Folks,

Any thoughts about how to find out what the erro message 
(below) means? If I could just find out what exactly is 
not being found, it would help alot, but there's no hint.

Thanks for any thoughts,
Jerry S.

Zope has encountered an error while publishing this resource. 

Resource not found

Sorry, the requested Zope resource does not exist.
Check the URL and try again.

----------------------------------------------------------------------------
----

Troubleshooting Suggestions

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. 

Traceback (innermost last):
  File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
214, in publish_module
  File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
179, in publish
  File /l01/Zope-2.1.6-linux2-x86/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/Publish.py, line
151, in publish
  File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/BaseRequest.py, line
308, in traverse
  File /l01/Zope-2.1.6-linux2-x86/lib/python/OFS/Application.py, line 249,
in __bobo_traverse__
    (Object: ApplicationDefaultPermissions)
  File /l01/Zope-2.1.6-linux2-x86/lib/python/ZPublisher/HTTPResponse.py,
line 511, in notFoundError
NotFound: (see above)




--__--__--

Message: 12
Date: 4 Aug 2000 15:00:30 -0700
To: zope@zope.org
From: Stephen Nosal <stephennosal@e3mil.com>
Subject: Re: [Zope] compile ZPoPyDA product problems (continued)

> > So it looks like PoPy isn't even looking for libpq.
> 
> Agreed.  Something is definately wrong with the build!
> You might want to try a hand build.  My makefile generated this:
> 
> gcc -fPIC  -g -O2 -I/usr/include/python1.5 -I/usr/lib/python1.5/config -DHAVE_CO
> NFIG_H=1  -DHAVE_POSTGRESQL_LIBPQ_FE_H=1 -DHAVE_POSTGRESQL_LIBPQ_LIBPQ_FS_H=1  -
> c ./PoPymodule.c
> gcc -shared -lc  PoPymodule.o  -lpq -o PoPymodule.so
> 
> You might 
> export LD_LIBRARY_PATH=/opt/psql/lib
> 
> and then execute those commands.  Maybe this will fix your PoPY....

I'll give this a shot when I get back to the office Monday - Thanks for all of your help.

- Steve


__________________________________________________________________
Get your Private, Anti-Spam, Free Email at http://e3mil.com 
and Step into a Friendly Universe!



--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



--__--__----

End of Zope Digest