[Zope] RE: Zope digest, Vol 1 #2609 - 26 msgs

Mark Fallu mfallu@optushome.com.au
Fri, 21 Feb 2003 14:29:15 +1000


-----Original Message-----
From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of =
zope-request@zope.org
Sent: Wednesday, 19 February 2003 3:01 AM
To: zope@zope.org
Subject: Zope digest, Vol 1 #2609 - 26 msgs

Send Zope mailing list submissions to
        zope@zope.org

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.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. Having troubles using exUserFolder with Postgres (David Mitchell)
   2. Re-Installing Zope (Zope@Stylus)
   3. Re: Versions problem in 2.6.1 (Tom Emerson)
   4. Query on LocalFileSystem objects. (Paul Naveen Raj Jeyaraj)
   5. Re: Query on LocalFileSystem objects. (Andreas Jung)
   6. Re: Serving video out of Zope (alet@unice.fr)
   7. LocalFS error reading directories with permissions restrictions =
(Igor Leturia)
   8. FW: [Zope] Adding Role Programmatically =
(=3D?iso-8859-1?Q?Dani=3DEBl_Hooymans?=3D)
   9. Recursively show content of document in subfolders (Mico Siahaan)
  10. Re: Recursively show content of document in subfolders (Bakhtiar A =
Hamid)
  11. Where is Zope toolkit?? (ABOUREIMA@bceao.int)
  12. Re: dtml-sendmail error (Lennart Regebro)
  13. uploading files (Nicolas LAURANCE)
  14. Re: Antivirus (Josef Meile)
  15. Re: Antivirus (Josef Meile)
  16. Cache Manager scope (Josef Meile)
  17. Re: Re: Java re-invents DTML :-) (Chris Withers)
  18. Re: Re: Java re-invents DTML :-) (Chris Withers)
  19. Re: Zope & SSL & IE6 redirection bug (Gilles Lenfant)
  20. Re: Where is Zope toolkit?? (Gilles Lenfant)
  21. Re: access product code from ZPT (Florian Konnertz)
  22. dtml-var render two same responses for two questions differents =
(Pascal Samuzeau)
  23. Re: dtml-var render two same responses for two
       questions differents (Dylan Reinhardt)
  24. Re: Versions problem in 2.6.1 (Chris Kratz)
  25. going once... (G. Clifford Williams)

--__--__--

Message: 1
From: David Mitchell <djmitchell@optushome.com.au>
Reply-To: djmitchell@optushome.com.au
To: zope@zope.org
Date: Tue, 18 Feb 2003 15:38:48 +1100
Subject: [Zope] Having troubles using exUserFolder with Postgres

Hello everyone,

I'm trying to set up exUserFolder to authenticate against a Postgres =
database.=20
When I try to set it up, I keep getting this error:
    Error Type: NameError
    Error Value: global name 'MessageDialog' is not defined
immediately following the "Choose Authentication Type" screen.

Versions:
   Zope Version (Zope 2.6.0 (binary release, python 2.1, linux2-x86), =
python
2.1.3, linux2)
   Python Version 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66
19990314/Linux (egcs-1.1.2 release)]
and I'm downloading the latest exUserFolder 0.10.10.  I've tried =
downloading
it from both zope.org and sourceforge; the versions are identical, and =
both
are failing for me in an identical manner...  I'm using Postgres 7.3.1.

My Postgres DB is accessible from Zope, and the DB connection is =
configured at
the same level as I'm trying to install exUserFolder.  exUserFolder sees =
the
DB connection fine.

I've tried lots of different combinations of configuration settings
(Postgres/ZODB, with/without membership, etc.) and it's always failing =
for me
at the same point.

I've tried manually building the "passwd" and "userproperties" tables as =
per
the pgScheme.sql file, but that doesn't make any difference.

The Changes.txt file for exUserFolder describes what may be the same =
problem
as being fixed in version 0.10.9.  Thinking the fix may have somehow
disappeared from 0.10.10, I scrubbed 0.10.10 and installed 0.10.9 - =
problem
didn't change.

Has anyone else come across this problem?  Any suggestions what else to =
check?=20
For what it's worth, everything else Zope-ish (and otherwise) on this =
box is
working fine - it's just exUserFolder that's giving me problems.

Thanks in advance for any help

Regards

Dave Mitchell


--__--__--

Message: 2
From: "Zope@Stylus" <zope@stylusinc.net>
To: <zope@zope.org>
Date: Tue, 18 Feb 2003 10:19:20 +0530
Subject: [Zope] Re-Installing Zope

Hi all,
My machine configuration is Mandrake Linux-8.0 ,Postgresql-7.2
I had installed Zope-2.5.1 on my machine and was doing testing when
apparently the server crashed.When i try to start Zope now I get an =
error
message.
:

2003-02-18T04:32:13 PANIC(300) z2 Startup exception
Traceback (innermost last):
  File /Users/zope/Zope-2.5.1/z2.py, line 497, in ?
  File <string>, line 1, in ?
  File /Users/zope/Zope-2.5.1/lib/python/Zope/__init__.py, line 22, in ?
  File /Users/zope/Zope-2.5.1/lib/python/OFS/Application.py, line 18, in =
?
  File /Users/zope/Zope-2.5.1/lib/python/OFS/Folder.py, line 29, in ?
NameError: name 'Role' is not defined

How do u suggest I go about resolving this problem?It looks like Zope is =
not
able to find its startup files.
Is there some error here.Could you please help me in resolving this =
issue.
If I wanted to reinstall zope without losing the work that has been done =
so
far how would u suggest I go about it.
Please advice.I know that the Data.fs file contains all the data .Is it
enough that I copy the Data.fs file into a separate location and =
re-install
Zope and then replace the Data.fs file in Zope-2.5.1 .
Please advice me how I should go about it.
Thanks for all help in advance.

Best regards
John Kunchandy


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.454 / Virus Database: 253 - Release Date: 2/10/2003



--__--__--

Message: 3
From: Tom Emerson <tree@basistech.com>
Date: Tue, 18 Feb 2003 00:03:55 -0500
To: Wil Cooley <wcooley@nakedape.cc>
Cc: Dieter Maurer <dieter@handshake.de>, zope@zope.org
Subject: Re: [Zope] Versions problem in 2.6.1
Reply-To: tree@basistech.com

Wil Cooley writes:
[...]
> No, not at all.  I'm afraid of the versioning right now.  I'd like
> someone to tell me that working on a version through several upgrades
> was a stupid thing to do or that I was doing something else stupid.  =
As
> it is, I'm afraid to use Versions, which were really one of the nice
> things about Zope.

Likewise.

> > Interesting: the objects I'm working with now were imported into a
> > clean 2.6.1 installation after being exported (in binary) from a =
2.6.0
> > installation. I have not tried versioning with an object created
> > wholely in 2.6.1.
>
> Did you import into the same path that you exported from?

Same path.

> I thrashed about a bit trying to get the lock to go away; I'm not
> entirely sure how I did it, but I think exporting and imported were =
part
> of it.  I think I was able to save/commit several times and make them =
go
> away

I ended up exporting the directory and reimporting it into a new
installation of 2.6.1: paranoia at its best.

    -tree

--
Tom Emerson                                          Basis Technology =
Corp.
Software Architect                                 =
http://www.basistech.com
  "Beware the lollipop of mediocrity: lick it once and you suck forever"


--__--__--

Message: 4
Date: Tue, 18 Feb 2003 11:20:14 +0530
From: "Paul Naveen Raj Jeyaraj" <Paul_Jeyaraj@infosys.com>
To: <zope@zope.org>
Subject: [Zope] Query on LocalFileSystem objects.

This is a multi-part message in MIME format.

------=3D_NextPartTM-000-69b58d59-9ac5-43d8-a489-2db65d6bc2ce
Content-Type: multipart/alternative;
        boundary=3D"----_=3D_NextPart_001_01C2D711.9BE45F5E"

------_=3D_NextPart_001_01C2D711.9BE45F5E
Content-Type: text/plain;
        charset=3D"us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi,
=3D20
What is the meta_type for objects that are stored under a Local File
System object? Also how do I get the URL of the files stored?(anything
like <dtml-var absolute_url> available)? Please help.
=3D20
Regards,
Paul.

------_=3D_NextPart_001_01C2D711.9BE45F5E
Content-Type: text/html;
        charset=3D"us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D
charset=3D3Dus-ascii">
<META content=3D3D"MSHTML 6.00.2600.0" name=3D3DGENERATOR></HEAD>
<BODY style=3D3D"COLOR: #000000; FONT-FAMILY: ">
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial=3D20
size=3D3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial=3D20
size=3D3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial =
size=3D3D2>What =3D
is the=3D20
meta_type for objects that are stored under a Local File System=3D20
object?&nbsp;Also how do I get the URL of the files stored?(anything =3D
like=3D20
&lt;dtml-var absolute_url&gt; available)? Please =3D
help.</FONT></SPAN></DIV>
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial=3D20
size=3D3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial=3D20
size=3D3D2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=3D3D471244605-18022003><FONT face=3D3DArial=3D20
size=3D3D2>Paul.</FONT></SPAN></DIV></BODY></HTML>
=3D00
------_=3D_NextPart_001_01C2D711.9BE45F5E--

------=3D_NextPartTM-000-69b58d59-9ac5-43d8-a489-2db65d6bc2ce--



--__--__--

Message: 5
Date: Tue, 18 Feb 2003 07:04:35 +0100
From: Andreas Jung <lists@andreas-jung.com>
Reply-To: Andreas Jung <lists@andreas-jung.com>
To: Paul Naveen Raj Jeyaraj <Paul_Jeyaraj@infosys.com>, zope@zope.org
Subject: Re: [Zope] Query on LocalFileSystem objects.

What about trying it out yourself?

-aj

--On Dienstag, 18. Februar 2003 11:20 +0530 Paul Naveen Raj Jeyaraj
<Paul_Jeyaraj@infosys.com> wrote:

> Hi,
>
> What is the meta_type for objects that are stored under a Local File
> System object? Also how do I get the URL of the files stored?(anything
> like <dtml-var absolute_url> available)? Please help.
>
> Regards,
> Paul.




--
    =
---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    =
---------------------------------------------------------------------



--__--__--

Message: 6
Date: Tue, 18 Feb 2003 07:36:49 +0100
From: alet@unice.fr
To: Dennis Allison <allison@sumeru.stanford.EDU>
Cc: zope@zope.org
Subject: Re: [Zope] Serving video out of Zope
Reply-To: alet@unice.fr

Hi,

On Mon, Feb 17, 2003 at 05:25:51PM -0800, Dennis Allison wrote:
> It looks like we'll need to serve streaming Dvideo out of Zope in some
> generally playable format (IE, Mozilla, Opera, etc.) on a variety of
> platforms (Wintel, MACS (MacOS 8.6, 9, 10), Linux, etc.).  The =
format's
> somewhat open, but since bandwidth is a consideration and the video
> streams are significant (an hour to 90 minutes), MPEG is probably not
> a first choice.  It's been suggested that the right control language
> might be SMIL.  Anyone have experience in this arena they'd be willing
> to share.  What works?  What are the hidden gotchas?

Here (University of Nice) we use RealServer which serves both video
files and SMIL files, while the best would probably be to create SMIL
files on-the-fly with Zope.

Zope is actually only used for "presentation" only wrt audio/video
sessions, and generates a page with links to the audio/video stream
and an associated IRC channel for instant feedback during live
sessions.

We plan to use Zope to control audio/video sources (RS232 grids)
and also move (pan/tilt) cameras via an AXIS 2400 video server,
but I'm still waiting for this to be delivered...

bye,

Jerome Alet


--__--__--

Message: 7
Date: Tue, 18 Feb 2003 10:04:29 +0100
From: "Igor Leturia" <IGOR@emun.com>
To: <zope@zope.org>
Subject: [Zope] LocalFS error reading directories with permissions =
restrictions

  Hi all,

  I'm using LocalFS and it works fine except when a folder in the local
file system has permissions restricted. I think it only lets me see a
folder if everyone has access to it.

  I am using jcNTUserFolder and ImportNTGroups, so the users and roles
for Zope are the same as those for the NT domain. So I'd like to make
some changes in the LocalFS product source code so that it allows seeing
the files the logged in user can see.

  I think I have found a way to get this done (see 'impersonation' in
aspn.activestate.com), but I'd like to know WHERE do I have to make the
changes. I've been looking all through the LocalFS sources, but I
haven't found any lines that read a file from the hard disk. Can anyone
tell me where this is done? Is it in the File object of the Image.py
file?

  Thanks in advance,

                                Igor Leturia


--__--__--

Message: 8
Subject: FW: [Zope] Adding Role Programmatically
Date: Tue, 18 Feb 2003 10:06:53 +0100
From: =3D?iso-8859-1?Q?Dani=3DEBl_Hooymans?=3D <d.hooymans@edufocus.nl>
To: <zope@zope.org>

Hi,

I've seen the following code in the BITS product which adds=3D20
roles to zope.


    ROLES=3D3D['Projectmanager','Teammember','Teamleader','ZMI']
    for role in ROLES:
        self.REQUEST.set('role',role)
        self.manage_defined_roles(submit=3D3D'Add=3D20
Role',REQUEST=3D3Dself.REQUEST)

this piece of code is called when adding an instance of the product.

Hope it is helpfull.

Greets,
Daniel

=3D20
> > -----Original Message-----
> > From: Samir Mishra [mailto:SamirMishra@cbuae.gov.ae]
> > Sent: dinsdag 18 februari 2003 5:25
> > To: 'zope@zope.org'
> > Subject: RE: [Zope] Adding Role Programmatically
> >=3D20
> >=3D20
> >=3D20
> > Oops - the code should have read=3D20
> >     newfolder._addRole('Reviewer')
> >=3D20
> > I changed the above to ...manage_addRole(... otherwise Zope=3D20
> > was not allowing
> > me to save the code (or perhaps that was my browser making it=3D20
> > seem that
> > way). And it's the above line that generated the error message -
> >     Line 20: "_addRole" is an invalid attribute name because=3D20
> > it starts with
> > "_".
> >=3D20
> > Sorry about the confusion this may have caused. I'm still=3D20
> > looking for a
> > solution, but I can't figure it out. The source code=3D20
> > indicates I ought to be
> > able to use "_addRole".
> >=3D20
> > Thanks again.
> >=3D20
> > SM
> >=3D20
> > -----Original Message-----
> > From: Dieter Maurer [mailto:dieter@handshake.de]
> > Sent: Monday, February 17, 2003 22:49
> > To: Samir Mishra
> > Cc: 'zope@zope.org'
> > Subject: Re: [Zope] Adding Role Programmatically
> >=3D20
> >=3D20
> > Samir Mishra wrote at 2003-2-17 09:49 +0400:
> >  > This is probably simple, but I'm unable to find anything on it.
> >  >=3D20
> >  > I'm trying to add a new role to a new folder using a=3D20
> > Python script, and
> > am
> >  > using -
> >  >     context.manage_addFolder(fldr, folders[fldr], 1, 1) #=3D20
> > folders is a
> >  > dictionary
> >  >     # create a new folder named 'fldr'=3D20
> >  >     newFolder =3D3D getattr(context, fldr)
> >  >     # create reviewer role in folder
> >  >     newFolder.manage_addRole('Reviewer')
> >  >=3D20
> >  > The last line generates the following error -
> >  > Line 20: "_addRole" is an invalid attribute name because=3D20
> > it starts with
> > "_".
> >=3D20
> > Are you sure?
> >=3D20
> >   I do not see "_addRole" in your code.
> >=3D20
> > Maybe, you post the traceback (and the precise error=3D20
> message) as well.
> >=3D20
> >=3D20
> > Dieter
> >=3D20
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -=3D20
> >  http://mail.zope.org/mailman/listinfo/zope-announce
> >  http://mail.zope.org/mailman/listinfo/zope-dev )
> >=3D20
>=3D20


--__--__--

Message: 9
From: Mico Siahaan <mico@cbn.net.id>
To: Zope Mailing List <zope@zope.org>
Date: 18 Feb 2003 16:18:00 -0500
Subject: [Zope] Recursively show content of document in subfolders

Dear all,

example I have a directory structure like this:

zoo --
     |-- birds
     |      =20
     |-- mamals
     |-- reptiles

Each subfolder (birds, mamals, reptiles) has a DTML Method called
'description' which contains a short description of each group of
animal.

I want to make a DTML Method in zoo folder that show the description of
each group of animal. How to do it in Zope?

Thanks.

--
mico@cbn.net.id
---
Ph. 62-22-2505549
ICQ #12521756



--__--__--

Message: 10
From: Bakhtiar A Hamid <kedai@kedai.com.my>
Reply-To: kedai@kedai.com.my
To: Mico Siahaan <mico@cbn.net.id>, Zope Mailing List <zope@zope.org>
Subject: Re: [Zope] Recursively show content of document in subfolders
Date: Tue, 18 Feb 2003 17:17:03 +0800

On Wednesday 19 February 2003 05:18, Mico Siahaan wrote:
> Dear all,
>
> example I have a directory structure like this:
>
> zoo --
>
>      |-- birds
>      |
>      |-- mamals
>      |-- reptiles
>
> Each subfolder (birds, mamals, reptiles) has a DTML Method called
> 'description' which contains a short description of each group of
> animal.
>
> I want to make a DTML Method in zoo folder that show the description =
of
> each group of animal. How to do it in Zope?
>

untested:


#dtml method in zoo (zoo_method)
<dtml-var title>
<dtml-var description>

call it like so:
server.domain/zoo/birds/zoo_method
server.domain/zoo/reptiles/zoo_method

> Thanks.

--=3D20

=3D09http://www.kedai.com.my/             http://www.kedai.com.my/eZine
=3D09http://www.zope.org/Members/kedai    http://www.my-zope.org
=3D09How can I laugh tomorrow, if i can't even smile today.




--__--__--

Message: 11
To: Zope Mailing List <zope@zope.org>
From: ABOUREIMA@bceao.int
Date: Tue, 18 Feb 2003 09:25:33 +0000
Subject: [Zope] Where is Zope toolkit??

How could I find the zope toolkit which allow me to insert easily button
and menu in a DTML Document or a zope document?




--__--__--

Message: 12
Date: Tue, 18 Feb 2003 10:41:28 +0100
From: Lennart Regebro <lennart@regebro.nu>
To: Asad Habib <ahabib1357@yahoo.com>
CC:  zope@zope.org
Subject: Re: [Zope] dtml-sendmail error

Asad Habib wrote:
> Hello. I am using the sendmail command to transmit an
> email message to a particular person and I keep
> getting the following error:
>
> Error Type: error
> Error Value: (61, 'Connection refused')

Your SMTP server refuses to talk to your web server. This is normal,
most SMTP servers will refuse to talk to your webserver. :)
You need to use the SMTP server that is configured to handle outgoing
mail from the network your webserver is located on.



--__--__--

Message: 13
From: "Nicolas LAURANCE" <nicolas.laurance@expert-rh.com>
To: <zope@zope.org>
Date: Tue, 18 Feb 2003 10:48:20 +0100
Subject: [Zope] uploading files

Here is my problem, I have a form like this :

<form action=3D"Attacher_fichier" method=3D"POST"
enctype=3D"multipart/form-data">
Titre* :<input type=3D"text" name=3D"Titre:required">
<input type=3D"file" name=3D"file:required">
<input type=3D"submit" name=3D"Attacher" Value=3D"Attacher">
</form>

************************************************************************
********************

Which ask user to input a file and give it a title

The form is then handled with a script :

************************************************************************
********************

## Script (Python) "Attacher_fichier"
##bind container=3Dcontainer
##bind context=3Dcontext
##bind namespace=3D
##bind script=3Dscript
##bind subpath=3Dtraverse_subpath
##parameters=3DTitre, file
##title=3D
##

# to find the object I want to upload in, it is object manager

for obj in context.REQUEST.PARENTS:
  if obj.meta_type =3D=3D "Candidature":
     Candidat=3Dobj
     break

# create the file id
id=3D'%s_%s' %
(DateTime().strftime('%Y%m%d%H%M%S'),random.randint(1,1000))
Candidat.manage_addProduct['OFSP'].manage_addFile(id, title=3DTitre,
file=3Dfile)

# redirect
return context.REQUEST.RESPONSE.redirect(context.REQUEST.URL1)

************************************************************************
********************

My problem is, the content type is not set, it stays empty
I would like it to recognize, say application/msword or pdf or rtf or
excel files for example

I don't understand, because when I upload a file directly through ZMI
the content type is correctly set.
What did I do wrong ??

Any help appreciated
Thanxs





--__--__--

Message: 14
Date: Tue, 18 Feb 2003 11:04:40 +0100
From: Josef Meile <jmeile@hotmail.com>
To:  zope@zope.org
Subject: Re: [Zope] Antivirus

--- In zope@yahoogroups.com, Nicolas Romero <Nicolas.Romero@a...> wrote:
 > Hi,
 >
 > I would like to scan the documents uploaded by users onto my Zope/CMF
 > servers. My servers run on Linux behind Apache and a Linux firewall.
 >
 > How can I do ?
 >
 > --
 > Nicolas Romero, adp3i <http://www.adp3i.fr>
Hi,
I just found that bitdefender has a linux version:
http://www.bitdefender.com

I try it and it works. You could do a script that excecutes
the antivirus before a file submission.

Regards,
Josef



--__--__--

Message: 15
Date: Tue, 18 Feb 2003 11:42:45 +0100
From: Josef Meile <jmeile@hotmail.com>
To:  zope@zope.org
Subject: [Zope] Re: Antivirus

--- In zope@yahoogroups.com, Josef Meile <jmeile@h...> wrote:
 > --- In zope@yahoogroups.com, Nicolas Romero <Nicolas.Romero@a...> =
wrote:
 >  > Hi,
 >  >
 >  > I would like to scan the documents uploaded by users onto my =
Zope/CMF
 >  > servers. My servers run on Linux behind Apache and a Linux =
firewall.
 >  >
 >  > How can I do ?
 >  >
 >  > --
 >  > Nicolas Romero, adp3i <http://www.adp3i.fr>
 > Hi,
 > I just found that bitdefender has a linux version:
 > http://www.bitdefender.com
 >
 > I try it and it works. You could do a script that excecutes
 > the antivirus before a file submission.
 >
 > Regards,
 > Josef
I found two links more:

This one offers free online file scan for linux (Perhaps you could
submit a file via python and get the results) and a comercial
solution (free trial):
* http://www.ravantivirus.com

This one offers only a comercial solution for linux (free to trial):
* http://www.f-prot.com



--__--__--

Message: 16
Date: Tue, 18 Feb 2003 11:49:10 +0100
From: Josef Meile <jmeile@hotmail.com>
To:  zope@zope.org
Subject: [Zope] Cache Manager scope

Hi,

I just want to add an "Accelerated HTTP Cache Manager" to the root of
my site. I'm wondering if it's possible to avoid catching one or more
subfolders of root?

Regards,
Josef



--__--__--

Message: 17
Date: Tue, 18 Feb 2003 11:18:37 +0000
From: Chris Withers <chrisw@nipltd.com>
To: Anthony Baxter <anthony@interlink.com.au>
CC: Kari-Hans Kommonen <khk@uiah.fi>,  zope@zope.org
Subject: Re: [Zope] Re: Java re-invents DTML :-)

Anthony Baxter wrote:
>
> Having now worked with both, I'd disagree, strongly. DTML is _much_ =
easier
> for the beginner. Once you get more complex, then ZPT becomes simpler. =
But
> for basic "insert chunk of html here" type things, DTML is far, far, =
easier
> to explain.

..yeah, but if you're learning to use a poweful app server, why opt for
something that becoems difficult when you want to do something poweful?

Why not just make the (small imho) step and go for the more powerful and
flexible option straight up?

To be honest, how difficult is

<tal:x replace=3D"here/whatever"/>

..than:

<dtml-var whatever>

..especially when your user asks "so where does 'whatever' coem from? =
How is it
looked up?"

..and how do you explain when to use that as opposed to:

<dtml-var "whatever">

..or

&dtml-whatever;

?

cheers,

Chris



--__--__--

Message: 18
Date: Tue, 18 Feb 2003 11:21:28 +0000
From: Chris Withers <chrisw@nipltd.com>
To:  b.maryniuk@forbis.lt
CC:  zope@zope.org
Subject: Re: [Zope] Re: Java re-invents DTML :-)

Bo M. Maryniuck wrote:
>
> But I think ZPT is not a right tool for creating non-HTML stuff, like =
CSS, XML
> etc, do you?

I think ZPT is fine for doing non-HTML stuff. It's specifically designed =
for
geenrating XML, and it does pretty well with things like SQL and CSS =
too,
especially when you consider it means you don't have to learn another =
templating
language.

> And ZPT is too explicit.

There is no such thing. If you don't like things explicit then you =
shouldn't be
using something python-based. Explicitness also results in a lot less =
confusion
in the long term...

> OTOH, both are good and can coexist
> together. Are you agree here? ;-)

They can, I just want to avoid the situation where you _need_ to know =
both, as
is currently the case.
I'd also prefer to see new users advised to start with ZPT rather than =
having to
struggle with DTML befoer they find ZPT.

cheers,

Chris



--__--__--

Message: 19
From: "Gilles Lenfant" <gilles@pilotsystems.net>
To: "Andrew Athan" <zope-response@memeplex.com>, <zope@zope.org>
Subject: Re: [Zope] Zope & SSL & IE6 redirection bug
Date: Tue, 18 Feb 2003 13:50:48 +0100

----- Original Message -----
From: "Andrew Athan" <zope-response@memeplex.com>
To: <zope@zope.org>
Sent: Tuesday, February 18, 2003 3:20 AM
Subject: [Zope] Zope & SSL & IE6 redirection bug


|
| I have run into several problems with the M2Crypto SSL and ZServerSSL,
most
| of which I have worked through.  I'll post something to =
www.memeplex.com
| and/or www.zope.org soon.  However, I'm wondering if I am the only =
one?
| What are people's preferred methods for supporting SSL on Linux?  =
Should I
| just have leveraged Apache?


Yes,

Apache + mod_ssl + Zope + VirtualHostMonster on server side with  IE6 on
client side (or any https aware browser/OS) works perfectly for me.
In addition, this is fully transparent to Zope programmation - as long =
as
you know what you do when generating explicitely URLs starting with =
"http"
or "https" in your site logic.

HTH

--Gilles





--__--__--

Message: 20
From: "Gilles Lenfant" <gilles@pilotsystems.net>
To: "Zope Mailing List" <zope@zope.org>, <ABOUREIMA@bceao.int>
Subject: Re: [Zope] Where is Zope toolkit??
Date: Tue, 18 Feb 2003 13:57:13 +0100

| How could I find the zope toolkit which allow me to insert easily =
button
| and menu in a DTML Document or a zope document?

Please give more precision on what you really need.
There are tons of solutions to add menus and buttons to DTML or ZPT.
You can easily enderstand that nobody will list all possible solutions =
in
that mailing list.
Perhaps browsing the "navigational" products collection will help you.

http://www.zope.org/Products/navigational

--Gilles





--__--__--

Message: 21
Date: Tue, 18 Feb 2003 16:07:59 +0100
From: Florian Konnertz <florian.konnertz@web.de>
To: zope <zope@zope.org>
Subject: Re: [Zope] access product code from ZPT

Hi,

Dieter Maurer wrote:
> Florian Konnertz wrote at 2003-2-15 21:24 +0100:
>
..
  >
>  >
>  > When i call the wikipage i'm asked for username/password, i enter =
my
>  > manager account but it asks again and again. Why?
>
> I expect because "Products.ZWiki.ZWikiPage" is not allowed to be =
imported.
>
> Read the PythonScripts "README" and allow it.
Helpful tip, Dieter, thanks!! :-)


Cheers,
Florian


--
Florian Konnertz   ---   http://www.florian-konnertz.de
http://openspirit.homelinux.net/noowiki/FrontPage
Improved ZWiki about all topics, especially consciousness research
and wisdom traditions



--__--__--

Message: 22
To: zope@zope.org
Date: Tue, 18 Feb 2003 15:53:39 +0100
From: Pascal Samuzeau <samuzeau@oreka.com>
Subject: [Zope] dtml-var render two same responses for two questions =
differents

Hi,                                                                 =20
                                                                    =20
Just a simple question, for a simple answer ( I hope so ...)        =20
(I'm with Zope2.6.0 under Win)                                      =20
                                                                    =20
I have a DTML Method as :                                           =20
                                                                    =20
A- <dtml-var expr=3D"test('test.test')>                               =20
B- <dtml-var expr=3D"test('test\test')>                               =20
C- <dtml-var expr=3D"test('test..test')>                              =20
D- <dtml-var expr=3D"test('test\\test')>                              =20
E- <dtml-var expr=3D"test('test\.test')>                              =20
F- <dtml-var expr=3D"test('test\\.test')>                             =20
                                                                    =20
                                                                    =20
I have a script python as, with thevar as parameter                 =20
                                                                    =20
<dtml-return thevar>                                                =20
                                                                    =20
So if I try I have these answers:                                   =20
                                                                    =20
A - test.test                                                       =20
B - test\test                                                       =20
C - test..test                                                      =20
D - test\\test                                                      =20
                                                                    =20
E - test\\.test                                                     =20
F - test\\.test                                                     =20
                                                                    =20
So my simple question : how can I recognize E from F ?              =20
                                                                    =20
What is happening ?                                                 =20
                                                                    =20
                                                                    =20
Sincerily                                                           =20
PS                                                                  =20
--------------------------------------------------                  =20
Oreka ! Nous sommes l'internet moins cher !                         =20
Surfez 25% moins cher avec http://www.oreka.com                     =20


--__--__--

Message: 23
Date: Tue, 18 Feb 2003 07:51:11 -0800
To: Pascal Samuzeau <samuzeau@oreka.com>,zope@zope.org
From: Dylan Reinhardt <zope@dylanreinhardt.com>
Subject: Re: [Zope] dtml-var render two same responses for two
  questions differents

First off, you need to close all these expressions with another
double-quote after the last paren.  I'll assume that was a copy & paste =
typo.

Moving to the heart of the matter... the \ character may be the path
separator in Windoze, but it doesn't have this significance to Python.  =
In
Python the \ is an escape character, mostly.

E and F are the same because '\.' isn't a valid escape for anything in =
this
context. Since the \ isn't a valid escape, Python is smart enough to =
figure
out that you probably want the \ interpreted as a literal.  The \\ =
sequence
*is* an escape... for a single \ char.  When Python interprets '\' as a
literal, it stores it as '\\'.    That's why they come out the same... =
they
*are* the same.

If that's not what you want, use the raw string format, which looks =
like:

foo =3D r'c:\windows\system\some.dll'

That lower-case r at the beginning of the string means that the \'s are
interpreted literally, not as escapes.

A better question, though, is what difference does it make?  You aren't
going to be calling the Windoze file system from DTML anyway.

Is there something you're having difficulty doing or are you just =
exploring
how string manipulation works in DTML?

Dylan



At 06:53 AM 2/18/2003, Pascal Samuzeau wrote:
>Hi,
>
>Just a simple question, for a simple answer ( I hope so ...)
>(I'm with Zope2.6.0 under Win)
>
>I have a DTML Method as :
>
>A- <dtml-var expr=3D"test('test.test')>
>B- <dtml-var expr=3D"test('test\test')>
>C- <dtml-var expr=3D"test('test..test')>
>D- <dtml-var expr=3D"test('test\\test')>
>E- <dtml-var expr=3D"test('test\.test')>
>F- <dtml-var expr=3D"test('test\\.test')>
>
>
>I have a script python as, with thevar as parameter
>
><dtml-return thevar>
>
>So if I try I have these answers:
>
>A - test.test
>B - test\test
>C - test..test
>D - test\\test
>
>E - test\\.test
>F - test\\.test
>
>So my simple question : how can I recognize E from F ?
>
>What is happening ?
>
>
>Sincerily
>PS
>--------------------------------------------------
>Oreka ! Nous sommes l'internet moins cher !
>Surfez 25% moins cher avec http://www.oreka.com
>
>_______________________________________________
>Zope maillist  -  Zope@zope.org
>http://mail.zope.org/mailman/listinfo/zope
>**   No cross posts or HTML encoding!  **
>(Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )



--__--__--

Message: 24
From: Chris Kratz <chris.kratz@vistashare.com>
Organization: VistaShare
To: Wil Cooley <wcooley@nakedape.cc>, tree@basistech.com
Subject: Re: [Zope] Versions problem in 2.6.1
Date: Tue, 18 Feb 2003 11:31:34 -0500
Cc: zope@zope.org

Hello Wil and Tom,

We had the exact same problems with versions after we moved to 2.5.1.  =
Up to
that point we had used them pretty extensively.  The symptoms were that =
after
a period of time, saving a version didn't always commit all items.  The
control panel showed no open versions, but the items were locked =
nonetheless.=20
Also packing caused poskey errors as was also noted in the previous =
email(s).

We learned that if the version had been deleted, we could recreate the =
version
in the same location with the same name.  Then we had to manually find =
all
the unsaved objects  and resave them within the version. Some objects we
actually had to modify (I think scripts were this way, but adding or =
removing
an empty line was good enough).  Anyway, then we could commit the =
version.=20
Sometimes this was an iterative process (save, check for locked objects, =
open
version, save, check... etc).

This eventually forced us out of using versions due to the frustration =
of our
developers having to keep notes on all the modified objects so we could =
go
check them after a version was committed.  We had enough problems with
commiting partial versions on our live site that we decided we had to =
use
something that worked better.  They were a wonderfull tool when they =
worked,
but it appears to me that they have been broken for several versions now =
of
zope.  I think that the reason you haven't found much on the list is =
that
many people don't use versions in a day to day way.  The one situation =
where
they did seem to work consistently was when you were making very small
incremental changes to one or more objects and the changes were cut in =
almost
immediately.

After some work, we are now using a combination of cvs with each =
developer
having their own copy of zope and a home grown python script that walks =
the
db and dumps every object to the filesystem.  Then we use zsyncher to =
move
objects around and keep things in sync between the zope instances.  CVS =
gives
us a persistent versioned "backup" while keeping the objects in the =
standard
zope data.fs for normal serving.  When a developer is ready to start a =
new
project, they pull a copy of the data.fs from our dev server and start
working.  CVS provides lists of objects that need to be updated from dev =
on a
dailly basis.  Our setup isn't elegant, but it has worked for us.  I =
would
suggest that unless you can find a solution to the issues with zope
versioning that you may want to try another tact for keeping versions of =
your
code/website.=20

I have been watching with interest some of the other projects that have =
been
evolving (directory storage, etc) to allow tighter integration with zope =
and
file system based utilties such as cvs.  Perhaps one of those projects =
might
be a good place to start looking if you think you may want to move in =
that
direction.

Anyway, that was our experience.  Good luck,

-Chris

On Monday 17 February 2003 03:24 am, Wil Cooley wrote:
> FWIW, I just spent the last few hours fighting with the same thing.
> Another thing I'm noticing is that even when I do save the version, =
the
> changes aren't publicly accessible.

--
Chris Kratz
Systems Analyst/Programmer
VistaShare LLC
www.vistashare.com


--__--__--

Message: 25
From: "G. Clifford Williams" <gcw-python@rezidew.net>
Reply-To: gcw-python@rezidew.net
Organization: Rezidew Networking Services
To: <zope@zope.org>
Date: Tue, 18 Feb 2003 10:47:54 -0600
Subject: [Zope] going once...

Does anyone know of any Auction scripts out there for ZOPE?



--__--__--

_______________________________________________
Zope maillist  -  Zope@zope.org



End of Zope Digest