[Zope] learning zope for the first time

rahul nainwal nainwal@usa.net
22 Jun 2001 10:30:10 PKT


hi all,

i am very new to Zope and just dowloaded the stuff from the site. I have =
basic
experinces in HTML and Javascript and still new the programming. can some=
one
guide me as to how about learning ZOPE.

zope-request@zope.org wrote:
Send Zope mailing list submissions to
	zope@zope.org

To subscribe or unsubscribe via the World Wide 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. Re: 2GB Limit & Best Zope Platform (Reinoud van Leeuwen)
   2. CST, non-undoing Berkeley Storage, and Versions (Randall F. Kern)
   3. RE: Namespace error in MIME/Sendmail (Michel Pelletier)
   4. CMF Dogbowl: Presentation Notes, Slides, etc. (Jon Edwards)
   5. loadsite : how to detect object or attribute exist? (Sin Hang Kin)
   6. RE: Namespace error in MIME/Sendmail (Dunigan, Craig)
   7. Apache Virtual Host problem (Chris Bruce)
   8. RE: [Zope-dev] Fishbowl not problem centered enough (Steve Drees)
   9. RE: How do I export objects with the change history (Jay, Dylan)
  10. Need more enlightenment on traverse hook and security (Dirksen)
  11. What's Traversable? (Dirksen)
  12. Re: CST, non-undoing Berkeley Storage, and Versions (Chris McDonoug=
h)
  13. Re: Apache Virtual Host problem (Evan Simpson)
  14. Re: Apache + ZServer: Excluding some URLS from a ProxyPass (Evan
Simpson)
  15. Re: INSTANCE_HOME set up help (Evan Simpson)
  16. roles & permissions newbie question (Albert Ting)
  17. Re: Apache Virtual Host problem (Chris Bruce)
  18. RE: Apache Virtual Host problem (Tom Cameron)
  19. Storing list as object attributes (kent sin)
  20. cache management (Fritz Mesedilla)
  21. Problems installing Zope Perl (Gianluca Pacchioni)
  22. Newest Documents Listing (Stefan Radke)
  23. Re: 2GB Limit & Best Zope Platform (=3D?ISO-8859-1?Q?Martin_Sk=3DF8=
tt?=3D)
  24. Re: Newest Documents Listing (Geir B=E6kholt)
  25. Re: loadsite : how to detect object or attribute exist? (Oleg
Broytmann)
  26. <img> and <a> tags in squishdot posts? (Mat Braddy)
  27. Re: Newest Documents Listing (Stefan Radke)
  28. Finding unique objects in a ZCatalog returned list (Mike Groves)
  29. database connection (Fritz Mesedilla)
  30. Re: Finding unique objects in a ZCatalog returned list (Oleg Broytm=
ann)
  31. Re: database connection (Phil Harris)
  32. Re: Finding unique objects in a ZCatalog returned list (Oleg Broytm=
ann)
  33. RE: database connection (Rene Pijlman)
  34. html entities for umlauts (bdorn@vup.at)
  35. RE: Finding unique objects in a ZCatalog returned list (Mike Groves=
)
  36. RE: database connection (Fritz Mesedilla)
  37. RE: Finding unique objects in a ZCatalog returned list (Oleg Broytm=
ann)
  38. RE: database connection (Fritz Mesedilla)
  39. How do I change unauthorized access error message (Arnulf Heimsbakk=
)
  40. RE: database connection (Rene Pijlman)
  41. Re: Newest Documents Listing (Geir B=E6kholt)
  42. zope and python 2.0? (Alexander Tuchacek)
  43. Re: zope and python 2.0? (Oleg Broytmann)
  44. Re: zope and python 2.0? (Alexander Tuchacek)
  45. Re: ZCatalog problems (Jan Lentfer)

--__--__--

Message: 1
From: reinoud@xs4all.nl (Reinoud van Leeuwen)
To: =3D?ISO-8859-1?Q?Martin_Sk=3DF8tt?=3D <mskott@image.dk>
Cc: zope@zope.org
Subject: Re: [Zope] 2GB Limit & Best Zope Platform
Date: Wed, 20 Jun 2001 21:35:17 GMT
Organization: Not organized in any way
Reply-To: reinoud@xs4all.nl

On Wed, 20 Jun 2001 21:10:40 +0200 (CEST), you wrote:

>I have expirienced 2GB problems on W2K machines with Zope 2.2.2 using =3D=

the
>binary package from zope.org. I don't know if the problem is still there=

>in later versions, but it is definately there in 2.2.2.=3D20
>I have some very pleasant expiriences with Zope on both Solaris and =3D
Linux
>(well on Windows too but that doesn't count :-)

Well I am sorry that you have problems. (My Zope is running nicely on
=3D46reeBSD by the way), but the 2 Gb is not a *windows NT NTFS* problem.=

It might be in the Windows port of Zope or in a general Zope piece.
But NTFS files *can* be 4 TB

>Martin Sk=3DF8tt
>mskott@image.dk
>
>On Mon, 18 Jun 2001, Reinoud van Leeuwen wrote:
>
>> On Mon, 18 Jun 2001 13:02:22 +0200 (MEST), you wrote:
>>=3D20
>> >Hi
>> >
>> >I'm piloting Zope for our company on a small Intel WS running under =3D=

Widows
>> >NT (4.0 & Zope 2.3.2). Now I have to prepare the production server =3D=

(medium
>> >sized, ~500Users, ~25 concurrent users). My question is, which =3D
server/OS is the
>> >best to use. Our provider is inclined that we use an Sun / Solaris =3D=

server. Is
>> >there a reason not to use Sun/Solaris?
>> >
>> >What about the 2Gb filesize limitation on some OS? Does that apply to=
=3D
 NT /
>> >Solaris / Linux /FreeBSD (or is that problem solved with Zope 2.4.x ?=
=3D
 ;-) ).
>>=3D20
>> The file size limit on NT is 4 TB (since NT 3.51 I think)
>>=3D20
>> --=3D20
>> __________________________________________________
>> "Nothing is as subjective as reality"
>> Reinoud van Leeuwen       reinoud@xs4all.nl
>> http://www.xs4all.nl/~reinoud
>> __________________________________________________
>>=3D20
>> _______________________________________________
>> Zope maillist  -  Zope@zope.org
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -=3D20
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
>>=3D20
>

--=3D20
__________________________________________________
"Nothing is as subjective as reality"
Reinoud van Leeuwen       reinoud@xs4all.nl
http://www.xs4all.nl/~reinoud
__________________________________________________


--__--__--

Message: 2
Date: Wed, 20 Jun 2001 15:56:28 -0700
From: "Randall F. Kern" <randy@spoke.net>
To: <zope@zope.org>
Subject: [Zope] CST, non-undoing Berkeley Storage, and Versions

When running Core Session Tracking with a Session Data Container in an
Externally Mounted non-undoing storage, Versions stop working.

If you join a version, you will get this error when committing a
transaction that used CST:

Error Type: Unsupported
Error Value: Versions aren't supported


Is there anyway this could be fixed?
-Randy


--__--__--

Message: 3
Date: Wed, 20 Jun 2001 15:53:28 -0700 (PDT)
From: Michel Pelletier <michel@digicool.com>
To: "Dunigan, Craig" <craig.dunigan@esker.com>
cc: 'Eric Balasbas' <ebalasba@bway.net>, "'zope@zope.org'" <zope@zope.org=
>
Subject: RE: [Zope] Namespace error in MIME/Sendmail


Don't use REQUEST.resolve_url.  It's depricated and it was pretty dumb to=

begin with.  Use restrictedTraverse, which is documented in the online
help system under the 'ObjectManagerItem' API.

-Michel

On Wed, 20 Jun 2001, Dunigan, Craig wrote:

> Nope, same result with Methods instead of Documents.  =

> =

> Craig Dunigan
> Web Programmer
> Esker Software - Extending the Reach of Information
> mailto:craig.dunigan@esker.com
> Ph. 608.273.6000
> Fax 608.273.8227
> http://www.esker.com
> =

> > -----Original Message-----
> > From: Dunigan, Craig [mailto:craig.dunigan@esker.com]
> > Sent: Wednesday, June 20, 2001 2:57 PM
> > To: 'Eric Balasbas'; 'zope@zope.org'
> > Subject: RE: [Zope] Namespace error in MIME/Sendmail
> > =

> > =

> > There's no compelling reason, so it's worth a try.  I'll see =

> > what happens.
> > =

> > Craig
> > =

> > > -----Original Message-----
> > > From: Eric Balasbas [mailto:ebalasba@bway.net]
> > > Sent: Wednesday, June 20, 2001 2:52 PM
> > > To: Dunigan, Craig
> > > Cc: 'zope@zope.org'
> > > Subject: Re: [Zope] Namespace error in MIME/Sendmail
> > > =

> > > =

> > > =

> > > Is there a reason that SendMail and MailSender are DTML =

> > > Documents? Many
> > > namespace problems are solved by using DTML Methods instead, =

> > > although I
> > > cannot say for sure that this is the problem here.
> > > =

> > > Eric Balasbas
> > > Senior Developer
> > > eric@virtosi.com
> > > =

> > > http://www.virtosi.com/
> > > Virtosi Ltd.
> > > Design -- Branding -- Zope
> > > =

> > > =

> > > On Wed, 20 Jun 2001, Dunigan, Craig wrote:
> > > =

> > > > I hit one of those namespace/acquisition kind of things =

> > > that let me know I'm
> > > > a long way from achieving the Zope Zen.  I want to give =

> > > users an icon next
> > <snipped the rest>
> > =

> > _______________________________________________
> > 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: 4
From: "Jon Edwards" <jon@pcgs.freeserve.co.uk>
To: "Zope - mailing list" <zope@zope.org>
Cc: "Tres Seaver" <tseaver@digicool.com>
Date: Thu, 21 Jun 2001 00:17:45 +0100
Subject: [Zope] CMF Dogbowl: Presentation Notes, Slides, etc.

Tres has set up a page on the CMF Dogbowl to collect together Presentatio=
n
Notes, Slides, etc on Content Management, Zope and/or the CMF.

While he's distracted by the CMF 1.1 release and his vacation plans, I've=

sneakily added links to three that I know of. Anyone know of any others t=
hat
are available on the net?

Cheers, Jon



--__--__--

Message: 5
From: "Sin Hang Kin" <kentsin@macau.ctm.net>
To: "Zope Admin list" <zope@zope.org>
Date: Thu, 21 Jun 2001 07:57:09 +0800
Subject: [Zope] loadsite : how to detect object or attribute exist?

I want to modify loadsite to upload some database data to zope. However, =
I
would like to detect the existing of the existing DTMLDocument and its
attribute to prevent conflicts.

How could I do that?


Rgs,

Kent Sin
---------------------------------
kentsin.weblogs.com
kentsin.imeme.net



--__--__--

Message: 6
From: "Dunigan, Craig" <craig.dunigan@esker.com>
To: 'Michel Pelletier' <michel@digicool.com>
Cc: 'Eric Balasbas' <ebalasba@bway.net>, "'zope@zope.org'" <zope@zope.org=
>
Subject: RE: [Zope] Namespace error in MIME/Sendmail
Date: Wed, 20 Jun 2001 19:15:38 -0500

I expected that, Michel.  ;)  Although I'd already tried it without succe=
ss,
your reply at least nudged me to poke around a bit more, and I discovered=

that it is the .read() that causes the difficulty.

This:
<dtml-boundary type=3Dapplication/octet-stream disposition=3Dattachment
encode=3Dbase64><dtml-var
expr=3D"restrictedTraverse(SendDoc).read()"></dtml-mime>
</dtml-sendmail>

fails with an attribute error on the read().  I got the read() syntax fro=
m
the Zope book =

http://www.zope.org/Members/michel/ZB/AdvDTML.dtml and an archived list
message http://lists.zope.org/pipermail/zope/2000-August/116944.html.   I=
t
appears to be incorrect for this case, though I'll be damned if I know wh=
y.

For the record, REQUEST.resolve_url still failed with a namespace error w=
hen
I removed the read().  You've convinced me, I'll use restrictedTraverse f=
rom
now on!  :-)


> -----Original Message-----
> From: Michel Pelletier [mailto:michel@digicool.com]
> Sent: Wednesday, June 20, 2001 5:53 PM
> To: Dunigan, Craig
> Cc: 'Eric Balasbas'; 'zope@zope.org'
> Subject: RE: [Zope] Namespace error in MIME/Sendmail
> =

> =

> =

> Don't use REQUEST.resolve_url.  It's depricated and it was =

> pretty dumb to
> begin with.  Use restrictedTraverse, which is documented in the online
> help system under the 'ObjectManagerItem' API.
> =

> -Michel
> =

> On Wed, 20 Jun 2001, Dunigan, Craig wrote:
> =

> > Nope, same result with Methods instead of Documents.  =

> > =

> > Craig Dunigan
> > Web Programmer
> > Esker Software - Extending the Reach of Information
> > mailto:craig.dunigan@esker.com
> > Ph. 608.273.6000
> > Fax 608.273.8227
> > http://www.esker.com
> > =

> > > -----Original Message-----
> > > From: Dunigan, Craig [mailto:craig.dunigan@esker.com]
> > > Sent: Wednesday, June 20, 2001 2:57 PM
> > > To: 'Eric Balasbas'; 'zope@zope.org'
> > > Subject: RE: [Zope] Namespace error in MIME/Sendmail
> > > =

> > > =

> > > There's no compelling reason, so it's worth a try.  I'll see =

> > > what happens.
> > > =

> > > Craig
> > > =

> > > > -----Original Message-----
> > > > From: Eric Balasbas [mailto:ebalasba@bway.net]
> > > > Sent: Wednesday, June 20, 2001 2:52 PM
> > > > To: Dunigan, Craig
> > > > Cc: 'zope@zope.org'
> > > > Subject: Re: [Zope] Namespace error in MIME/Sendmail
> > > > =

> > > > =

> > > > =

> > > > Is there a reason that SendMail and MailSender are DTML =

> > > > Documents? Many
> > > > namespace problems are solved by using DTML Methods instead, =

> > > > although I
> > > > cannot say for sure that this is the problem here.
> > > > =

> > > > Eric Balasbas
> > > > Senior Developer
> > > > eric@virtosi.com
> > > > =

> > > > http://www.virtosi.com/
> > > > Virtosi Ltd.
> > > > Design -- Branding -- Zope
> > > > =

> > > > =

> > > > On Wed, 20 Jun 2001, Dunigan, Craig wrote:
> > > > =

> > > > > I hit one of those namespace/acquisition kind of things =

> > > > that let me know I'm
> > > > > a long way from achieving the Zope Zen.  I want to give =

> > > > users an icon next
> > > <snipped the rest>
> > > =

> > > _______________________________________________
> > > 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: 7
Date: Wed, 20 Jun 2001 17:28:23 -0700 (PDT)
From: Chris Bruce <chrisabruce@yahoo.com>
To: zope@zope.org
Subject: [Zope] Apache Virtual Host problem

I am using the VirtualHost monster.  Everything is working except when
I try and go to siteroot: http://www.chrisbruce.com the index_html file
is not showing up.  Instead, apache is saying I don't have permission
to view "/".  I am not sure why this is happening, any ideas?


Regards,


Chris Bruce

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


--__--__--

Message: 8
From: "Steve Drees" <drees@the-bridge.net>
To: "Zope@Zope. Org" <zope@zope.org>
Date: Wed, 20 Jun 2001 19:49:34 -0500
Subject: [Zope] RE: [Zope-dev] Fishbowl not problem centered enough

> consultitive process and have some focus on what is really trying to be=

> achieved. I aggree that the changes to Zope have been way to slow but t=
hen
> again Zope is going in 5 directions at once which is not a good
> idea esp if
> none of those ways work togeather.


Too slow? I'm having enough trouble keeping up with the changes the way i=
t
is.
I suspect that what is too slow is changes in the direction *you* want. A=
s
for me,
I am very happy with the speed at which DC implements change. Especially =
the
speed
at which they come out with security fixes.




--__--__--

Message: 9
From: "Jay, Dylan" <djay@avaya.com>
To: "'Dieter Maurer'" <dieter@handshake.de>
Cc: "'zope@zope.org'" <zope@zope.org>
Subject: RE: [Zope] How do I export objects with the change history
Date: Thu, 21 Jun 2001 11:28:54 +1000

> -----Original Message-----
> From: Dieter Maurer [mailto:dieter@handshake.de]
> Sent: Thursday, 21 June 2001 3:11 AM
> To: Jay, Dylan
> Cc: 'zope@zope.org'
> Subject: Re: [Zope] How do I export objects with the change history
> =

> =

> Jay, Dylan writes:
>  > I have a wikiweb that has all the change history since its =

> inception
>  > available to users. I want to export this to a new Zope =

> installation without
>  > losing this information. How do I do this?
> Not sure, whether you can follow this line. But it would probably
> be the easiest way:
> =

>    You start with your old "Data.fs" in the new side and there,
>    you delete everything you do not like.

No can do. I have some sort of corruption in the ODB that becomes apparen=
t
when I try upgrading (see trace below). On top of this I don't want to dr=
ag
around the history of everything else in the ZODB. How hard would a
selective pack operation be? ie pack everything but one folder

 =

> An alternative may be an external Python script
> that uses XML-RPC to fetch the versions of an object
> in the source Zope and create/update them in the destination
> Zope. It would need an External Method in the destination
> to tweak modification time and friends.
> Not too easy...

hmm, sounds complicated. Actually sounds like ZODBReplication or
synchronization. Can you outline in a little more detail how you would do=

this? How do you tweak the modification time etc?


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

http://azonia.auslabs.avaya.com:9080/manage_main =


gives

<p>
 Error type:  SystemError<br>
 Error value: Failed to import class Guard from module
Products.PythonMethod.zbytecodehacks.VSExec
</p>

<p><a href=3D"http://www.zope.org/Credits" target=3D"_top"><img
src=3D"http://azonia.auslabs.avaya.com:9080/p_/ZopeButton" width=3D"115"
height=3D"50" border=3D"0" alt=3D"Powered by Zope" /></a></p>
</BODY></HTML>
<PRE>
Traceback (innermost last):
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 223, in
publish_module
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File D:\Zope\AUSLAB~1\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\mapply.py, line 160, in map=
ply
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\ZPublisher\Publish.py, line 112, in
call_object
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\Shared\DC\Scripts\Bindings.py, line 32=
4,
in __call__
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\Shared\DC\Scripts\Bindings.py, line 35=
4,
in _bindAndExec
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\App\special_dtml.py, line 236, in _exe=
c
    (Object: manage_main)
  File D:\Zope\AUSLAB~1\lib\python\DocumentTemplate\DT_In.py, line 670, i=
n
renderwob
    (Object: objectItems)
  File D:\Zope\AUSLAB~1\lib\python\DocumentTemplate\DT_In.py, line 765, i=
n
sort_sequence
    (Object: objectItems)
  File D:\Zope\AUSLAB~1\lib\python\ZODB\Connection.py, line 533, in setst=
ate
SystemError: (see above)



--__--__--

Message: 10
Date: Wed, 20 Jun 2001 19:00:15 -0700 (PDT)
From: Dirksen <dirksen_lau@yahoo.com>
To: zope@zope.org
Subject: [Zope] Need more enlightenment on traverse hook and security

Hi, =


Thank you, Toby Dickenson and Dieter Maurer, for your tips on my problem.=
 It's
cracked
instantly! However, as a layman of python and Zope, I couldn't figure out=
 the
meaning of
"MyObj(name).__of__(self)". What is '__of__' funtion? I can dig very litt=
le
information
about '__of__' from python's website. What's the difference between
'Acquisition.Implicit' and 'Acquisition.Explicit'? And why these two step=
s are
required
to solve my problem? Look forward to your enlightenment.

Cheers
Dirksen


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


--__--__--

Message: 11
Date: Wed, 20 Jun 2001 19:06:06 -0700 (PDT)
From: Dirksen <dirksen_lau@yahoo.com>
To: zope@zope.org
Subject: [Zope] What's Traversable?

Hi,

I can see that ObjectManager subclassing Traversable. The traverse hook o=
f my
class works
no matter if it subclasses Traversable. What's the use of it?

Cheers
Dirksen

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


--__--__--

Message: 12
Date: Wed, 20 Jun 2001 19:24:07 -0400
From: Chris McDonough <chrism@digicool.com>
To: "Randall F. Kern" <randy@spoke.net>
Cc: zope@zope.org
Subject: Re: [Zope] CST, non-undoing Berkeley Storage, and Versions

I think the answer depends on which storage you're using to hold the
external data container, and might be "dont use that storage".

I actually have a suspicion that CST has nothing to do with it, and that
if the mounted external database was (for example) a FileStorage, that
this error might never happen.

But that poses a problem, because to my knowledge, there are no
version-aware but non-unoing storages, of course.

Sigh.  The answer is... "not practically", I believe.

- C

"Randall F. Kern" wrote:
> =

> When running Core Session Tracking with a Session Data Container in an
> Externally Mounted non-undoing storage, Versions stop working.
> =

> If you join a version, you will get this error when committing a
> transaction that used CST:
> =

> Error Type: Unsupported
> Error Value: Versions aren't supported
> =

> Is there anyway this could be fixed?
> -Randy
> =

> _______________________________________________
> 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: 13
From: "Evan Simpson" <evan@4-am.com>
To: "Chris Bruce" <chrisabruce@yahoo.com>, <zope@zope.org>
Subject: Re: [Zope] Apache Virtual Host problem
Date: Thu, 21 Jun 2001 00:11:33 -0400
Organization: 4AM Productions, Inc.

From: "Chris Bruce" <chrisabruce@yahoo.com>
> I am using the VirtualHost monster.  Everything is working except when
> I try and go to siteroot: http://www.chrisbruce.com the index_html file=

> is not showing up.  Instead, apache is saying I don't have permission
> to view "/".  I am not sure why this is happening, any ideas?

Sounds like a slightly malformed RewriteRule.  Can you post it?

Cheers,

Evan @ digicool & 4-am



--__--__--

Message: 14
From: "Evan Simpson" <evan@4-am.com>
To: <petehern@yahoo.com>, <zope@zope.org>
Subject: Re: [Zope] Apache + ZServer: Excluding some URLS from a ProxyPas=
s
Date: Thu, 21 Jun 2001 00:13:54 -0400
Organization: 4AM Productions, Inc.

From: "Peter Hernberg" <petehern@yahoo.com>
> ProxyPass / http://www.oursite.com:9673/
> ProxyPassReverse / http://www.oursite.com:9673/
>
> But somehow I'd like http://www.oursite.com/survey.cgi to bypass this r=
ule
> untouched.

I suspect that you'll need RewriteRules.  Something like:

RewriteRule /survey.cgi - [L]
RewriteRule /(.*) http://www.oursite.com:9673/$1 [P,L]

The ProxyPassReverse *may* still do its job, but I recommend a
VirtualHostMonster anyway.

Cheers,

Evan @ digicool & 4-am



--__--__--

Message: 15
From: "Evan Simpson" <evan@4-am.com>
To: "Norman Khine" <khine@bmpublications.co.uk>,
	"Zope Mailing List" <zope@zope.org>
Subject: Re: [Zope] INSTANCE_HOME set up help
Date: Thu, 21 Jun 2001 00:17:04 -0400
Organization: 4AM Productions, Inc.

From: "Norman Khine" <khine@bmpublications.co.uk>
> Hello I am still ;^( trying to configure the instance home to work
> correctly. This is the steps I have done, please, correct me

If it isn't a typo in your post, the following certainly needs to be
corrected:

> INST_HOME=3D`cd $reldir; pwd`

=2E..should be INSTANCE_HOME.

This may also need to be edited, to correct paths:

> /usr/local/www/vhosts/dsuk/cgi-bin/Zope.cgi

The error looks like a Python configuration problem.  Can you start Pytho=
n
from the command line and import os?

> 'import site' failed; use -v for traceback
> Traceback (most recent call last):
>   File "/usr/home/dsuk/Zope/SoftwareHome/z2.py", line 296, in ?
>     import os, sys, getopt, string
> ImportError: No module named os

> Q. The custom_zodb.py should this be in the InstanceHome?
> Q. If so, what should be the contents of this file

Not unless you're going to use ZEO, in which case see the ZEO installatio=
n
instructions.

Cheers,

Evan @ digicool & 4-am



--__--__--

Message: 16
Date: Wed, 20 Jun 2001 22:47:54 -0700
From: Albert Ting <alt@sonic.net>
To: zope@zope.org
Subject: [Zope] roles & permissions newbie question


I know this has been done, but I don't know how to do it myself.  I'm
trying to write a html page where some parts gets displayed only if the
user has logged in.  If the person is not logged in, it should display so=
me
generic text, with perhaps a "login" button somewhere.  I'm also trying t=
o
do this from an external method.

For one thing, I'm not sure if I need to add another role or another
permission.  I can't seem to be able to add another permission, I only se=
e
the ability to add a user role.  So I tried that, and used
SecurityManager.validate().  But it forces you to login, whereas I want a=

more passive approach.

Thanks,
Albert


--__--__--

Message: 17
Date: Wed, 20 Jun 2001 22:55:50 -0700 (PDT)
From: Chris Bruce <chrisabruce@yahoo.com>
Subject: Re: [Zope] Apache Virtual Host problem
To: Evan Simpson <evan@4-am.com>, zope@zope.org

<VirtualHost 216.200.138.163>
	ServerAdmin me@chrisbruce.com
	ServerName www.chrisbruce.com
DocumentRoot /home/www/www.chrisbruce.com/html
	ErrorLog /home/www/www.chrisbruce.com/logs/error_log
	ScriptAlias /cgi-bin/ /home/www/www.chrisbruce.com/cgi-bin/
	Options FollowSymLinks Includes Indexes SymLinksIfOwnerMatch
        	SSLDisable
	<IfModule mod_rewrite.c>
		RewriteEngine On
		RewriteLog "/home/www/www.chrisbruce.com/logs/rewrite_log"
  		RewriteLogLevel 9
  		RewriteRule ^/local/ - [L]
		RewriteCond %{HTTP:Authorization}  ^(.*)
  		RewriteRule ^(.*)
http://localhost:8181/VirtualHostBase/http/www.chrisbruce.com:80/chrisbru=
ce/VirtualHostRoot/$1
[P]
	</IfModule>
</VirtualHost>


--- Evan Simpson <evan@4-am.com> wrote:
> From: "Chris Bruce" <chrisabruce@yahoo.com>
> > I am using the VirtualHost monster.  Everything is working except
> when
> > I try and go to siteroot: http://www.chrisbruce.com the index_html
> file
> > is not showing up.  Instead, apache is saying I don't have
> permission
> > to view "/".  I am not sure why this is happening, any ideas?
> =

> Sounds like a slightly malformed RewriteRule.  Can you post it?
> =

> Cheers,
> =

> Evan @ digicool & 4-am
> =



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


--__--__--

Message: 18
Reply-To: <tom@cameron.to>
From: "Tom Cameron" <tom@cameron.to>
To: "Chris Bruce" <chrisabruce@yahoo.com>,
	"Evan Simpson" <evan@4-am.com>,
	<zope@zope.org>
Subject: RE: [Zope] Apache Virtual Host problem
Date: Thu, 21 Jun 2001 16:06:06 +1000

Try without this line
=3D> 		RewriteCond %{HTTP:Authorization}  ^(.*)

I dont use it for rewriting with [p]

Tom

=3D> -----Original Message-----
=3D> From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of C=
hris
=3D> Bruce
=3D> Sent: Thursday, 21 June 2001 3:56 PM
=3D> To: Evan Simpson; zope@zope.org
=3D> Subject: Re: [Zope] Apache Virtual Host problem
=3D> =

=3D> =

=3D> <VirtualHost 216.200.138.163>
=3D> 	ServerAdmin me@chrisbruce.com
=3D> 	ServerName www.chrisbruce.com
=3D> DocumentRoot /home/www/www.chrisbruce.com/html
=3D> 	ErrorLog /home/www/www.chrisbruce.com/logs/error_log
=3D> 	ScriptAlias /cgi-bin/ /home/www/www.chrisbruce.com/cgi-bin/
=3D> 	Options FollowSymLinks Includes Indexes SymLinksIfOwnerMatch
=3D>         	SSLDisable
=3D> 	<IfModule mod_rewrite.c>
=3D> 		RewriteEngine On
=3D> 		RewriteLog "/home/www/www.chrisbruce.com/logs/rewrite_log"
=3D>   		RewriteLogLevel 9
=3D>   		RewriteRule ^/local/ - [L]
=3D> 		RewriteCond %{HTTP:Authorization}  ^(.*)
=3D>   		RewriteRule ^(.*)
=3D> http://localhost:8181/VirtualHostBase/http/www.chrisbruce.com:80/
chrisbruce/VirtualHostRoot/$1
=3D> [P]
=3D> 	</IfModule>
=3D> </VirtualHost>
=3D> =

=3D> =

=3D> --- Evan Simpson <evan@4-am.com> wrote:
=3D> > From: "Chris Bruce" <chrisabruce@yahoo.com>
=3D> > > I am using the VirtualHost monster.  Everything is working excep=
t
=3D> > when
=3D> > > I try and go to siteroot: http://www.chrisbruce.com the index_ht=
ml
=3D> > file
=3D> > > is not showing up.  Instead, apache is saying I don't have
=3D> > permission
=3D> > > to view "/".  I am not sure why this is happening, any ideas?
=3D> > =

=3D> > Sounds like a slightly malformed RewriteRule.  Can you post it?
=3D> > =

=3D> > Cheers,
=3D> > =

=3D> > Evan @ digicool & 4-am
=3D> > =

=3D> =

=3D> =

=3D> __________________________________________________
=3D> Do You Yahoo!?
=3D> Get personalized email addresses from Yahoo! Mail
=3D> http://personal.mail.yahoo.com/
=3D> =

=3D> _______________________________________________
=3D> Zope maillist  -  Zope@zope.org
=3D> http://lists.zope.org/mailman/listinfo/zope
=3D> **   No cross posts or HTML encoding!  **
=3D> (Related lists - =

=3D>  http://lists.zope.org/mailman/listinfo/zope-announce
=3D>  http://lists.zope.org/mailman/listinfo/zope-dev )
=3D> =



--__--__--

Message: 19
Date: Thu, 21 Jun 2001 00:27:04 -0700 (PDT)
From: kent sin <kentsin@yahoo.com>
To: zope@zope.org
Subject: [Zope] Storing list as object attributes

Is it possible to store a list as attributes to DTML
Document? =


I have an application which I need to store a list of
0 to 7 persons who sign the letters. Because the name
take various forms in various place and they contain
both chinese name and western forms which I would like
to have store the reference instead of the name in the
list.

I intend to have persons as DTML Document with
attributes representing their names. =


In the letter object, (a DTML document also), I would
like to have an attribute to store the list who sign
it.

How can I do this? =


Rgs,

Kent Sin

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/


--__--__--

Message: 20
Reply-To: <fritz.mesedilla@summitmedia.com.ph>
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
To: <zope@zope.org>
Date: Thu, 21 Jun 2001 15:43:05 +0800
Subject: [Zope] cache management

This is a multi-part message in MIME format.

------=3D_NextPart_000_0121_01C0FA68.DD222880
Content-Type: text/plain;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: 7bit

[Zope] Storing list as object attributesmy swap file is always reaching i=
ts
1GB limit with zope. is there a way to fix this?
is the undo option related to this?

thanks.
Fritz Mesedilla
Systems Administrator

Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

Palm Pilot Software: TVSked - Download from the link below
-------------------------------------------------------------------------=
---
http://contemplation401.tripod.com           +Basta Ikaw Lord

  -----Original Message-----
  From: kent sin [mailto:kentsin@yahoo.com]
  Sent: Thursday, June 21, 2001 3:27 PM
  To: zope@zope.org
  Subject: [Zope] Storing list as object attributes


  Is it possible to store a list as attributes to DTML
  Document?

  I have an application which I need to store a list of
  0 to 7 persons who sign the letters. Because the name
  take various forms in various place and they contain
  both chinese name and western forms which I would like
  to have store the reference instead of the name in the
  list.

  I intend to have persons as DTML Document with
  attributes representing their names.

  In the letter object, (a DTML document also), I would
  like to have an attribute to store the list who sign
  it.

  How can I do this?

  Rgs,

  Kent Sin

  __________________________________________________
  Do You Yahoo!?
  Get personalized email addresses from Yahoo! Mail
  http://personal.mail.yahoo.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 )


------=3D_NextPart_000_0121_01C0FA68.DD222880
Content-Type: text/html;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[Zope] Storing list as object attributes</TITLE>
<META content=3D3D"text/html; charset=3D3Diso-8859-1" =3D
http-equiv=3D3DContent-Type>
<META content=3D3D"MSHTML 5.00.2920.0" name=3D3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN =3D
class=3D3D155034107-21062001>my=3D20
swap file is always reaching its 1GB limit with zope. is there a way to =3D=

fix=3D20
this?</SPAN></FONT></DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN =3D
class=3D3D155034107-21062001>is the=3D20
undo option related to this?</SPAN></FONT></DIV>
<DIV>=A0</DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN=3D20
class=3D3D155034107-21062001>thanks.</SPAN></FONT></DIV>
<P><FONT size=3D3D2>Fritz Mesedilla<BR>Systems Administrator<BR><BR>Summi=
t =3D

Interactive, Inc.<BR>FHM | Seventeen | Candy | Cosmopolitan | Preview | =3D=

Good=3D20
Housekeeping<BR>femalenetwork.com | candymag.com | fhm.com.ph |=3D20
cosmo.com.ph<BR><BR>Palm Pilot Software: TVSked - Download from the link =
=3D

below<BR>----------------------------------------------------------------=
=3D
------------<BR><A=3D20
href=3D3D"http://contemplation401.tripod.com/"=3D20
target=3D3D_blank>http://contemplation401.tripod.com</A>=A0=A0=A0&=3D
nbsp;=A0=A0=A0=A0=A0=A0=3D20
+Basta Ikaw Lord </FONT></P>
<BLOCKQUOTE=3D20
style=3D3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT=
: =3D
0px; PADDING-LEFT: 5px">
  <DIV align=3D3Dleft class=3D3DOutlookMessageHeader dir=3D3Dltr><FONT =3D=

face=3D3DTahoma=3D20
  size=3D3D2>-----Original Message-----<BR><B>From:</B> kent sin=3D20
  [mailto:kentsin@yahoo.com]<BR><B>Sent:</B> Thursday, June 21, 2001 =3D
3:27=3D20
  PM<BR><B>To:</B> zope@zope.org<BR><B>Subject:</B> [Zope] Storing list =3D=

as=3D20
  object attributes<BR><BR></DIV></FONT>
  <P><FONT size=3D3D2>Is it possible to store a list as attributes to =3D=

DTML</FONT>=3D20
  <BR><FONT size=3D3D2>Document? </FONT></P>
  <P><FONT size=3D3D2>I have an application which I need to store a list =
=3D
of</FONT>=3D20
  <BR><FONT size=3D3D2>0 to 7 persons who sign the letters. Because the =3D=

name</FONT>=3D20
  <BR><FONT size=3D3D2>take various forms in various place and they =3D
contain</FONT>=3D20
  <BR><FONT size=3D3D2>both chinese name and western forms which I would =
=3D
like</FONT>=3D20
  <BR><FONT size=3D3D2>to have store the reference instead of the name in=
 =3D
the</FONT>=3D20
  <BR><FONT size=3D3D2>list.</FONT> </P>
  <P><FONT size=3D3D2>I intend to have persons as DTML Document =3D
with</FONT>=3D20
  <BR><FONT size=3D3D2>attributes representing their names. </FONT></P>
  <P><FONT size=3D3D2>In the letter object, (a DTML document also), I =3D=

would</FONT>=3D20
  <BR><FONT size=3D3D2>like to have an attribute to store the list who =3D=

sign</FONT>=3D20
  <BR><FONT size=3D3D2>it.</FONT> </P>
  <P><FONT size=3D3D2>How can I do this? </FONT></P>
  <P><FONT size=3D3D2>Rgs,</FONT> </P>
  <P><FONT size=3D3D2>Kent Sin</FONT> </P>
  <P><FONT =3D
size=3D3D2>__________________________________________________</FONT>=3D20=

  <BR><FONT size=3D3D2>Do You Yahoo!?</FONT> <BR><FONT size=3D3D2>Get =3D=

personalized email=3D20
  addresses from Yahoo! Mail</FONT> <BR><FONT size=3D3D2><A=3D20
  href=3D3D"http://personal.mail.yahoo.com/"=3D20
  target=3D3D_blank>http://personal.mail.yahoo.com/</A></FONT> </P>
  <P><FONT =3D
size=3D3D2>_______________________________________________</FONT>=3D20
  <BR><FONT size=3D3D2>Zope maillist=A0 -=A0 Zope@zope.org</FONT> =3D
<BR><FONT=3D20
  size=3D3D2><A href=3D3D"http://lists.zope.org/mailman/listinfo/zope</A></FONT=
> =3D
<BR><FONT=3D20
  size=3D3D2>**=A0=A0 No cross posts or HTML encoding!=A0 =3D
**</FONT>=3D20
  <BR><FONT size=3D3D2>(Related lists - </FONT><BR><FONT size=3D3D2>=A0<A=
 =3D

  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-announce"=3D20
  =3D
target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-announce</A=
><=3D
/FONT>=3D20
  <BR><FONT size=3D3D2>=A0<A=3D20
  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-dev"=3D20
  target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-dev</A> =3D=

)</FONT>=3D20
</P></BLOCKQUOTE></BODY></HTML>

------=3D_NextPart_000_0121_01C0FA68.DD222880--



--__--__--

Message: 21
From: "Gianluca Pacchioni" <gianluca.pacchioni@intesys.it>
To: <zope@zope.org>
Date: Thu, 21 Jun 2001 09:47:30 +0200
Subject: [Zope] Problems installing Zope Perl

	Hi everybody,

I'm trying to install Zope Perl on Windows following andym's How-To, but =
I
have some problems.
When I run this command:

  D:\Temp\pyperl-1.0.1\Python-Object>perl makefile.pl

I obtain this output:

  Picking up pyton include files from "C:\Programmi\Zope\bin\include"
  Checking if your kit is complete...
  Looks good
  Note (probably harmless): No library found for '../perlpyd.lib'
  Writing Makefile for Python::Object

It doesn't find perlpyd.lib, is it normal? And more, it's really harmless=
?
Anyway, it makes the makefile, but when I run this command:

  D:\Temp\pyperl-1.0.1\Python-Object>nmake install

this is the result:

  ... ... ...
  Creating library blib\arch\auto\Python\Object\Object.lib and object
blib\arch
  \auto\Python\Object\Object.exp
  Object.obj : error LNK2001: unresolved external symbol
_newPerlPyObject_noinc
  Object.obj : error LNK2001: unresolved external symbol _sv2pyo
  Object.obj : error LNK2001: unresolved external symbol _get_thread_ctx
  Object.obj : error LNK2001: unresolved external symbol _vtbl_free_pyo
  Object.obj : error LNK2001: unresolved external symbol _pyo2sv
  Object.obj : error LNK2001: unresolved external symbol _PerlPyObject_py=
o
  Object.obj : error LNK2001: unresolved external symbol
_PerlPyObject_pyo_or_null

  Object.obj : error LNK2001: unresolved external symbol
_newPerlPyObject_inc
  blib\arch\auto\Python\Object\Object.dll : fatal error LNK1120: 8
unresolved exte
  rnals
  NMAKE : fatal error U1077: 'link' : return code '0x460'
  Stop.

Any idea about the problem? This is my configuration:

Windows 2000 Professional
Zope 2.3.2
Python 1.5.2 (final)
ActivePerl 5.6.1.626
Distutils 1.0.1
pyperl 1.0.1
zoperl 1.0.beta5

Thanks for every suggestion,
Gianluca



--__--__--

Message: 22
Date: Thu, 21 Jun 2001 10:01:58 +0200
From: Stefan Radke <stefan.radke@systemonic.de>
Organization: Systemonic AG
To: zope@zope.org
Subject: [Zope] Newest Documents Listing

Hi,

is there a 'cheap' way to retrieve the items that have been changed or
added ?

Do I have to use ZCatalog to acheieve this ?

Thanks in advance.




--__--__--

Message: 23
Date: Wed, 20 Jun 2001 23:35:21 +0200 (CEST)
From: =3D?ISO-8859-1?Q?Martin_Sk=3DF8tt?=3D <mskott@image.dk>
To: marc lindahl <marc@bowery.com>
cc: Andy McKay <andym@ActiveState.com>,
        =3D?ISO-8859-1?Q?Martin_Sk=3DF8tt?=3D <mskott@image.dk>,
        Reinoud van Leeuwen <reinoud@xs4all.nl>, zope@zope.org
Subject: Re: [Zope] 2GB Limit & Best Zope Platform

That looks very much like the way the problem was solved. I only found th=
e
problem somebody else took the battle of solving it :-)

Martin Sk=3DF8tt
mskott@image.dk

On Wed, 20 Jun 2001, marc lindahl wrote:

> http://www.zope.org/Members/hathawsh/PartitionedFileStorage
>=3D20
> > From: "Andy McKay" <andym@ActiveState.com>
> > Date: Wed, 20 Jun 2001 13:41:27 -0700
> > To: Martin Sk=3DF8tt <mskott@image.dk>, "Reinoud van Leeuwen" <reinou=
d@xs=3D
4all.nl>
> > Cc: <zope@zope.org>
> > Subject: Re: [Zope] 2GB Limit & Best Zope Platform
> >=3D20
> > The problem with file size is not in Zope, but something to do with W=
in=3D
dows
> > using a 32 bit integer for file size, pegging the limit at 2 gigs. Im=
 n=3D
ot
> > sure how some people solve this, but its a deep python / windows prob=
le=3D
m
> > that will not be solved any day soon.
> >=3D20
> > Cheers.
> > --
> > Andy McKay.
> >=3D20
>=3D20
>=3D20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=3D20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=3D20



--__--__--

Message: 24
Date: Thu, 21 Jun 2001 10:12:17 +0200
From: Geir B=E6kholt <geirh@funcom.com>
Reply-To: Geir B=E6kholt <geirh@funcom.com>
Organization: Funcom Oslo
To: Stefan Radke <stefan.radke@systemonic.de>
CC: zope@zope.org
Subject: Re: [Zope] Newest Documents Listing


Get all objects in a folder sorted according to when they were last
modified:

<dtml-in expr=3D"objectValues()" sort=3Dbobobase_modification_time revers=
e>
    <dtml-var title_or_id>
</dtml-in>

You can also specify meta-types , if you don't want all kinds of
objects:
objectValues(['File','Image'])

:-)

on or about, Thursday, June 21, 2001, we have reason to believe that Stef=
an
Radke wrote something along the lines of :
SR> Hi,

SR> is there a 'cheap' way to retrieve the items that have been changed o=
r
SR> added ?

SR> Do I have to use ZCatalog to acheieve this ?

SR> Thanks in advance.



-- =

Geir B=E6kholt                   web-developer/zopatista
geirh@funcom.com             funcom oslo | webdev-team

            <!-- PGPid : 0x90B47B20 -->



--__--__--

Message: 25
Date: Thu, 21 Jun 2001 12:20:10 +0400 (MSD)
From: Oleg Broytmann <phd@phd.fep.ru>
Reply-To: Oleg Broytmann <phd@phd.fep.ru>
To: Sin Hang Kin <kentsin@macau.ctm.net>
cc: Zope Admin list <zope@zope.org>
Subject: Re: [Zope] loadsite : how to detect object or attribute exist?

On Thu, 21 Jun 2001, Sin Hang Kin wrote:
> I want to modify loadsite to upload some database data to zope. However=
, I
> would like to detect the existing of the existing DTMLDocument and its
> attribute to prevent conflicts.

   To test if an object (actually, its ID) is in the folder, ask the list=

of IDs:
   if "my_id" in folder.objectIds():...

   To test a property use object.hasProperty("p_id")

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.r=
u
           Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 26
Date: Thu, 21 Jun 2001 09:22:54 +0100
To: zope@zope.org
From: Mat Braddy <matb@dircon.co.uk>
Subject: [Zope] <img> and <a> tags in squishdot posts?


>
>Afternoon Zopers,
>
>I have only been using Zope for the past week but i am gettin on OK for =
a =

>webdesigner. I am using Squishdot to build a content site and havent had=
 =

>much response from asking stupid questions on the squish mailing list so=
 =

>hope u lot might be able to help 8)
>
>basically i want to be able to stick <img> and <a href> tags in atrticle=
s =

>on my squishdot site. i have tried looking thru the python directory at =

>the stripogram.py files etc but as i am not a coder I haven't a clue whe=
re =

>to tweak the files to allow these 2 tags.
>
>can anyone elp?
>
>ta!!
>
>mat.

Hi gang - No one know how to do this? its the one tiny issue standing in =

the way of me finishing the site 8(

mat.



--__--__--

Message: 27
Date: Thu, 21 Jun 2001 10:41:26 +0200
From: Stefan Radke <stefan.radke@systemonic.de>
Organization: Systemonic AG
To: Geir B?kholt <geirh@funcom.com>
CC: zope@zope.org
Subject: Re: [Zope] Newest Documents Listing

>

Geir B?kholt <geirh@funcom.com> wrote:

> Get all objects in a folder sorted according to when they were last
> modified:
>
> <dtml-in expr=3D"objectValues()" sort=3Dbobobase_modification_time reve=
rse>
>     <dtml-var title_or_id>
> </dtml-in> ...

I have been using this, but I might have stated my request not clear enou=
gh:

I want this for the complete site, all contents of the Zope DB, optionall=
y
filtered by meta-types

Any ideas ?

Thank you again, Stefan.



--__--__--

Message: 28
From: Mike Groves <Mike.Groves@polymerlabs.com>
To: "'zope@zope.org'" <zope@zope.org>
Date: Thu, 21 Jun 2001 09:53:46 +0100
Subject: [Zope] Finding unique objects in a ZCatalog returned list

Hello,

I'm doing quick search using several indexes in a ZCatalog as below

<dtml-in expr=3D"Catalog(title=3Dquery) + =

               Catalog(category=3Dquery) + =

               Catalog(description=3Dquery) + =

               Catalog(product=3Dquery) + =

               Catalog(keywords=3Dquery)">

This works really well. However, if my query string is found in more than=

one index I get the same object returned more than once. =


How do I sort the list of objects returned and more importantly remove
duplicate objects?

Thanks for any help.

Mike

Dr Mike Groves
Software Strategist
Polymer Laboratories Ltd, Unit 8, The Mynd Industrial Estate =

Church Stretton, Shropshire, SY6 6EA, U.K.
Tel:		+44 1694 724420
Fax:	+44 1694 724434
Website:http://www.polymerlabs.com



----
The Information in this communication is confidential and may be privileg=
ed
and should be treated by the recipient accordingly.  If you are not the
intended recipient please notify me immediately. You should not copy it, =
or
use it for any purpose nor disclose its contents to any other person.
Opinions, conclusions and other information expressed in this message are=
 not

given or endorsed by Polymer Laboratories Ltd. unless otherwise =

indicated by an authorised representative independent of this message.
Any quotations, offers for sale or negotiations on behalf of the company =

contained in this Email are Subject to Contract and require alternative
confirmation.


--__--__--

Message: 29
Reply-To: <fritz.mesedilla@summitmedia.com.ph>
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
To: <zope@zope.org>
Date: Thu, 21 Jun 2001 17:08:44 +0800
Subject: [Zope] database connection


how come when we do a write process on our database, it sometimes write m=
ore
than once.

for instance, when we process a form action to write to the database, the=

database comes up with 3 similar values/data.

our current setup:
1) red hat 7.0
2) zope 2.3.2
3) zeo 1.0b1
4) mysql 3.23.38
5) python 1.5.2

thanks in advance.

Fritz Mesedilla
Systems Administrator

Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

Palm Pilot Software: TVSked - Download from the link below
-------------------------------------------------------------------------=
---
http://contemplation401.tripod.com           +Basta Ikaw Lord



--__--__--

Message: 30
Date: Thu, 21 Jun 2001 13:07:52 +0400 (MSD)
From: Oleg Broytmann <phd@phd.fep.ru>
Reply-To: Oleg Broytmann <phd@phd.fep.ru>
To: Mike Groves <Mike.Groves@polymerlabs.com>
cc: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] Finding unique objects in a ZCatalog returned list

On Thu, 21 Jun 2001, Mike Groves wrote:
> I'm doing quick search using several indexes in a ZCatalog as below
>
> <dtml-in expr=3D"Catalog(title=3Dquery) +
>                Catalog(category=3Dquery) +
>                Catalog(description=3Dquery) +
>                Catalog(product=3Dquery) +
>                Catalog(keywords=3Dquery)">
>
> This works really well. However, if my query string is found in more th=
an
> one index I get the same object returned more than once.
>
> How do I sort the list of objects returned and more importantly remove
> duplicate objects?

   Put all results in a dictionary, mapping URL to object. Do it in Pytho=
n
Script, of course.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.r=
u
           Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 31
From: "Phil Harris" <phil.harris@zope.co.uk>
To: <fritz.mesedilla@summitmedia.com.ph>, <zope@zope.org>
Subject: Re: [Zope] database connection
Date: Thu, 21 Jun 2001 10:13:15 +0100

User Error ? ;)

Sorry I'm in a wicked mood today.

----- Original Message -----
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
To: <zope@zope.org>
Sent: Thursday, June 21, 2001 10:08 AM
Subject: [Zope] database connection


>
> how come when we do a write process on our database, it sometimes write=

more
> than once.
>
> for instance, when we process a form action to write to the database, t=
he
> database comes up with 3 similar values/data.
>
> our current setup:
> 1) red hat 7.0
> 2) zope 2.3.2
> 3) zeo 1.0b1
> 4) mysql 3.23.38
> 5) python 1.5.2
>
> thanks in advance.
>
> Fritz Mesedilla
> Systems Administrator
>
> Summit Interactive, Inc.
> FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
> femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph
>
> Palm Pilot Software: TVSked - Download from the link below
> -----------------------------------------------------------------------=
---
--
> http://contemplation401.tripod.com           +Basta Ikaw Lord
>
>
> _______________________________________________
> 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: 32
Date: Thu, 21 Jun 2001 13:13:51 +0400 (MSD)
From: Oleg Broytmann <phd@phd.fep.ru>
Reply-To:  <phd@phd.fep.ru>
To: Mike Groves <Mike.Groves@polymerlabs.com>
cc: "'zope@zope.org'" <zope@zope.org>
Subject: Re: [Zope] Finding unique objects in a ZCatalog returned list

On Thu, 21 Jun 2001, Oleg Broytmann wrote:
> On Thu, 21 Jun 2001, Mike Groves wrote:
> > I'm doing quick search using several indexes in a ZCatalog as below
> >
> > <dtml-in expr=3D"Catalog(title=3Dquery) +
> >                Catalog(category=3Dquery) +
> >                Catalog(description=3Dquery) +
> >                Catalog(product=3Dquery) +
> >                Catalog(keywords=3Dquery)">
> >
> > This works really well. However, if my query string is found in more =
than
> > one index I get the same object returned more than once.
> >
> > How do I sort the list of objects returned and more importantly remov=
e
> > duplicate objects?
>
>    Put all results in a dictionary, mapping URL to object. Do it in Pyt=
hon
> Script, of course.

   Oops, forgot to say, that even this does not guarantee uniquness.
Consider these URLs:
   http://my.server/Folder
   http://my.server/Folder/
   http://my.server/Folder/index_html
3 different URLs point to the same object.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru=

           Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 33
From: "Rene Pijlman" <rpijlman@wanadoo.nl>
To: <zope@zope.org>
Subject: RE: [Zope] database connection
Date: Thu, 21 Jun 2001 11:20:59 +0200

> for instance, when we process a form action to write
> to the database, the
> database comes up with 3 similar values/data.

It depends on the form action, your DTML or Python code and the
user. Did the user press the submit-button multiple times? What
do you mean exactly by "similar values/data"?

I think you have to be more specific...

Regards,
Ren=E9 Pijlman



--__--__--

Message: 34
From: "bdorn@vup.at" <bdorn@mopa.at>
To: zope@zope.org
Date: Thu, 21 Jun 2001 11:27:19 +0200
Subject: [Zope] html entities for umlauts

hi

is there any way to convert umlauts and other non ascii chars to html =

entities in zope or python

i searched all over the zope site and didn't find anything

thanks in advance, bernd


--__--__--

Message: 35
From: Mike Groves <Mike.Groves@polymerlabs.com>
To: "'phd@phd.fep.ru'" <phd@phd.fep.ru>
Cc: "'zope@zope.org'" <zope@zope.org>
Subject: RE: [Zope] Finding unique objects in a ZCatalog returned list
Date: Thu, 21 Jun 2001 10:25:18 +0100

Thanks for the suggestion Oleg,

Would the rid be unique in this case? Would this be a better key to use?

All the objects returned are my own ZClasses so alternatively I could add=
 a
property which I could make sure is unique for all items.

Any thoughts anyone?

Thanks

Mike

-----Original Message-----
From: Oleg Broytmann [mailto:phd@phd.fep.ru]
Sent: 21 June 2001 10:14
To: Mike Groves
Cc: 'zope@zope.org'
Subject: Re: [Zope] Finding unique objects in a ZCatalog returned list


On Thu, 21 Jun 2001, Oleg Broytmann wrote:
> On Thu, 21 Jun 2001, Mike Groves wrote:
> > I'm doing quick search using several indexes in a ZCatalog as below
> >
> > <dtml-in expr=3D"Catalog(title=3Dquery) +
> >                Catalog(category=3Dquery) +
> >                Catalog(description=3Dquery) +
> >                Catalog(product=3Dquery) +
> >                Catalog(keywords=3Dquery)">
> >
> > This works really well. However, if my query string is found in more
than
> > one index I get the same object returned more than once.
> >
> > How do I sort the list of objects returned and more importantly remov=
e
> > duplicate objects?
>
>    Put all results in a dictionary, mapping URL to object. Do it in Pyt=
hon
> Script, of course.

   Oops, forgot to say, that even this does not guarantee uniquness.
Consider these URLs:
   http://my.server/Folder
   http://my.server/Folder/
   http://my.server/Folder/index_html
3 different URLs point to the same object.

Oleg.
----
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru=

           Programmers don't die, they just GOSUB without RETURN.

----
The Information in this communication is confidential and may be privileg=
ed
and should be treated by the recipient accordingly.  If you are not the
intended recipient please notify me immediately. You should not copy it, =
or
use it for any purpose nor disclose its contents to any other person.
Opinions, conclusions and other information expressed in this message are=
 not

given or endorsed by Polymer Laboratories Ltd. unless otherwise =

indicated by an authorised representative independent of this message.
Any quotations, offers for sale or negotiations on behalf of the company =

contained in this Email are Subject to Contract and require alternative
confirmation.


--__--__--

Message: 36
Reply-To: <fritz.mesedilla@summitmedia.com.ph>
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
To: <zope@zope.org>
Subject: RE: [Zope] database connection
Date: Thu, 21 Jun 2001 17:32:22 +0800

This is a multi-part message in MIME format.

------=3D_NextPart_000_0151_01C0FA78.21270A00
Content-Type: text/plain;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: 7bit

[Zope] database connectioni'm sorry i wasn't very specific.
we have a message board on our site. and when a visitor tries to post a
message, the message comes up 2 or more times. meaning, the message board=

gets flooded with duplicate messages.

this also happens when users sign up to be members. their membership subm=
it
button produces multiple add records that an error comes up to them and s=
ays
they have already signed up.

thanks.
Fritz Mesedilla
Systems Administrator

Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

Palm Pilot Software: TVSked - Download from the link below
-------------------------------------------------------------------------=
---
http://contemplation401.tripod.com           +Basta Ikaw Lord

  -----Original Message-----
  From: Fritz Mesedilla [mailto:fritz.mesedilla@summitmedia.com.ph]
  Sent: Thursday, June 21, 2001 5:09 PM
  To: zope@zope.org
  Subject: [Zope] database connection




  how come when we do a write process on our database, it sometimes write=

more
  than once.

  for instance, when we process a form action to write to the database, t=
he
  database comes up with 3 similar values/data.

  our current setup:
  1) red hat 7.0
  2) zope 2.3.2
  3) zeo 1.0b1
  4) mysql 3.23.38
  5) python 1.5.2

  thanks in advance.

  Fritz Mesedilla
  Systems Administrator

  Summit Interactive, Inc.
  FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
  femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

  Palm Pilot Software: TVSked - Download from the link below
  -----------------------------------------------------------------------=
---
--
  http://contemplation401.tripod.com           +Basta Ikaw Lord



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


------=3D_NextPart_000_0151_01C0FA78.21270A00
Content-Type: text/html;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>[Zope] database connection</TITLE>
<META content=3D3D"text/html; charset=3D3Diso-8859-1" =3D
http-equiv=3D3DContent-Type>
<META content=3D3D"MSHTML 5.00.2920.0" name=3D3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN =3D
class=3D3D792562609-21062001>i'm=3D20
sorry i wasn't very specific.</SPAN></FONT></DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN =3D
class=3D3D792562609-21062001>we=3D20
have a message board on our site. and when a visitor tries to post a =3D
message,=3D20
the message comes up 2 or more times. meaning, the message board gets =3D=

flooded=3D20
with duplicate messages.</SPAN></FONT></DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN=3D20
class=3D3D792562609-21062001></SPAN></FONT>=A0</DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN =3D
class=3D3D792562609-21062001>this=3D20
also happens when users sign up to be members. their membership submit =3D=

button=3D20
produces multiple add records that an error comes up to them and says =3D=

they have=3D20
already signed up.</SPAN></FONT></DIV>
<DIV>=A0</DIV>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><SPAN=3D20
class=3D3D792562609-21062001>thanks.</SPAN></FONT></DIV>
<P><FONT size=3D3D2>Fritz Mesedilla<BR>Systems Administrator<BR><BR>Summi=
t =3D

Interactive, Inc.<BR>FHM | Seventeen | Candy | Cosmopolitan | Preview | =3D=

Good=3D20
Housekeeping<BR>femalenetwork.com | candymag.com | fhm.com.ph |=3D20
cosmo.com.ph<BR><BR>Palm Pilot Software: TVSked - Download from the link =
=3D

below<BR>----------------------------------------------------------------=
=3D
------------<BR><A=3D20
href=3D3D"http://contemplation401.tripod.com/"=3D20
target=3D3D_blank>http://contemplation401.tripod.com</A>=A0=A0=A0&=3D
nbsp;=A0=A0=A0=A0=A0=A0=3D20
+Basta Ikaw Lord </FONT></P>
<BLOCKQUOTE=3D20
style=3D3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT=
: =3D
0px; PADDING-LEFT: 5px">
  <DIV align=3D3Dleft class=3D3DOutlookMessageHeader dir=3D3Dltr><FONT =3D=

face=3D3DTahoma=3D20
  size=3D3D2>-----Original Message-----<BR><B>From:</B> Fritz Mesedilla=3D=
20
  [mailto:fritz.mesedilla@summitmedia.com.ph]<BR><B>Sent:</B> Thursday, =3D=

June 21,=3D20
  2001 5:09 PM<BR><B>To:</B> zope@zope.org<BR><B>Subject:</B> [Zope] =3D
database=3D20
  connection<BR><BR></DIV></FONT><BR>
  <P><FONT size=3D3D2>how come when we do a write process on our database=
, =3D
it=3D20
  sometimes write more</FONT> <BR><FONT size=3D3D2>than once.</FONT> </P>=

  <P><FONT size=3D3D2>for instance, when we process a form action to writ=
e =3D
to the=3D20
  database, the</FONT> <BR><FONT size=3D3D2>database comes up with 3 =3D
similar=3D20
  values/data.</FONT> </P>
  <P><FONT size=3D3D2>our current setup:</FONT> <BR><FONT size=3D3D2>1) r=
ed =3D
hat=3D20
  7.0</FONT> <BR><FONT size=3D3D2>2) zope 2.3.2</FONT> <BR><FONT =3D
size=3D3D2>3) zeo=3D20
  1.0b1</FONT> <BR><FONT size=3D3D2>4) mysql 3.23.38</FONT> <BR><FONT =3D=

size=3D3D2>5)=3D20
  python 1.5.2</FONT> </P>
  <P><FONT size=3D3D2>thanks in advance.</FONT> </P>
  <P><FONT size=3D3D2>Fritz Mesedilla</FONT> <BR><FONT size=3D3D2>Systems=
=3D20
  Administrator</FONT> </P>
  <P><FONT size=3D3D2>Summit Interactive, Inc.</FONT> <BR><FONT =3D
size=3D3D2>FHM |=3D20
  Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping</FONT>=3D=
20
  <BR><FONT size=3D3D2>femalenetwork.com | candymag.com | fhm.com.ph |=3D=
20
  cosmo.com.ph</FONT> </P>
  <P><FONT size=3D3D2>Palm Pilot Software: TVSked - Download from the lin=
k =3D

  below</FONT> <BR><FONT=3D20
  =3D
size=3D3D2>--------------------------------------------------------------=
--=3D
------------</FONT>=3D20
  <BR><FONT size=3D3D2><A href=3D3D"http://contemplation401.tripod.com</A>=A0=A0=A0&=3D
nbsp;=A0=A0=A0=A0=A0=A0=3D20
  +Basta Ikaw Lord</FONT> </P><BR>
  <P><FONT =3D
size=3D3D2>_______________________________________________</FONT>=3D20
  <BR><FONT size=3D3D2>Zope maillist=A0 -=A0 Zope@zope.org</FONT> =3D
<BR><FONT=3D20
  size=3D3D2><A href=3D3D"http://lists.zope.org/mailman/listinfo/zope</A></FONT=
> =3D
<BR><FONT=3D20
  size=3D3D2>**=A0=A0 No cross posts or HTML encoding!=A0 =3D
**</FONT>=3D20
  <BR><FONT size=3D3D2>(Related lists - </FONT><BR><FONT size=3D3D2>=A0<A=
 =3D

  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-announce"=3D20
  =3D
target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-announce</A=
><=3D
/FONT>=3D20
  <BR><FONT size=3D3D2>=A0<A=3D20
  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-dev"=3D20
  target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-dev</A> =3D=

)</FONT>=3D20
</P></BLOCKQUOTE></BODY></HTML>

------=3D_NextPart_000_0151_01C0FA78.21270A00--



--__--__--

Message: 37
Date: Thu, 21 Jun 2001 13:30:20 +0400 (MSD)
From: Oleg Broytmann <phd@phd.fep.ru>
Reply-To: Oleg Broytmann <phd@phd.fep.ru>
To: Mike Groves <Mike.Groves@polymerlabs.com>
cc: "'zope@zope.org'" <zope@zope.org>
Subject: RE: [Zope] Finding unique objects in a ZCatalog returned list

On Thu, 21 Jun 2001, Mike Groves wrote:
> Would the rid be unique in this case? Would this be a better key to use=
?

   May be getPhisicalPath would be.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.r=
u
           Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 38
Reply-To: <fritz.mesedilla@summitmedia.com.ph>
From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
To: "Phil Harris" <phil.harris@zope.co.uk>,
	<zope@zope.org>
Subject: RE: [Zope] database connection
Date: Thu, 21 Jun 2001 17:39:24 +0800

This is a multi-part message in MIME format.

------=3D_NextPart_000_015F_01C0FA79.1CED3B70
Content-Type: text/plain;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: 7bit

Re: [Zope] database connectionwell, we all have those days. mine is proba=
bly
tom. *grin*

Fritz Mesedilla
Systems Administrator

Summit Interactive, Inc.
FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph

Palm Pilot Software: TVSked - Download from the link below
-------------------------------------------------------------------------=
---
http://contemplation401.tripod.com           +Basta Ikaw Lord

  -----Original Message-----
  From: Phil Harris [mailto:phil.harris@zope.co.uk]
  Sent: Thursday, June 21, 2001 5:13 PM
  To: fritz.mesedilla@summitmedia.com.ph; zope@zope.org
  Subject: Re: [Zope] database connection


  User Error ? ;)

  Sorry I'm in a wicked mood today.

  ----- Original Message -----
  From: "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph>
  To: <zope@zope.org>
  Sent: Thursday, June 21, 2001 10:08 AM
  Subject: [Zope] database connection



  >
  > how come when we do a write process on our database, it sometimes wri=
te
  more
  > than once.
  >
  > for instance, when we process a form action to write to the database,=

the
  > database comes up with 3 similar values/data.
  >
  > our current setup:
  > 1) red hat 7.0
  > 2) zope 2.3.2
  > 3) zeo 1.0b1
  > 4) mysql 3.23.38
  > 5) python 1.5.2
  >
  > thanks in advance.
  >
  > Fritz Mesedilla
  > Systems Administrator
  >
  > Summit Interactive, Inc.
  > FHM | Seventeen | Candy | Cosmopolitan | Preview | Good Housekeeping
  > femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph
  >
  > Palm Pilot Software: TVSked - Download from the link below


> -----------------------------------------------------------------------=
---
  --
  > http://contemplation401.tripod.com           +Basta Ikaw Lord
  >
  >
  > _______________________________________________
  > 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 )


------=3D_NextPart_000_015F_01C0FA79.1CED3B70
Content-Type: text/html;
	charset=3D"iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [Zope] database connection</TITLE>
<META content=3D3D"text/html; charset=3D3Diso-8859-1" =3D
http-equiv=3D3DContent-Type>
<META content=3D3D"MSHTML 5.00.2920.0" name=3D3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D3D#0000ff face=3D3DArial size=3D3D2><FONT color=3D3D#0=
000ff =3D
face=3D3DArial=3D20
size=3D3D2><SPAN class=3D3D136283809-21062001>well, we all have those day=
s. =3D
mine is=3D20
probably tom. *grin*</SPAN></FONT></FONT></DIV>
<DIV>=A0</DIV>
<P><FONT size=3D3D2>Fritz Mesedilla<BR>Systems Administrator<BR><BR>Summi=
t =3D

Interactive, Inc.<BR>FHM | Seventeen | Candy | Cosmopolitan | Preview | =3D=

Good=3D20
Housekeeping<BR>femalenetwork.com | candymag.com | fhm.com.ph |=3D20
cosmo.com.ph<BR><BR>Palm Pilot Software: TVSked - Download from the link =
=3D

below<BR>----------------------------------------------------------------=
=3D
------------<BR><A=3D20
href=3D3D"http://contemplation401.tripod.com/"=3D20
target=3D3D_blank>http://contemplation401.tripod.com</A>=A0=A0=A0&=3D
nbsp;=A0=A0=A0=A0=A0=A0=3D20
+Basta Ikaw Lord </FONT></P>
<BLOCKQUOTE=3D20
style=3D3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT=
: =3D
0px; PADDING-LEFT: 5px">
  <DIV align=3D3Dleft class=3D3DOutlookMessageHeader dir=3D3Dltr><FONT =3D=

face=3D3DTahoma=3D20
  size=3D3D2>-----Original Message-----<BR><B>From:</B> Phil Harris=3D20
  [mailto:phil.harris@zope.co.uk]<BR><B>Sent:</B> Thursday, June 21, =3D
2001 5:13=3D20
  PM<BR><B>To:</B> fritz.mesedilla@summitmedia.com.ph;=3D20
  zope@zope.org<BR><B>Subject:</B> Re: [Zope] database=3D20
  connection<BR><BR></DIV></FONT>
  <P><FONT size=3D3D2>User Error ? ;)</FONT> </P>
  <P><FONT size=3D3D2>Sorry I'm in a wicked mood today.</FONT> </P>
  <P><FONT size=3D3D2>----- Original Message -----</FONT> <BR><FONT =3D
size=3D3D2>From:=3D20
  "Fritz Mesedilla" <fritz.mesedilla@summitmedia.com.ph></FONT> =3D
<BR><FONT=3D20
  size=3D3D2>To: <zope@zope.org></FONT> <BR><FONT size=3D3D2>Sent: =3D
Thursday, June=3D20
  21, 2001 10:08 AM</FONT> <BR><FONT size=3D3D2>Subject: [Zope] database=3D=
20
  connection</FONT> </P><BR>
  <P><FONT size=3D3D2>></FONT> <BR><FONT size=3D3D2>> how come when we =3D=

do a write=3D20
  process on our database, it sometimes write</FONT> <BR><FONT=3D20
  size=3D3D2>more</FONT> <BR><FONT size=3D3D2>> than once.</FONT> =3D
<BR><FONT=3D20
  size=3D3D2>></FONT> <BR><FONT size=3D3D2>> for instance, when we =3D
process a form=3D20
  action to write to the database, the</FONT> <BR><FONT size=3D3D2>> =3D
database=3D20
  comes up with 3 similar values/data.</FONT> <BR><FONT =3D
size=3D3D2>></FONT>=3D20
  <BR><FONT size=3D3D2>> our current setup:</FONT> <BR><FONT =3D
size=3D3D2>> 1) red=3D20
  hat 7.0</FONT> <BR><FONT size=3D3D2>> 2) zope 2.3.2</FONT> <BR><FONT=3D=
20
  size=3D3D2>> 3) zeo 1.0b1</FONT> <BR><FONT size=3D3D2>> 4) mysql =3D
3.23.38</FONT>=3D20
  <BR><FONT size=3D3D2>> 5) python 1.5.2</FONT> <BR><FONT =3D
size=3D3D2>></FONT>=3D20
  <BR><FONT size=3D3D2>> thanks in advance.</FONT> <BR><FONT =3D
size=3D3D2>></FONT>=3D20
  <BR><FONT size=3D3D2>> Fritz Mesedilla</FONT> <BR><FONT size=3D3D2>> =3D=

Systems=3D20
  Administrator</FONT> <BR><FONT size=3D3D2>></FONT> <BR><FONT =3D
size=3D3D2>> Summit=3D20
  Interactive, Inc.</FONT> <BR><FONT size=3D3D2>> FHM | Seventeen | =3D
Candy |=3D20
  Cosmopolitan | Preview | Good Housekeeping</FONT> <BR><FONT =3D
size=3D3D2>>=3D20
  femalenetwork.com | candymag.com | fhm.com.ph | cosmo.com.ph</FONT> =3D=

<BR><FONT=3D20
  size=3D3D2>></FONT> <BR><FONT size=3D3D2>> Palm Pilot Software: =3D
TVSked -=3D20
  Download from the link below</FONT> <BR><FONT size=3D3D2>>=3D20
  =3D
-------------------------------------------------------------------------=
=3D
-</FONT>=3D20
  <BR><FONT size=3D3D2>--</FONT> <BR><FONT size=3D3D2>> <A=3D20
  href=3D3D"http://contemplation401.tripod.com"=3D20
  =3D
target=3D3D_blank>http://contemplation401.tripod.com</A>=A0=A0=A0&=3D
nbsp;=A0=A0=A0=A0=A0=A0=3D20
  +Basta Ikaw Lord</FONT> <BR><FONT size=3D3D2>></FONT> <BR><FONT=3D20
  size=3D3D2>></FONT> <BR><FONT size=3D3D2>>=3D20
  _______________________________________________</FONT> <BR><FONT =3D
size=3D3D2>>=3D20
  Zope maillist=A0 -=A0 Zope@zope.org</FONT> <BR><FONT =3D
size=3D3D2>> <A=3D20
  href=3D3D"http://lists.zope.org/mailman/listinfo/zope"=3D20
  target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope</A></FONT=
> =3D
<BR><FONT=3D20
  size=3D3D2>> **=A0=A0 No cross posts or HTML encoding!=A0 =3D
**</FONT>=3D20
  <BR><FONT size=3D3D2>> (Related lists -</FONT> <BR><FONT =3D
size=3D3D2>>=A0 <A=3D20
  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-announce"=3D20
  =3D
target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-announce</A=
><=3D
/FONT>=3D20
  <BR><FONT size=3D3D2>>=A0 <A=3D20
  href=3D3D"http://lists.zope.org/mailman/listinfo/zope-dev"=3D20
  target=3D3D_blank>http://lists.zope.org/mailman/listinfo/zope-dev</A> =3D=

)</FONT>=3D20
</P></BLOCKQUOTE></BODY></HTML>

------=3D_NextPart_000_015F_01C0FA79.1CED3B70--



--__--__--

Message: 39
From: "Arnulf Heimsbakk" <arnulf@spirea.net>
To: <zope@zope.org>
Date: Thu, 21 Jun 2001 11:43:49 +0200
Organization: =3D?iso-8859-1?Q?And=3DF8ya_Rocket_Range?=3D
Subject: [Zope] How do I change unauthorized access error message

How do I change the unauthorized access error message in Zope?
It don't seem to be the standard_error_message.
---
arnulf heimsbakk
system analyst
+47 76 14 45 42

spirea.net - http://spirea.net
and=F8ya rocket range - http://www.rocketrange.no



--__--__--

Message: 40
From: "Rene Pijlman" <rpijlman@wanadoo.nl>
To: <zope@zope.org>
Subject: RE: [Zope] database connection
Date: Thu, 21 Jun 2001 11:53:31 +0200

>we have a message board on our site. and when a visitor tries
>to post a message, the message comes up 2 or more times.
meaning,
>the message board gets flooded with duplicate messages.

Ah, I see: there's a loop around your insert statement on line
482 of add_message.py that doesn't check its loop condition
correctly :-)

I'm sorry, but you'll have to be even more specific. Stories are
hard to debug.

Did you write this message board yourself, or is it a standard
product that you downloaded from elsewhere? Is the source code
available somewhere on the Net?

Did you verify that the method that processes the form and adds
the message is called only once?

Regards,
Ren=E9 Pijlman



--__--__--

Message: 41
Date: Thu, 21 Jun 2001 12:41:23 +0200
From: Geir B=E6kholt <geirh@funcom.com>
Reply-To: Geir B=E6kholt <geirh@funcom.com>
Organization: Funcom Oslo
To: Stefan Radke <stefan.radke@systemonic.de>
CC: zope@zope.org
Subject: Re: [Zope] Newest Documents Listing


do this in a pythonscript :

for i in context.ZopeFind(container, obj_metatypes=3D('Page
Template',),search_sub =3D 1, obj_mtime=3D'18.06.2001'):
           print """<p><a href=3D"%s">%s</a></p>""" % (i[1],i[0])
return printed

tweak as required.



here is the entry for ZopeFind in the ZopeQuickREference with some
more info:
-------------------------
Find
ZopeFind(obj, [obj_ids, obj_metatypes, obj_searchterm, obj_expr, obj_mtim=
e,
obj_mspec, obj_permission, obj_roles, search_sub, REQUEST, result, pre])
Zope Find Interface
         =

Examples:
<dtml-var standard_html_header>
       =

This will list all object ids in the current folder<br>
       =

<dtml-in "ZopeFind(this())">
       =

<dtml-var "_['sequence-item'][0]">
       =

</dtml-in>
       =

</dtml-var standard_html_footer>
       =

obj is the object to start looking from (in our example, this()) and is
              the only required argument

              The next 8 arguments are find terms, for example, if an obj=
ect
has an id
              you specify with 'obj_ids', it will be returned.

              search_sub means recursivly descend into sub folders, defau=
lt is
0.

              REQUEST is, as allways, the request object.

              result and pre are used by the recursion machinery and shou=
ld
not be diddled with.

              ZopeFind returns a list of two item tuples.  The first item=
 is
the
              object's id, the second is it path *relative to the 'obj'
argument*.
           =

ZopeFindAndApply(obj, [obj_ids, obj_metatypes, obj_searchterm, obj_expr,
obj_mtime, obj_mspec, obj_permission, obj_roles, search_sub=3D0, REQUEST,=

result, pre, apply_func, apply_path])
Zope Find and apply interface, difference from ZopeFind: apply_func and
apply_path parameters, used to find and catalog objects.
         =

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







on or about, Thursday, June 21, 2001, we have reason to believe that Stef=
an
Radke wrote something along the lines of :
>>

SR> Geir B?kholt <geirh@funcom.com> wrote:

>> Get all objects in a folder sorted according to when they were last
>> modified:
>>
>> <dtml-in expr=3D"objectValues()" sort=3Dbobobase_modification_time rev=
erse>
>>     <dtml-var title_or_id>
>> </dtml-in> ...
SR> I have been using this, but I might have stated my request not clear
enough:
SR> I want this for the complete site, all contents of the Zope DB, optio=
nally
filtered by meta-types
SR> Any ideas ?
SR> Thank you again, Stefan.




-- =

Geir B=E6kholt                   web-developer/zopatista
geirh@funcom.com             funcom oslo | webdev-team

            <!-- PGPid : 0x90B47B20 -->



--__--__--

Message: 42
Date: Thu, 21 Jun 2001 12:53:06 +0200
To: zope@zope.org
From: Alexander Tuchacek <atuc@gmx.de>
Subject: [Zope] zope and python 2.0?

does the actual zope version run with python 2.0?

thanks,
alex




--__--__--

Message: 43
Date: Thu, 21 Jun 2001 14:55:49 +0400 (MSD)
From: Oleg Broytmann <phd@phd.fep.ru>
Reply-To: Oleg Broytmann <phd@phd.fep.ru>
To: Alexander Tuchacek <atuc@gmx.de>
cc:  <zope@zope.org>
Subject: Re: [Zope] zope and python 2.0?

On Thu, 21 Jun 2001, Alexander Tuchacek wrote:
> does the actual zope version run with python 2.0?

   Yes, but not with 2.1.

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.r=
u
           Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 44
Date: Thu, 21 Jun 2001 12:59:24 +0200
To: zope@zope.org
From: Alexander Tuchacek <atuc@gmx.de>
Subject: Re: [Zope] zope and python 2.0?

thanks,
alex

At 12:55 21.06.2001, you wrote:
>On Thu, 21 Jun 2001, Alexander Tuchacek wrote:
> > does the actual zope version run with python 2.0?
>
>    Yes, but not with 2.1.
>
>Oleg.
>----
>      Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp=
=2E.ru
>            Programmers don't die, they just GOSUB without RETURN.



--__--__--

Message: 45
From: "Jan Lentfer" <Jan@MountainbikeHQ.de>
To: <zope@zope.org>
Subject: Re: [Zope] ZCatalog problems
Date: Thu, 21 Jun 2001 13:48:52 +0200

> Hi,
>
> I am having problems with getting back data from ZCatalog.
>
> I create instances of the ZClass "racedate". racedate has a property
called
> "date_sort" which is the date that the race will take place in the form=
at
> "yyyymmdd".
> In a dtml-document I read the objects with
>
> <dtml-with "admin.racedates">
>          <dtml-in "Catalog(sort_on=3D'date_sort)">
>                <dtml-var date_sort>
> [...]
>
> Everything works fine until two or more objects have the same value in
> date_sort (eg. 20010528). Then it miserably fails. Only part of the
objects
> or even none are displayed. I tried back and forth and it really seems =
to
> be the sort_on=3D'date_sort'. If I do sort_on=3D'id', all objects are
displayed
> and <dtml-var date_sort> shows the right values.
> So the problem really seems to be the sorting on an index when 2 or mor=
e
> objects have the same value for that property.
> Is that a bug or a feature?
>
> Jan
>
> PS: Using Zope 2.3.2 src, Phyton 1.5.2, SuSE 7.1


I worked a little on this again it really is like that: If you do a dtml-=
in
"Catalog(sort_on=3D'property')"> where more than 1 objects have the same =
value
for this property, the dtml-in fails.
I bypassed this by adding a unique number (as described in the "Searchabl=
e
Job Board" How-To) to the string I want to do seaching on.

Again my question is: Is this behaviour *normal*. Should a do something
basically different or is this a bug in the ZCatalog in Zope 2.3.2

Jan




--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



End of Zope Digest