[Zope-dev] RE: [Zope] highly available Zope thread; our hanging problem

2000-06-06 Thread Marcus Collins

Hi,

I'd like to comment on this, and summarise some references below. Much of
this discussion took place on the zope-dev list (see references), so I'm
cc'ing the zope-dev list. You might also wish to add to the Wiki:
http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/.

 -Original Message-
 From: Brian Takashi Hooper [mailto:[EMAIL PROTECTED]]
 Sent: 06 June 2000 12:11
 To: [EMAIL PROTECTED]
 Subject: [Zope] highly available Zope thread; our hanging problem
 
 Hi all -
 
 I was looking at the discussion from April that was posted on the
 HighlyAvailableZope Wiki about problems with Zope hanging; we had a
 similar situation here at Digital Garage which seemed to be alleviated
 by changing the zombie_timeout to be really short (like, 1 minute). 
 Before changing the zombie_timeout, the server would periodically hang
 and not give any responses to requests, sometimes recovering after a
 short time.

Some questions at this point:
1. Were you running with multiple threads, and if so, how many?

2. If you were using multiple threads, would *all* the threads periodically
hang, or was the hanging isolated to a single thread at a time?

3. Could you possibly comment on the operating system used?

4. Which zombie_timeout did you twiddle -- the one in the zhttp_channel in
ZServer.py, or that in http_channel in medusa/http_server.py?

 At this point, I don't have anything more than just an empirical
 observation - changing this parameter seemed to help our server.  Has
 anyone else noticed anything similar, or can explain this observation?

Concerning the zombie_timeout suggestion, here are some references when I
posed the question of whether reducing the value would be beneficial:

Amos Lattier wrote in
http://lists.zope.org/pipermail/zope-dev/2000-April/004194.html:
 The ZServer zombie stuff is to get rid of zombie client 
 connections, not zombie publishing threads. These are quite 
 different beasts.

Michel Pelletier wrote in 
http://lists.zope.org/pipermail/zope-dev/2000-April/004229.html:
 What the Zombie timeout means is that after a publishing thread gets
 done answering a request, the socket may not go away.  This many for a a
 number of reasons, the client 'hung' and is not 'putting down the phone
 after the converstation is over' (so to speak) or network troubles may
 prevent the connection from closing properly.  This means that there is
 a 'zombie' connection laying around.  This zombie will probably end up
 going away on its own, but if not, ZServer will kill it after a period
 of time.
 
 The only reasorce laying around during the life of a Zombie is an tiny
 little unused open socket, the Mack truck of a Zope thread that served
 the request for the zombie socket does not 'hang' for that entire period
 of time, but goes on after it has completed the request to serve other
 requests.
 
 Amos is correct in that these problems are almost always at the
 Application level, and not at the ZServer level.  The fact that Pavlos
 can prevent hanging by inserting a print statement in the asyncore loop[*]
 is suspicious, but we do not have enough information yet to point
 fingers anywhere.

[* references http://lists.zope.org/pipermail/zope/2000-April/023697.html]

I'd be _very_ interested in hearing more on this! Our Zope installation has
been pretty stable of late (isn't it strange that, when you want to find out
what's causing things to break, they play nice?), with uptime of
thirty-something days, but I'm still very keen to get to the bottom of this,
since I don't believe it was some ephemeral problem.

hth, and thanks again!

-- Marcus

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




[Zope-dev] Re: [Zope] highly available Zope thread; our hanging problem

2000-06-06 Thread Brian Takashi Hooper


On Tue, 6 Jun 2000 15:19:29 +0200 
Marcus Collins [EMAIL PROTECTED] wrote:

 Hi,
 
 I'd like to comment on this, and summarise some references below. Much of
 this discussion took place on the zope-dev list (see references), so I'm
 cc'ing the zope-dev list. You might also wish to add to the Wiki:
 http://www.zope.org/Members/tseaver/Projects/HighlyAvailableZope/.
OK, that's a good suggestion!

 
  -Original Message-
  From: Brian Takashi Hooper [mailto:[EMAIL PROTECTED]]
  Sent: 06 June 2000 12:11
  To: [EMAIL PROTECTED]
  Subject: [Zope] highly available Zope thread; our hanging problem
  
  Hi all -
  
  I was looking at the discussion from April that was posted on the
  HighlyAvailableZope Wiki about problems with Zope hanging; we had a
  similar situation here at Digital Garage which seemed to be alleviated
  by changing the zombie_timeout to be really short (like, 1 minute). 
  Before changing the zombie_timeout, the server would periodically hang
  and not give any responses to requests, sometimes recovering after a
  short time.
 
 Some questions at this point:
 1. Were you running with multiple threads, and if so, how many?
Yes; Zope is set to run with 16 threads (-t 16), and we've increased the
pool_size parameter in ZODB/DB.py to 16 also (guess this is all
right... :-P )

 
 2. If you were using multiple threads, would *all* the threads periodically
 hang, or was the hanging isolated to a single thread at a time?
All the threads hang.  One interesting thing is, we looked at vmstat and
whenever the system is having trouble, the number of system calls drops
dramatically, when the server is doing well it's normally up in the
1000s, but when it's in trouble there are like 20-30 system calls per
second, and they're all either lwp_* or poll s.

 
 3. Could you possibly comment on the operating system used?
Solaris, 2.6, on netras.  Our Zope is still v. 2.1.4.

 
 4. Which zombie_timeout did you twiddle -- the one in the zhttp_channel in
 ZServer.py, or that in http_channel in medusa/http_server.py?
The one in zhttp_channel.  As far as I can tell, since zhttp_channels
are actually used instead of http_channels, the number in zhttp_channel
is the one that matters.  The kill_zombies method, and the code that
calls it, is inherited from the medusa code... kill_zombies looks at the
timeout value of all the channels in the select list, and since all of
those instances happen to be zhttp_channels in the case of Zope, they
all use the zhttp_channel timeout.

 
  At this point, I don't have anything more than just an empirical
  observation - changing this parameter seemed to help our server.  Has
  anyone else noticed anything similar, or can explain this observation?
 
 Concerning the zombie_timeout suggestion, here are some references when I
 posed the question of whether reducing the value would be beneficial:
 
 Amos Lattier wrote in
 http://lists.zope.org/pipermail/zope-dev/2000-April/004194.html:
  The ZServer zombie stuff is to get rid of zombie client 
  connections, not zombie publishing threads. These are quite 
  different beasts.
 
 Michel Pelletier wrote in 
 http://lists.zope.org/pipermail/zope-dev/2000-April/004229.html:
  What the Zombie timeout means is that after a publishing thread gets
  done answering a request, the socket may not go away.  This many for a a
  number of reasons, the client 'hung' and is not 'putting down the phone
  after the converstation is over' (so to speak) or network troubles may
  prevent the connection from closing properly.  This means that there is
  a 'zombie' connection laying around.  This zombie will probably end up
  going away on its own, but if not, ZServer will kill it after a period
  of time.
  
  The only reasorce laying around during the life of a Zombie is an tiny
  little unused open socket, the Mack truck of a Zope thread that served
  the request for the zombie socket does not 'hang' for that entire period
  of time, but goes on after it has completed the request to serve other
  requests.
  
  Amos is correct in that these problems are almost always at the
  Application level, and not at the ZServer level.  The fact that Pavlos
  can prevent hanging by inserting a print statement in the asyncore loop[*]
  is suspicious, but we do not have enough information yet to point
  fingers anywhere.
 
 [* references http://lists.zope.org/pipermail/zope/2000-April/023697.html]
Yeah, I saw this... like I said, I haven't gathered enough information
yet to be able to say anything that sounds like an explanation; all I
have is a vague experimental observation.

I found out about the mpstat command on Solaris, didn't know about it
before, it gives you info on thread activity and multiprocessor
behavior, so maybe I can get some more info from that.

Hmm.

--Brian Hooper

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

[Zope-dev] BerkeleyStorage.py is broken?

2000-06-06 Thread nw_moriarty

There are many admonitions to use BerkeleyStorage.py if you don't require versions in 
a database.  However, I have tried without success to get it to work with TCS.bsddb.db 
and BerkeleyDB 2.7.7 in a stand alone application.

How ANYBODY got it to work?  

Nigel


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

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




[Zope-dev] ReiserStorage 0.01 alpha

2000-06-06 Thread Petru Paler

  Hello all,

   Attached you can find the code for a preliminary ZODB storage manager
which is designed to take adventage of the reiserfs filesystem
(http://devlinux.com/namesys). While it is usable on other filesystems
too, the performance will decrease as the number of objects in your
database increases.
   Comments:

1. This is as alpha as it can be. While it is usable to do some testing on
a spare Zope, you must be insane to even try to use this on a production
system.
2. A generic DirectoryStorage is comming soon, with the diference being
splitting files by directory (and, of course, being slower than the
reiserfs version).
3. As you can see in the source, I/O errors in critical points can corrupt
the storage.
4. It currently does not support versioning and undo. I'm working first on
getting it stable and fast, and then add these features.

Feedback is not only welcome, but wanted :)

-Petru


##
# 
# Zope Public License (ZPL) Version 1.0
# -
# 
# Copyright (c) Digital Creations.  All rights reserved.
# Copyright (c) 2000 Petru Paler ([EMAIL PROTECTED]) All rights reserved.
# 
# This license has been certified as Open Source(tm).
# 
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
# 
# 1. Redistributions in source code must retain the above copyright
#notice, this list of conditions, and the following disclaimer.
# 
# 2. Redistributions in binary form must reproduce the above copyright
#notice, this list of conditions, and the following disclaimer in
#the documentation and/or other materials provided with the
#distribution.
# 
# 3. Digital Creations requests that attribution be given to Zope
#in any manner possible. Zope includes a "Powered by Zope"
#button that is installed by default. While it is not a license
#violation to remove this button, it is requested that the
#attribution remain. A significant investment has been put
#into Zope, and this effort will continue if the Zope community
#continues to grow. This is one way to assure that growth.
# 
# 4. All advertising materials and documentation mentioning
#features derived from or use of this software must display
#the following acknowledgement:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#In the event that the product being advertised includes an
#intact Zope distribution (with copyright and license included)
#then this clause is waived.
# 
# 5. Names associated with Zope or Digital Creations must not be used to
#endorse or promote products derived from this software without
#prior written permission from Digital Creations.
# 
# 6. Modified redistributions of any form whatsoever must retain
#the following acknowledgment:
# 
#  "This product includes software developed by Digital Creations
#  for use in the Z Object Publishing Environment
#  (http://www.zope.org/)."
# 
#Intact (re-)distributions of any official Zope release do not
#require an external acknowledgement.
# 
# 7. Modifications are encouraged but must be packaged separately as
#patches to official Zope releases.  Distributions that do not
#clearly separate the patches from the original work must be clearly
#labeled as unofficial distributions.  Modifications which do not
#carry the name Zope may be packaged in any form, as long as they
#conform to all of the clauses above.
# 
# 
# Disclaimer
# 
#   THIS SOFTWARE IS PROVIDED BY DIGITAL CREATIONS ``AS IS'' AND ANY
#   EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
#   PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL DIGITAL CREATIONS OR ITS
#   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
#   LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
#   USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
#   ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
#   OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
#   OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
#   SUCH DAMAGE.
# 
# 
# This software consists of contributions made by Digital Creations and
# many individuals on behalf of Digital Creations.  Specific
# attributions are listed in the accompanying credits file.
# 
##


# To-do list:
# Critical:
#- Most I/O operations are not atomic. This means that I/O errors (and, for
#  

Re: [Zope-dev] LM and user objects

2000-06-06 Thread Bill Anderson

"Phillip J. Eby" wrote:
 
 At 04:03 PM 6/6/00 -0600, Bill Anderson wrote:
 
 I am using the deafult UserSource that comes with LM for the moment (one
 step at a time ;)
 
 LM or PTK?

LM

(Waiting for Dan's changes before trying _any_ LM with PTK ;)

 
 When I try to add through the manage interface, I get:
 Error Type: KeyError
 Error Value: _v_rack
 
 Eh?  What manage interface?  Nothing Ty or I put out has a manage interface
 to add a user.


The management interface, a sin click through Lm to UserSouorce, select
LM User object from the  select-box. Sorry, in ahurry I left off 'ment'
:/
 
 So I judge that this interface to be a no-workie.
 
 I guess so.  :)
 
 So I tried the form-method method, and I get:
 Error Type: NotFound
 Error Value: None
 
 And no help in the traceback. :(
 
 The what method?  I'm sorry, I'm completely lost.

I made a form that took an input for id , and called the newItem(id)
method.

  If you're using the
 PTK's PersistentUserSource, I don't know anything helpful to tell you,
 'cause I haven't had time to look at it yet (too busy on ZPatterns, not to
 mention non-Zope work).

Yeah, I hear you. I am finally getting the time to start doing some
heavy work with LM and PTK later this month, so I am trying to get
caught up, so to speak. figured since i knew more abot pTK than LM, that
LM would be a good thing to start with. :)

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




[Zope-dev] Interfaces Wiki Changes

2000-06-06 Thread Chris Withers

Hi Michel,

I've been good and documented what I learned from the docs discussion in
the interfaces wiki.

Can you check and correct as appropriate please:
http://www.zope.org/Members/michel/Projects/Interfaces/ACPermissions
http://www.zope.org/Members/michel/Projects/Interfaces/QueryObject

Also, could the case sensitivity of each of the index types
(text|keyword|field) be documented in the Wiki?

cheers,

Chris

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




RE: [Zope-dev] (no subject)

2000-06-06 Thread Chris McDonough

I was kicking the idea of making one around, but I don't think I'll have
time to do it.

There's a document on how to write a Zope database adapter by Chris
Petrilli at:

http://www.zope.org/Members/petrilli/WritingADA

Since the Python layer has been (well) done by Alex, it shouldn't be too
hard to make one if you're OK with Python.

Good luck!

 -Original Message-
 From: kyn [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 07, 2000 12:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: [Zope-dev] (no subject)
 
 
 Hi Zope-developers,
 
 I try out Zope last week and was greatly impressed with the 
 flexiblity of the zope system.  Now, I am thinking of porting 
 my Company intranet to zope but I have one problem.  Our 
 company backend database servers (for items catelogs, leave 
 application ...etc) sits on Inprise Interbase server.   I 
 check through all the mailing list and unable to find an 
 adapter to it.
 
 Currently, I notice that Inprise has made Interbase an open 
 source database system on linux. Is there anyone looking into 
 coming out with an adapter on Interbase ?
 
 Or someone in the developing labs can give me guidelines on 
 how to write an adapter for Inprise Interbase on linux.  I 
 manage to get a copy python code that can access Interbase 
 server on linux.  Credit has to be given to Alexandra (email 
 :'[EMAIL PROTECTED]').
 
 Need advise ...
 
 
 bye ... kyn
 
 
 
 
 ___
 Zope-Dev maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope-dev
 **  No cross posts or HTML encoding!  **
 (Related lists - 
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope )
 

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




[Zope] Zope and IIS image path problem

2000-06-06 Thread Neil Burnett

Hi

I have followed brianh and jephte's instructions with success. Thanks chaps!

A small problem is that some  (but not all :-?) of the image paths in the
management screen are broken. I will continue to investigate, but if anyone
knows this problem (and the solution) I would be grateful for some advice.

Neil

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




[Zope] Can't find some products on www.zope.org

2000-06-06 Thread Petr Knapek

Hi Zopists,
today I tried to download 2 products for zope from www.zope.org (namely
'Photo' and 'A Simple Photo Album Product' and the server respond me
that the pages don't exist. This is not problem of these 2 products but
also other pages. I am in time stress and I need very urgent the above
noticed products. If somebody could send me those products it will be
perfect. I don't know when www pages will work correctly.

Petr 
-- 
Petr Knpek
NEXTRA Czech Republic, s.r.o., Veve 102, 659 10 Brno, Czech Republic
e-mail: mailto:[EMAIL PROTECTED]
tel:+420-5-41 558 394
FAX:+420-5-41 558 390

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

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




[Zope] GadFly DB and Zope

2000-06-06 Thread Jilani Khaldi

Hi,
I am recently using the database GadFly and yesterday, I discovered with
pleasure that it is part of Zope (ZGadflyDA); so, I will be happy if
somebody tells me with a little example, or point me where to find some
information to get GadFly interact with it Zope (just how to call field1
and field2 from the database test.gfd).

Thank you.

Jilani

ps.
Zope is really cool!

--
jk
___
http://space.tin.it/scuola/jkhaldi
FreeBSD ~ The Power to Serve



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




Re: [Zope] Can't find some products on www.zope.org

2000-06-06 Thread Chris McDonough

Something's hosed on Zope.org.  It won't be available for at least a few
hours.  This is baaad.  Sorry.

Petr Knapek wrote:
 
 Hi Zopists,
 today I tried to download 2 products for zope from www.zope.org (namely
 'Photo' and 'A Simple Photo Album Product' and the server respond me
 that the pages don't exist. This is not problem of these 2 products but
 also other pages. I am in time stress and I need very urgent the above
 noticed products. If somebody could send me those products it will be
 perfect. I don't know when www pages will work correctly.
 
 Petr
 --
 Petr Knápek
 NEXTRA Czech Republic, s.r.o., Veveøí 102, 659 10 Brno, Czech Republic
 e-mail: mailto:[EMAIL PROTECTED]
 tel:+420-5-41 558 394
 FAX:+420-5-41 558 390
 
 "Perl is worse than Python because people wanted it worse."
 Larry Wall, 14 Oct 1998
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] Missing how tos

2000-06-06 Thread Chris McDonough

Pierre, check back on zope.org in a few hours, it's having problems. 
The howto is still there, I'm sure.

Pierre Rougier wrote:
 
 hi all,
 I am looking for the documentation of the "multiple selection" type, but
 the "how to" does not exist anymore on zope.org. argh...
 Has anyone of u a copy of the documentation?
 If it is the case, please send me, or explain me how does it work
 
 (what I want is a ZClass propertie wich allow to choose an item in a
 list, I though multiple-selections were fine for that).
 
 Thanks for your attention.
 
 Pierre
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )

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




Re: [Zope] detail record editing

2000-06-06 Thread Stuart 'Zen' Bishop

On Mon, 5 Jun 2000, Robert Del Huerto wrote:

 database.  I'm stuck after that.  The form only has one 'action' so how
 would I get it to handle the right function depending on the button that
 was pushed?  I'm no HTML expert but I've looked around quite a bit for

It can be done with some badly documented magic (see 
http://www.zope.org/Members/Zen/howto/FormVariableTypes when zope.org
is working again :-P)

Example:

form action='itdoesntmatter' method=post
input name=afield
input type=submit name="delete:method" value=" Delete "
input type=submit name="modify:method" value=" Modify "
/form

In this example, the action is never called. If the user clicks on
the delete button, the method 'delete' (generally in the same folder as this
form) is called instead of the action. Similarly, click on Modify and the 
method called 'modify' is called instead of the action.

I'll try to remember to put this up as a tip on zope.org when its possible...

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University



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




Re: [Zope] How to backup and restore a Zope application

2000-06-06 Thread Itamar Shtull-Trauring

Jilani Khaldi wrote:

 is there a way to backup and restore a Zope application so I can move it
 from a coputer to another?
 I have seen in the utility directory but I found only "load_site.py".
 Thanks.

The Zope database is stored in var/Data.fs - that's most likely all you need
for a backup.  

If you want to have the same Zope install running on a different computer
and If you've installed Zope Products you'll also need to copy them from
lib/python/Products, and any External Methods you added from Extensions/.

-- 
Itamar S.T.  [EMAIL PROTECTED]   
"It don't get thingier than that!"

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




Re: [Zope] Too many Roles?

2000-06-06 Thread Stuart 'Zen' Bishop

On Mon, 5 Jun 2000, David Ornstein wrote:

  Is it crazy to have 20 or 30 roles in my Zope system? 

Nah.

Note that you need to create roles at a point in the tree, and they 
then appear and are usable on the management interfaces from that point
down.

I have to restrict access to resources by student subject or course.
I'm currently only using about 60, but its quite possible I'll quickly
end up in in the hundreds when more students start using Zope resources.
The trick is to only 'create' the role when you need to grant rights
to it. A role exists only in the point in the tree it is created and
down, and there is nothing to stop you creating the same role in
multiple locations. If you create them all in your root folder, your
security screens become useless, but it is fine if you only have
5-10 defined at any particular point.

-- 
Stuart Bishop  Work: [EMAIL PROTECTED]
Senior Systems Alchemist   Play: [EMAIL PROTECTED]
Computer Science, RMIT University


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




Re: [Zope] www.mysite.com/Members/someone

2000-06-06 Thread Bill Anderson

Ian Sparks wrote:
 
 I have the source here, perhaps you can point me to where I should be
 looking - the PTK is reasonably large.
 
 AFAICS the PTK uses a folder called Members and adds folders under that for
 each registered user :
 
 Members
Fred
   FredContent1
   FredContent2
   FredContent3
Jim
   JimsContent
 
 Nothing database-driven about that.


See below...

...

 I want to produce a home-page on my site using a URL like :
 
 http://www.zope.org/Members/Fred
 
 
 I'm a little confused as to how I would go about this in a dynamic way
 where
 I would pull the contents of the page out of a database.
 
 A non-database way would be to :
 
 /Members (folder)
 /Fred (sub-folder or Document)
 /Jim (sub-folder or Document)
 /Jane (sub-folder or Document)
 
 But I want to be able to generate the /Members/Fred page dynamically.


What exactly would you generate this off of?

I would guess from data in a databse (SQL)?

If so, you could do a select statement to ge tthe userlist.
You would then make a 'template' that built a page from the data in a
database, where username==username (ie Fred).

But, you could be asking for something completely different. ;)

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




[Zope] Re: [Zope-dev] [ANN] Zope at Linuxtag 2000 in Stuttgart

2000-06-06 Thread Gregor Hoffleit

I'll try very hard to be able to show up at least one day at the LinuxTag;
I'm going to try to help out at the Debian booth as well.

How about I18N as a topic for one of the discussions ? I guess many European
sites and developers struggle with problems of I18N.

Another topic I'm very interested in is packaging and distribution of Zope
extensions: keywords are Distutils, packages, zexp's, a package/dependency
tool like Debian's APT, distribution etc. pp., cf. Simon Michael's recent
rant about ZWiki/ZWikiWeb.

Looking forward to meet you,

Gregor



On Fri, Jun 02, 2000 at 01:51:33PM -0700, Stephan Richter wrote:
 The Linuxtag will be from June 29th (Thursday) to July 2nd (Sunday). It 
 will be in the Exhibition Center (Messegelaende) in Stuttgart, Germany.
 
 I know we have little time to organize the conference (26 days). We have 
 one day to fill with speeches and discussions, so please let me know if 
 there are people willing to give some talks or want to have "Special 
 Interest Group" discussions, like E-commerce, XML or Portals in Zope. I 
 would also like to know, who would be able to come, so I can give the 
 Linuxtag staff some feedback.

 PGP signature


Re: [Zope] www.mysite.com/Members/someone

2000-06-06 Thread Ian Sparks

Bill,

Thanks for the reply. Yes, I would be getting the data from a SQL statement.

Let me explain what I am trying to achieve.

I want to structure my site like this :

http://mysite.com/Members/username

so if someone comes to my site with the URL :

mysite.com/Members/Ian

They would see the Members page for "Ian" (we'll ignore permissions and
security for now).

As I have said before, one way of doing this is to have a Zope structure :

/Members
   /Ian
   /Jim
   /Jane

Where Members is a folder, Ian,Jim and Jane are Sub-folders of Members.

But I don't want to do this. What if I add a million users?  Then I end up
with a million member folders which is difficult to manage from Zope. I want
to store my users in a database.

I have no problem creating a DTML method which calls a SQLMethod passing a
parameter "username=Ian" to pull out the data and construct the HTML for
delivery.

The problem I have is how to construct my site. What I want is something
like :

/Members
   /*

Where * is a method which catches the rest of the url (/Ian) and does all
the necessary processing to return the formatted user page for Ian.

I know I'm missing the Zope Zen of this because it must be easy to do in
such a well thought-out product.

The thought I had was that "Members" could be a SQL method which takes
"username" as a parameter, Ian then is passed in as that Username and the
necessary data is pulled from the DB. This is fine except that I still need
some other method to render the HTML page for delivery to the user and this
would extend my url to : www.mysite.com/Members/Ian/rendermethod.

The other problem with this is that it clutters the root with the Members
SQLMethod and the rendermethod DTML document. I might start adding more
URL's like : www.mysite.com/Members/Ian/preferences or
www.mysite.com/Members/Ian/pastposts and the "preferences" and "pastposts"
documents would end up in the root too. All these things belong in a Members
folder, not at the root.

I'm missing something important, I'd appreciate any enlightenment you could
bring to this.

- Ian.










- Original Message -
From: "Bill Anderson" [EMAIL PROTECTED]
To: "Ian Sparks" [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 06, 2000 10:32 AM
Subject: Re: [Zope] www.mysite.com/Members/someone


Ian Sparks wrote:

 I have the source here, perhaps you can point me to where I should be
 looking - the PTK is reasonably large.

 AFAICS the PTK uses a folder called Members and adds folders under that
for
 each registered user :

 Members
Fred
   FredContent1
   FredContent2
   FredContent3
Jim
   JimsContent

 Nothing database-driven about that.


See below...

...

 I want to produce a home-page on my site using a URL like :
 
 http://www.zope.org/Members/Fred
 
 
 I'm a little confused as to how I would go about this in a dynamic way
 where
 I would pull the contents of the page out of a database.
 
 A non-database way would be to :
 
 /Members (folder)
 /Fred (sub-folder or Document)
 /Jim (sub-folder or Document)
 /Jane (sub-folder or Document)
 
 But I want to be able to generate the /Members/Fred page dynamically.


What exactly would you generate this off of?

I would guess from data in a databse (SQL)?

If so, you could do a select statement to ge tthe userlist.
You would then make a 'template' that built a page from the data in a
database, where username==username (ie Fred).

But, you could be asking for something completely different. ;)

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





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




Re: [Zope] I18N

2000-06-06 Thread Andrew Kenneth Milton

+[ Gijs Reulen ]-
| Gregor Hoffleit [EMAIL PROTECTED] wrote:
| 
|  How about I18N as a topic for one of the discussions ? I guess many European
|  sites and developers struggle with problems of I18N.
| 
| What is I18N ? I did not know I am struggling with that :-) ?

InternationalisatioN (s/s/z/ if you're an american) it's called
I18N because there are 18 letters between the I and the N.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




[Zope] Products, Factories, Permissions!!

2000-06-06 Thread Frances Keegan

I have a problem regarding permissions (I think).  I am using version 2.1.4.
I have a set-up like the one below:

STAFF_FOLDER_HOME   -   ONE named user with role as manager 
for this
entire folder and its contents.
(permitted to do all normal managerial 
 tasks).  Anonymous can
View, View  Contents Information, 
SearchZCatalogue  Use
Database Methods.

STAFF_MEMBER1_FOLDER-   As above
STAFF_MEMBER2_FOLDER-   As Above
STAFF_MEMBER3_FOLDER-   As Above


I have created a template using designer, builder etc., and have added this
to the AddList.  The template itself works ok; the problem is when the
template is used within these folders.

The manager of any of the above folders is able to choose the Instant Site
from the AddList, and fill in all the details in the form but when the form
is submitted it asks for your password again.  When you enter your password,
even though correct, it tells you that authorisation has failed and to try
again.  Eventually you are told that you are not authorised to
manage_changeProperties, even though these have been specified in the
Permissions tab as something the manager is allowed to do.

Please can anyone help - I have being going round in circles for what seems
like forever.

Thanks,
Frances


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




Re: [Zope] www.mysite.com/Members/someone

2000-06-06 Thread J. Atwood

Ian,

Make "Members"  a DTML Method and inside that method you call a ZSQL 
Method (made previously) that takes the parameter of 'userid=name'. 
Store the name of the member in the cookie and when the visit 
/members/ or /members/name it gets all the data from the SQL Database 
and publishes it any way you want.

Build any other functionality in the "Members" DTML Method to allow 
for /members/name/preferences or any other parameter you want to pass 
it. Just pick it up in an DTML-IF statement and do the rest.

Good luck.

J



The thought I had was that "Members" could be a SQL method which takes
"username" as a parameter, Ian then is passed in as that Username and the
necessary data is pulled from the DB. This is fine except that I still need
some other method to render the HTML page for delivery to the user and this
would extend my url to : www.mysite.com/Members/Ian/rendermethod.

The other problem with this is that it clutters the root with the Members
SQLMethod and the rendermethod DTML document. I might start adding more
URL's like : www.mysite.com/Members/Ian/preferences or
www.mysite.com/Members/Ian/pastposts and the "preferences" and "pastposts"
documents would end up in the root too. All these things belong in a Members
folder, not at the root.

I'm missing something important, I'd appreciate any enlightenment you could
bring to this.

- Ian.

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




Re: [Zope] dtml-tree help

2000-06-06 Thread Pete Kazmier

On Mon, Jun 05, 2000 at 11:10:30PM -0400, Chris McDonough wrote:
 Pete Kazmier wrote:
  
  Hi,
  
  I think this is a simle question but I've been struggling for the last
  two days trying to get it to work.  I have a heirarchy of folders
  (really a custom container class) and files (really a custom object).
  I want to emulate the Window's Explorer interface, left side of page
  occupied with a tree of the entire hierarchy, and the right side
  contains the details.
  
  Is this possible?  Is it also possible to synchronize both views, for
  example, if the user decides to navigate with the right half of the
  screen, the left half would update accordingly?  Does anyone have any
  pointers for me or links or examples?
 
 How about the Zope mgmt interface?

Duh .. guess I should have thought of that ...

  One other question, how do I refer to a specific object in a python?
  If /status is a folder, how would I refer to the /status folder from
  any number of subfolders within?
 
 acquisition.  :-)  i'd give a longer answer but it would take five
 pages.

Boy .. how embarrassing .. I must've taken a stupid pill or something
this morning.  The problem I was having is that my top level container
was called 'status' but each of these containers also has a 'status'
attribute thus when I was trying to access the root container I kept
getting the 'status' attribute of my current folder ... I guess I'll
have to pick better names to avoid these sorts of clashes in the
future. 

Thanks for bringing me back to reality ...

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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




[Zope] ZOPE, Xemacs, html-mode, indentation

2000-06-06 Thread Alastair Burt

Bob Finch [EMAIL PROTECTED] wrote:

  I just ran into the same problem.  It appears that XEmacs html-mode
  parses the html in the buffer.  If it doesn't parse correctly, the
  indentation stuff doesn't work.  To see this, try editing something
  without any dtml in it -- indentation should work fine.  As soon as
  you add dtml-var standard_html_header at the top, indentation stops
  working. 
  
  I guess the fix is to write a dtml DTD for XEmacs html-mode.  Has
  anyone already done this?

I tried hacking one up.  You can get it from:

  http://www.zope.org/Members/alburt/dtml_mode/index_html

--- Alastair


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




Re: [Zope] How to backup and restore a Zope application

2000-06-06 Thread Michael Spalinski

 "Itamar" == Itamar Shtull-Trauring [EMAIL PROTECTED] writes:

Itamar Jilani Khaldi wrote:

 is there a way to backup and restore a Zope application so I can
 move it from a coputer to another?  I have seen in the utility
 directory but I found only "load_site.py".  Thanks.

Itamar The Zope database is stored in var/Data.fs - that's most likely
Itamar all you need for a backup.

If you store anything in the Gadfly database which comes with Zope you also
need ZOPE/var/gadfly .

If your application uses any external methods you also need
ZOPE/Extensions. 

If your application uses any products installed by you then you also need
ZOPE/lib/python/Products. 


--M.



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




Re: [Zope] !--#var title-- = Zope ?!

2000-06-06 Thread J. Atwood

"Zope" is the name of the main folder so when you do dtml-var title 
you are getting that folder's title.

dtml-var title_or_id will give you the title or id of the object 
that it is within (DTML Document title or id). That is probably what 
you want.

J


At 1:53 PM +0200 6/6/2000, Jonathan wrote:
Hi all,

Don't know if this has been discussed before, but I am experiencing 
a weird problem with 'title' and 'title_or_id'; no matter what I 
specify as 'title' value, Zope returns 'Zope' (every page is titled 
'Zope')

Vanilla binary install of Zope 2.1.6, just started a new project. Any ideas?

Thnx
Jonathan

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




Re: [Zope] Strange Zope behavior/Instability (Zope going down)

2000-06-06 Thread Harald Ragger

Jason Spisak asked:
 Do you mean that zope wouldn't restart? Even if you restarted the server?

Yes, zope didnt restart:-(  but i'm not sure if its a problem with zope or
just with the ms-cluster server.



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




[Zope] (no subject)

2000-06-06 Thread Alexandre A. Drummond Barroso

You both had the same problem I have now: make Oracle 8i (in my case, Oracle
8.1.6) work with Zope.
DCOracle is working well (Makefile attached to this message) but ZOracle
isn't running yet.

We are posting e-mails about it on the list for a while and nobody answered,
so I must think that nobody on Zope universe is using Oracle 8i (neither NT
nor Linux Oracle 8i client).
There isn't any detailed documentation about it. The ZOracle installation
instructions are simple but, in my opinion, incomplete.

To solve this situation, I'm making a call to everybody that uses or wants
to use Zope with Oracle 8i. My goal is finally document the installation
process and make it work properly.

Please contact me ASAP.

Regards,

Alexandre A. Drummond Barroso.

 Makefile


[Zope] Re: Oracle 8i setup

2000-06-06 Thread Michal Bukovjan

Hey guys,

I am now lucky to get the Oracle 8i connection working. Here is what I did :

1) Download and install the latest Oracle 8.1.6 Release 2.
- the previous Oracle 8.0.5 and 8.1.5 are broken as hell, the executables will
not even link and there is a lot of unresolved symbols. I wonder on which
distro Oracle tested that, it will not work on Debian, definitely. Did not
expect Oracle to be such CRAP!!! 8.1.6R2 is much better.
- be sure not to want too much from Java wizards. They like to crash a lot, in
both 8.1.5 and 8.1.6

1.1) When asked to run a script root.sh as root, first check the script and
correct the path to awk. In script it thinks it is /bin/awk, on Debian it is
/usr/bin/awk. Other distros may vary. Run the script as root.

2) Download latest beta of DCOracle

3) Download and install the latest beta of ZOracleDA. Replace DCOracle included
in the product with the latest beta of DCOracle, which includes Setup-8.1.5 for
linking with Oracle 8i. It should build now according to instructions.

4) Install ZOracleDA as outlined in docs

4.5) Not sure about this, but hell, my setup now works. So you may try...
a) Put ORACLE_HOME, ORACLE_BASE, ORACLE_SID into /etc/profile, so
that everyone has these set up.
b) Symlink tnsnames.ora for
$ORACLE_HOME/product/8.1.6/network/admin to /etc/tnsnames.ora.
c) Double check file permissions on $ORACLE_HOME/*
d) Edit /etc/oratab as needed, start up the databases.

5) Restart Zope.

Now it works for me (Zope 2.1.4), and works for 2 days, did not try any heavy
loads, etc, though. At least it connects and I can browse inside the database.

It gave me some strange error like invalid connection string for some time, but
probably after performing something from 4.5, it now works well, Zope will not
freeze, and it works for two days now.

Hope this helps anyone, we spent three+ days getting this f*cking Oracle to
work :-(

Michal Bukovjan


"Alexandre A. Drummond Barroso" wrote:

 You both had the same problem I have now: make Oracle 8i (in my case, Oracle
 8.1.6) work with Zope.
 DCOracle is working well (Makefile attached to this message) but ZOracle
 isn't running yet.

 We are posting e-mails about it on the list for a while and nobody answered,
 so I must think that nobody on Zope universe is using Oracle 8i (neither NT
 nor Linux Oracle 8i client).
 There isn't any detailed documentation about it. The ZOracle installation
 instructions are simple but, in my opinion, incomplete.

 To solve this situation, I'm making a call to everybody that uses or wants
 to use Zope with Oracle 8i. My goal is finally document the installation
 process and make it work properly.

 Please contact me ASAP.

 Regards,

 Alexandre A. Drummond Barroso.

   
Name: Makefile
MakefileType: unspecified type (application/octet-stream)
Encoding: quoted-printable


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




Re: [Zope] Looking forward to a better future at prototype world

2000-06-06 Thread josh on


 This is REALLY cool.  I can't manage to login though.


oh thanks,

ok, that might be because you didn't put in a tagline or it had punctuation
that sql doesn't like.

If not that is bad.

I will try and sort this out it is a big bug!

thanks for the feedback.


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




Re: [Zope] !--#var title-- = Zope ?!

2000-06-06 Thread Jonathan

"Zope" is the name of the main folder so when you do dtml-var 
title you are getting that folder's title.

dtml-var title_or_id will give you the title or id of the object 
that it is within (DTML Document title or id). That is probably what 
you want.

Well, that don't work either. And if I am correct; dtml-var 
title_or_id yields the same results as !--var title_or_id-- right?

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




[Zope] (no subject)

2000-06-06 Thread Anthony Baxter


 "Alexandre A. Drummond Barroso" wrote
 You both had the same problem I have now: make Oracle 8i (in my case, Oracle
 8.1.6) work with Zope.
 DCOracle is working well (Makefile attached to this message) but ZOracle
 isn't running yet.

You're doing it the difficult way - just use -lclntsh for the link line.

If you download the recent update to DCOracle, you should find it builds
out of the box.

Anthony

-- 
Anthony Baxter [EMAIL PROTECTED]   
It's never too late to have a happy childhood.


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




Re: [Zope] I18N

2000-06-06 Thread Andrew Kenneth Milton

+[ Pierre-Julien Grizel ]-
| 
| Do you mean to talk about products or techniques (or both) ?...
| I set a multilingual site that works quite perfectly, with almost no product at
| all (just a few external methods to make things easier).

Haha. Your french humour was lost on me the first time, now I understand
:-)

| I can explain my schema if some of you want to.

No no, I've done enough I18N in my life, please no more :-)

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




[Zope] The ZPublisher :method type (was RE: [Zope] detail record editing))

2000-06-06 Thread Jeffrey Shell

 My solution for this kind of problem is to have a DTML method 
 that delegates
 to the
 appropriate DTML methods. Therefore each button gets a value 
 and a name, eg.
 input type=submit name=action value=delete
 input type=submit name=action value=modify

Actually, you can use the Bobo ":method" type.  It's
documented...somewhere :).

You can do:

input type="submit" name="mthDelete:method" value="delete"
input type="submit" name="mthModify:method" value="modify"

and the Publisher will add the selected method to the end of the path.
Make your form action be dtml-URL1; or "./"

There's a default_method type too, I think you *might* see it in action
on the "Rename" form in the Zope management screens.


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




[Zope] deleting objects

2000-06-06 Thread Webmaster

Sorry if this one is obvious.

I created a dtml method named "dev_header" in my site root. In another
folder further down my tree I created another "dev_header" with different
info. I then deleted the second "dev_header"  (/news/dev_header) expecting
my pages to then grab the "dev_header" from the root directory, but they
don't. Why?

Jamey

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




Re: [Zope] Re: [Zope-dev] [ANN] Zope at Linuxtag 2000 in Stuttgart

2000-06-06 Thread Stephan Richter

At 11:45 AM 6/6/00 +0200, Gregor Hoffleit wrote:
I'll try very hard to be able to show up at least one day at the LinuxTag;
I'm going to try to help out at the Debian booth as well.

How about I18N as a topic for one of the discussions ? I guess many European
sites and developers struggle with problems of I18N.

Another topic I'm very interested in is packaging and distribution of Zope
extensions: keywords are Distutils, packages, zexp's, a package/dependency
tool like Debian's APT, distribution etc. pp., cf. Simon Michael's recent
rant about ZWiki/ZWikiWeb.

Please check http://www.zope.org/Members/Linuxtag. Simon Cole may come and 
talk about ZWiki. They are not 100% sure yet.

Would you be willing to give a talk on I18N? Or one of your developers? I 
don't know what I am going to talk about, so I can talk a little about 
packaging. Are the Distutils really necessary. Zope handles that inside. If 
you update the .py files, it updates all the object's instances respectively.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development  Technical Project Management


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




Re: [Zope] I18N

2000-06-06 Thread Stephan Richter


I can explain my schema if some of you want to.

Would you like to come to the Linuxtag and talk about it?

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development  Technical Project Management


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




[Zope] Current date in DTML

2000-06-06 Thread Ivan Raikov


Hey all,

How can I get the current date  time (preferably as a
DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
object, because the DateTime module is not imported.

Thanks,
Ivan Raikov

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




Re:[Zope] zope:change strings on place

2000-06-06 Thread Marcel Preda


- Original Message -
From: Vincent Maton [EMAIL PROTECTED]
Sent: Tuesday, June 06, 2000 5:12 PM

 Can you help me ?

 I have some dates in a DataBase but I receive them in string after a query
 and it's in international format, I would like transform it in french
 format.
 With dtml-var date fmt=%d%m%y, it doesn't work.

 Do you know how can I transform it with strings:

 I receive : 2000-04-13
 I want  : 13-04-2000
 or:  13 april 2000 (this one is better but ???)


There's More than One Way to Do It :)


If date is a DateTime object you have to use:

dtml-var date fmt="%d-%m-%Y"
06-06-2000
or
dtml-var date fmt="%d-%b-%Y"
06-Jun-2000

or
dtml-var date fmt="%d-%B-%Y"
06-June-2000
See python doc ,  module "time",function "strftime "


If date is NOT a DateTime object (is a string like '2000-06-06') you have to
use:
dtml-var "'%s-%s-%s' %(date[8:10],date[5:7],date[0:4])"
06-06-2000


PM



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




Re: [Zope] Current date in DTML

2000-06-06 Thread Chris Withers

Ivan Raikov wrote:
 How can I get the current date  time (preferably as a
 DateTime.DateTime object) in DTML? I cannot instantiate a DateTime

dtml-var ZopeTime or dtml-var "_.DateTime()"

cheers,

Chris

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




Re: [Zope] Current date in DTML

2000-06-06 Thread Stephan Richter

At 12:14 PM 6/6/00 -0400, Ivan Raikov wrote:

Hey all,

How can I get the current date  time (preferably as a
DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
object, because the DateTime module is not imported.

dtml-var ZopeTime

Maybe a lower case 't'.

Regards,
Stephan
--
Stephan Richter
CBU - Physics and Chemistry
Web2k - Web Design/Development  Technical Project Management


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




Re: [Zope] zope:change strings on place

2000-06-06 Thread Chris Withers

Vincent Maton wrote:
 I receive : 2000-04-13

 I want  : 13-04-2000

dtml-var "_.DateTime(date)" fmt="%d-%m-%Y"

 or:  13 april 2000 (this one is better but ???)

dtml-var "_.DateTime(date)" fmt="%d %B %Y"

Try dtml-var "_.DateTime(date)" fmt="%x"

...as well

cheers,

Chris

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




[Zope] fmt weirdness

2000-06-06 Thread Chris Withers

dtml-var "_.DateTime()" fmt="%d %B %Y"

...works fine

dtml-var "_.DateTime()" fmt='%d %B %Y'

...barfs with a 'Document Template Parse Error':
Invalid attribute name, "%B", for tag dtml-var "_.DateTime()" fmt='%d
%B %Y', on line 5 of index_html

weird huh?

ideas anyone?

cheers,

Chris

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




Re: [Zope] Current date in DTML

2000-06-06 Thread Jason Spisak

Ivan Raikov writes:

 
 Hey all,
 
 How can I get the current date  time (preferably as a
 DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
 object, because the DateTime module is not imported.
 

dtml-var ZopeTime

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


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

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

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




Re: [Zope] fmt weirdness

2000-06-06 Thread Evan Simpson

- Original Message -
From: Chris Withers [EMAIL PROTECTED]
 dtml-var "_.DateTime()" fmt="%d %B %Y"

 ...works fine

 dtml-var "_.DateTime()" fmt='%d %B %Y'

 ...barfs with a 'Document Template Parse Error':

The dtml parser only likes double-quoted attribute values. It sees the above
as having attributes "fmt='%d", "%B", and "%Y'".

Cheers,

Evan @ digicool  4-am


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




Re: [Zope] Current date in DTML

2000-06-06 Thread Luis Cortes

On Tue, 06 Jun 2000, you wrote:
 Hey all,
 
 How can I get the current date  time (preferably as a
 DateTime.DateTime object) in DTML? I cannot instantiate a DateTime
 object, because the DateTime module is not imported.
 
 Thanks,
 Ivan Raikov



I saved this answer, because I thought I might need it -- might be what you
need:

==
From: "Eric L. Walstad" [EMAIL PROTECTED]To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]


I think I've got the syntax, Jeff:

dtml-var "_.DateTime(birthday)" fmt=aCommon

- birthday is a field returned from my Z SQL Method
- The "_.DateTime(birthday)" part creates a DateTime object
- The '_' is a reference to the DTML namespace
- The DateTime() function creates the DateTime object
- The fmt=aCommon part formats it to look like: "May 7, 1966 12:00 am"

You can change the format by changing the fmt= so that  is the
format you want from Appdx A of the Zope DTML reference.

Eric.

===



If the you the current time, you might also try using  ZopeTime instead of
"_.DateTime(birthday)".  

have fun!
Luis.

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




[Zope] ZOracleDA binary for NT?

2000-06-06 Thread Satheesh Babu

Hi folks,

I've been trying to access a Oracle DB with
ODBC driver from NT4 running Zope 2.1.6. 

Lot of problems and now I'm stumped in that this
driver does not seem to support LONG data types.

ZOracleDA on Linux works beautifully, but
I'm required to build the site on NT (sigh).

So, any one out there has a precompiled ZOracleDA
for NT, which he/she doesn't mind sharing with me?

Or, any hints on using LONG datatypes with ZODBC driver?

Thanks in advance.

   ~  V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348)
  . . http://vsbabu.csoft.net
  /V\ - Duct tape is like the force.  It has
 // \\  a light side, and a dark side, and
/(   )\ it holds the universe together ...
 ^'~'^

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




[Zope] Problems installing PTK

2000-06-06 Thread Joe Hewitt


So I followed all the instructions on the installation page, restarted
zope (the PTKBase and PTKDemo do not appear to be broken) and tried to
import DemoPortal.zexp, but I keep get a page that says:

! The object DemoPortal does not support this operation

What can I do to solve the problem?  I'm running Zwiki on this machine
with Mandrake Linux 7.0.

Any help would be welcomed,
Joe

-- 
Joe Hewitt  email: [EMAIL PROTECTED]
Linux Coordinator
Washburn University Law School


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




Re: [Zope] !--#var title-- = Zope ?!

2000-06-06 Thread Nick Garcia

Jonathan wrote:
 
 "Zope" is the name of the main folder so when you do dtml-var
 title you are getting that folder's title.
 
 dtml-var title_or_id will give you the title or id of the object
 that it is within (DTML Document title or id). That is probably what
 you want.
 
 Well, that don't work either. And if I am correct; dtml-var
 title_or_id yields the same results as !--var title_or_id-- right?

Yes, that is correct.  I think what you want is dtml-var
document_title which should get you the title of the document whether
it's a DTML Method or a DTML Document.
-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.com

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




[Zope] WorldPilot - Regular messages are attachments?

2000-06-06 Thread Bryan Stillwell

I'm posting this message to the Zope mailing list, because I haven't had
much luck with emailing the WorldPilot folks directly and I've seen posts
about WorldPilot in the list archives.

Here's my problem.  I've created an rpm of WorldPilot that follows all the
instructions that are in the INSTALL.txt file that comes with it, I've
installed courier-imap and tested that it works correctly with Netscape
Mail, I've installed qmail and tested that I can send and receive email,
but the problem I have is when I try and view messages in my inbox using
WorldPilot.

If you want to know what I see, here's some screen shots of what happens:

http://www.verinet.com/~arcane/worldpilot/wp_inbox.png
http://www.verinet.com/~arcane/worldpilot/wp_message.png
http://www.verinet.com/~arcane/worldpilot/wp_zopeerror.png

Here's the traceback I received:

  Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214, in 
publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179, in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 202, in 
zpublisher_exception_hook
(Object: RoleManager)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 165, in publish
  File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in mapply
(Object: getpart)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 102, in call_object
(Object: getpart)
  File /usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 1878, in 
getpart
(Object: RoleManager)
  File /usr/share/zope/lib/python/Products/WorldPilot/WorldPilot.py, line 856, in 
getPart
  File /var/tmp/python/python-root/usr/lib/python1.5/mimetools.py, line 146, in decode
ValueError: unknown Content-Transfer-Encoding: 8bit

--


Also I want to bring to attention that in the wp_inbox.png picture that I
don't have any folders to choose from.  Does anyone know where those would
be at?

Another strange thing is the path to the mimetools.py file in the
traceback: /var/tmp/python/python-root/usr/lib/python1.5/.  The
/var/tmp/python/python-root path should have only been used during the
creation of the python rpm, but it's showing up now.  It doesn't seem to
matter that much though, because it is able to find mimetools.py at the
correct path of /usr/lib/python1.5/mimetools.py.  The python-root
directory doesn't exist either.  I didn't recompile the python rpm either,
it's the stock rpm that comes with Redhat 6.2.


My setup is as follows:

Redhat   6.1
qmail1.03+patches-8j (Set up to use Maildirs)
courier-imap 0.33-1 (IMAP program that supports qmail's Maildir format)
python   1.5.2-13
Zope 2.1.6-1
worldpilot   1.0.4-1 (Installed with my own rpm)


Thanks for any help any one can provide in advance!  Hopefully I can get
these problems resolved and I could then post the rpm for others to use.


Bryan Stillwell

-- 
http://www.tummy.com/ Consulting and Software for Linux and Unix
KRUD - Kevin's Red Hat Uber Distribution - the Freshest Red Hat every month



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




Re: [Zope] I18N

2000-06-06 Thread Dieter Maurer

  Do you mean to talk about products or techniques (or both) ?...
  I set a multilingual site that works quite perfectly, with almost no product at
  all (just a few external methods to make things easier).
  
  I can explain my schema if some of you want to.
I am interested.


Dieter

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




Re: [Zope] GadFly DB and Zope

2000-06-06 Thread Dieter Maurer

Hi Jilani

  I am recently using the database GadFly and yesterday, I discovered with
  pleasure that it is part of Zope (ZGadflyDA); so, I will be happy if
  somebody tells me with a little example, or point me where to find some
  information to get GadFly interact with it Zope (just how to call field1
  and field2 from the database test.gfd).
  
  Thank you.
Zope looks for directories in "var/gadfly" as possible data sources
for Gadfly.

You can use it like any other DA -- see the ZSQL Methods User Guide
for details.

At least an earlier version of Gadfly was cribbled in Zope (2.1.0).
It did not write changes to disk, such that each Zope restart
removed any changes to the Gadfly database.

I may still find the patch I made for this. However, I am not sure,
whether it is still necessary and whether it still can be applied
without problems.


Dieter

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




[Zope] LONG datatype with ODBC adaptor

2000-06-06 Thread Satheesh Babu

Hi,

I'm using ODBC connection to an Oracle 8i database
on NT4. Zope 2.1.6 is also running on NT. The connection
is through ZODBC adaptor through Oracle's ODBC driver.

One problem though, we can't select LONG columns
from the table. Any patch/solution/work around
for this?

Thanks

   ~  V.Satheesh Babu [EMAIL PROTECTED](Xt: 5348)
  . . http://vsbabu.csoft.net/
  /V\ - Duct tape is like the force.  It has
 // \\  a light side, and a dark side, and
/(   )\ it holds the universe together ...
 ^'~'^

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




[Zope] trouble with acquisition

2000-06-06 Thread Erik Myllymaki

Hello,

I am new to OOP and Zope so please forgive me if I am being a chowderhead
;-)

I have a root report folder called "ReportParent". Within this folder, I
have 47 folders called, for simplicity, "report1, report2 ... reportN".
Within each of these folders I have a ZSQL query called "query" that is a
simple select statement.

In the ReportParent folder, I have an external method called columnNames:

#---
def columnNames(self):
""" docstring """
fieldnames = []
tempList = []
res=self.query()
columns = res._schema.items()
for (name,value) in columns:
 tempList.append((value,name))
tempList.sort()
for name, value in tempList:
 fieldnames.append(value)
return fieldnames
-

This returns the column names of the batch returned by the "query" ZSQL
Method in each reports1..N folder. In each folder is also an "index_html"
DTML Doc that renders the batch returned from the ZSQL Method:

-
dtml-var standard_html_header
Created for dtml-var "REQUEST.AUTHENTICATED_USER.getUserName()" on
dtml-var ZopeTime fmt="%d/%m/%Y" at dtml-var ZopeTime fmt="%H:%M" br
p
table border="2"
  tr
  dtml-in columnNames
   dtml-comment Click on column header to re-order by that
column!/dtml-comment
tda href="dtml-var URL1?orderby=dtml-var sequence-item"dtml-var
sequence-item/a/td
  /dtml-in
  /tr
  dtml-in query
  tr
 dtml-in sequence-item
 td align=rightdtml-var sequence-item/td
 /dtml-in
  /tr
/dtml-in
/table
/p
dtml-if "REQUEST.AUTHENTICATED_USER.getUserName() == 'root'"
hr
p
SQL Source:brpre
dtml-var expr="_.string.replace(query(src__=1),_.chr(0) ,'hr')"
/pre/p
/dtml-if
dtml-var standard_html_footer


I can call these queries with - www.mysite.net:8080/ReportParent/reportN and
get the desired results.

I have two questions on how I would like to change things:

1. The DTML Doc "index_html" is the same in the case of 45 of the 47 reports
folders. Seems to me I should be able to move the common index_html up to
the ReportParent folder, and just leave the two specialized ones where they
are, in their report? folders and continue to call the reports the same way.
Those that have a local index_html will use that, the others will look up
the hierarchy and find the common one in ReportParent. However, when I do
this and call the reports with the same URL I get:
"Error Type: AttributeError - Error Value: query" ?
Seems the index_html DTML Doc (or columnNames extended Method) can't find
"query" below it. How do I address this properly?

2. How do I pass in the ZSQL Method object to the external method
"columnNames.py"?
I'd like to name the queries what I want and reuse this method anywhere,
without the query having to be named "query". Out of frustration, I named
all the queries with the same name and then addressed "query" explicitly in
the external method, because no matter what I tried, I couldn't get the
cloumnNames methos to accept the ZSQL Method name as a second parameter?!

Thanks for your input,

Erik Myllymaki
[EMAIL PROTECTED]


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




[Zope] Deleting folders from root

2000-06-06 Thread Josh Glover
When I try to delete a folder from the root of Zope, it does not allow
me to do so.  No error message, just displays the index_html method in
my browser window.  Same story if I attempt to rename them.  Any ideas? 

Thanks,
Josh Glover

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


Re: [Zope] detail record editing

2000-06-06 Thread ethan mindlace fremen

Robert Del Huerto wrote:

 +---+---+-++
 |   |Doe|Jane |$100.00 |
 +---+---+-++
 | X |Doe|John |$250.00 |
 +---+---+-++
 |   |Haggis |Meister  |$100.00 |
 +---+---+-++
 |   |Zoper  |Doper|$723.00 |
 +---+---+-++
 | +--+  +--+  +--+ |
 | |   ADD|  |  MODIFY  |  |  DELETE  | |
 | +--+  +--+  +--+ |
 +--+

You can have as many action="submit"'s as you want.

Untested:

input type="submit" name="add" value="1"
input type="submit" name="modify" value="1"
input type="submit" name="delete" value="1"

The form only submits the value of "successfull" form items, so, on your
form's action method:


dtml-if add
  do your adding thing
dtml-else
  dtml-if modify
do your modifying thing
  dtml-else
do your deleting thing
  /dtml-if
/dtml-if

~ethan @ digicool

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




[Zope] Mozilla problem

2000-06-06 Thread Timothy Grant

Hi,

I've recently started experimenting with Mozilla M16. While my pages
seem to work beautifully, I can't get into any of the management
screens. When I add /manage to the URL, I get nothing, no authentication
box no error, nothing.

Am I missing something, or is Mozilla missing something?

-- 
Stand Fast,
tjg.

Timothy Grant [EMAIL PROTECTED]
Chief Technology Officer  www.exceptionalminds.com
Red Hat Certified Engineer   MIG #1433
Avalon Technology Group, Inc.   
Linux...Because rebooting isn't normal

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




[Zope] A problem with image caching affecting certain versions of Netscapebrowsersbrowsers

2000-06-06 Thread Paul Browning

ZWN-2000-06-01 says:

"Itamar Shtull-Trauring and Chris Withers tracked down a problem with
image caching that affected certain versions of Netscape browsers."

Can anyone give me more info on this? I missed any reference to
it on the list and have been unable to locate anything in
various archives. I have just such a problem and I hope
this is a fix.

TIA

Paul

--
 The Library, Tyndall Avenue, Univ. of Bristol, Bristol, BS8 1TJ, UK
 E-mail: [EMAIL PROTECTED]  URL: http://www.bris.ac.uk/


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




Re: [Zope] detail record editing

2000-06-06 Thread Jim Sanford

dtml-if add
  do your adding thing
dtml-elif modify
   do your modifying thing
dtml-elif delete
   do your deleting thing
dtml-else
   do your 'Whoa! something ain't right here' thing
/dtml-if

- Original Message - 
From: ethan mindlace fremen [EMAIL PROTECTED]
To: Robert Del Huerto [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Tuesday, June 06, 2000 2:42 PM
Subject: Re: [Zope] detail record editing


Robert Del Huerto wrote:

 +---+---+-++
 |   |Doe|Jane |$100.00 |
 +---+---+-++
 | X |Doe|John |$250.00 |
 +---+---+-++
 |   |Haggis |Meister  |$100.00 |
 +---+---+-++
 |   |Zoper  |Doper|$723.00 |
 +---+---+-++
 | +--+  +--+  +--+ |
 | |   ADD|  |  MODIFY  |  |  DELETE  | |
 | +--+  +--+  +--+ |
 +--+

You can have as many action="submit"'s as you want.

Untested:

input type="submit" name="add" value="1"
input type="submit" name="modify" value="1"
input type="submit" name="delete" value="1"

The form only submits the value of "successfull" form items, so, on your
form's action method:


dtml-if add
  do your adding thing
dtml-else
  dtml-if modify
do your modifying thing
  dtml-else
do your deleting thing
  /dtml-if
/dtml-if

~ethan @ digicool

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




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




[Zope] Help: Weird KeyError with 2.2.0a1

2000-06-06 Thread Pete Kazmier

Hi,

I was playing around with 2.2.0a1 and I've stumbled upon a corrupted
database I think.  I'm new so please bare with me.  I was hoping
someone could help me recover.  Everytime I start Zope, I get the
following error:

2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\000\006'
Traceback (innermost last):
  File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate
  File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load
(Object: /home/zope/var/Data.fs)
  File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load
(Object: /home/zope/var/Data.fs)
KeyError:

Traceback (innermost last):
  File "/home/zope/z2.py", line 547, in ?
exec "import "+MODULE in {}
  File "string", line 1, in ?
  File "/home/zope/lib/python/Zope/__init__.py", line 144, in ?
OFS.Application.initialize(c)
  File "/home/zope/lib/python/OFS/Application.py", line 308, in
  initialize
app.Control_Panel.initialize_cache()
  File "/home/zope/lib/python/ZODB/Connection.py", line 421, in
  setstate
p, serial = self._storage.load(oid, self._version)
  File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load
try: return self._load(oid, version, self._index, self._file)
  File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load
pos=_index[oid]
KeyError:

Please tell me that I am not screwed.  Right before this problem
occurred, I had packed my database, but things were working ok
immediately following that, then a few moments later, I kept getting
errors, so I stopped the Zope processes and restarted.

Could someone please point me in the right direction?  I wasn't sure
if I was supposed to post this to the dev list since I'm using an
alpha, but I'm hoping those people read this too.  

Thanks,
Pete

-- 
Peter Kazmier http://www.kazmier.com
PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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




Re: [Zope] A problem with image caching affecting certain versions of Netscapebrowsersbrowsers

2000-06-06 Thread Chris Withers

Paul Browning wrote:
 
 ZWN-2000-06-01 says:
 
 "Itamar Shtull-Trauring and Chris Withers tracked down a problem with
 image caching that affected certain versions of Netscape browsers."

http://classic.zope.org:8080/Collector/1270/view

cheers,

Chris

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




Re: [Zope] Help: Weird KeyError with 2.2.0a1

2000-06-06 Thread Phil Harris

Pete,

This doesn't really fix the underlying problem, but if you'd like to carry
on working with Zope you can rename the file zopedir/var/Data.fs and Zope
will recreate a new (good) Data.fs for you.

hth

phil
[EMAIL PROTECTED]

- Original Message -
From: "Pete Kazmier" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 06 June 2000 22:41
Subject: [Zope] Help: Weird KeyError with 2.2.0a1


 Hi,

 I was playing around with 2.2.0a1 and I've stumbled upon a corrupted
 database I think.  I'm new so please bare with me.  I was hoping
 someone could help me recover.  Everytime I start Zope, I get the
 following error:

 2000-06-06T21:20:50 ERROR(200) ZODB Couldn't load state for
 '\000\000\000\000\000\000\000\006'
 Traceback (innermost last):
   File /home/zope/lib/python/ZODB/Connection.py, line 421, in setstate
   File /home/zope/lib/python/ZODB/FileStorage.py, line 584, in load
 (Object: /home/zope/var/Data.fs)
   File /home/zope/lib/python/ZODB/FileStorage.py, line 560, in _load
 (Object: /home/zope/var/Data.fs)
 KeyError:

 Traceback (innermost last):
   File "/home/zope/z2.py", line 547, in ?
 exec "import "+MODULE in {}
   File "string", line 1, in ?
   File "/home/zope/lib/python/Zope/__init__.py", line 144, in ?
 OFS.Application.initialize(c)
   File "/home/zope/lib/python/OFS/Application.py", line 308, in
   initialize
 app.Control_Panel.initialize_cache()
   File "/home/zope/lib/python/ZODB/Connection.py", line 421, in
   setstate
 p, serial = self._storage.load(oid, self._version)
   File "/home/zope/lib/python/ZODB/FileStorage.py", line 584, in load
 try: return self._load(oid, version, self._index, self._file)
   File "/home/zope/lib/python/ZODB/FileStorage.py", line 560, in _load
 pos=_index[oid]
 KeyError:

 Please tell me that I am not screwed.  Right before this problem
 occurred, I had packed my database, but things were working ok
 immediately following that, then a few moments later, I kept getting
 errors, so I stopped the Zope processes and restarted.

 Could someone please point me in the right direction?  I wasn't sure
 if I was supposed to post this to the dev list since I'm using an
 alpha, but I'm hoping those people read this too.

 Thanks,
 Pete

 --
 Peter Kazmier http://www.kazmier.com
 PGP Fingerprint   4FE7 8DA3 D0B5 9CAA 69DC  7243 1855 BC2E 4B43 5654

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


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




[Zope] sort_order???

2000-06-06 Thread michael angelo ruberto

hello,

ok, here is my code:

dtml-in table-1 sort=date

a href="dtml-var URL"dtml-var name/a | dtml-var value | dtml-var
URL | dtml-var attendee | dtml-var datebr
/dtml-in

what's wrong - nothing, it works fine. however, the result is sorted by date
ascending and i need it to be reversed. i found a reference to an attribute
"sort_order" which can be given an arg such as "sort_order=reverse". the
problem here is that it won't work and i can't find any usage info on
"sort_order". it isn't mentioned in the DTML Reference and after hours of
searching the Zope website i am empty handed. does anyone know how to use
this? thanks in advance.

-mike-


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




[Zope] Confera and strict permissions

2000-06-06 Thread Cary O'Brien

I'm trying to set up a small site with a Confera topic (using Zope
2.1.6).  It is going to be accessed by some off-site co-workers
through the internet, so I am concerned about security.  Access is
through Apache on the firewall with some mod_rewrite address filters,
but I'm kind of a belt-and-braces guy when it comes to security, so I
only want people who have user entries and passwords to access the
discussion.  No anonymous access at all.

But, if I remove the default "Anonymous" access privileges granted in
the root folder, even users with user entries who can access other
documents get access denied when trying to view the Confera topic.

This happens for both remote and local access.

The error traceback seems to point to a problem with the tree tag
rendering components.

Any ideas?

-- cary (Currently kind of frustrated with Zope.  Everything seems hard.)





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




Re: [Zope] PFH

2000-06-06 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article [EMAIL PROTECTED], Heiko Stoermer
[EMAIL PROTECTED] writes


snippo

First spam in German I've come across :-(

- -- 
Regards,  Graham Chiu
gchiuatcompkarori.co.nz
http://www.compkarori.co.nz/index.php
Powered by Interbase and Zope

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOTzk0rTRdIWzaLpMEQJQEwCgpQ+bv4VyM3UgmNqzuhMa/MlAIhEAoNSu
oPwcN3ZNSDdm58fmi+OEZgbp
=/2Vv
-END PGP SIGNATURE-

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




Re: [Zope] (no subject)

2000-06-06 Thread David Trudgett

At 2000-06-06 09:44 -0300, you wrote:

You both had the same problem I have now: make Oracle 8i (in my case, Oracle
8.1.6) work with Zope.
DCOracle is working well (Makefile attached to this message) but ZOracle
isn't running yet.

We are posting e-mails about it on the list for a while and nobody answered,
so I must think that nobody on Zope universe is using Oracle 8i (neither NT
nor Linux Oracle 8i client).
There isn't any detailed documentation about it. The ZOracle installation
instructions are simple but, in my opinion, incomplete.

To solve this situation, I'm making a call to everybody that uses or wants
to use Zope with Oracle 8i. My goal is finally document the installation
process and make it work properly.

Please contact me ASAP.

Hello Alexandre. We intend to use Oracle 8i (8.1.5) with Zope (on another 
machine). We haven't done anything about it yet, though. That will 
hopefully change in the near future. I'd be interested to know what 
problems you had...

David Trudgett


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




[Zope] Novice simple one - recompile one module?

2000-06-06 Thread David Ornstein

Hi Folks,

(Somebody should let me know if these questions are *way* too basic to waste
list bandwidth with...)

I see a patch to AccessControl\User.py that I want to apply.  I don't know
jack about Python (thought do know other OO languages).  I've made the
changes to User.py.  How do I recompile User.py to get the User.pyc file?

David

___
David Ornstein, CTO, NuvoMedia, Inc.

AIM: dbo666 voice: 650-314-1200 web: http://www.nuvomedia.com/
PGP Public Key Available at: ldap://certserver.pgp.com

"An honest man is able to speak for himself, when a knave is not."
Shakespeare, King Henry VI., Part 2


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




Re: [Zope] Novice simple one - recompile one module?

2000-06-06 Thread Andrew Kenneth Milton

+[ David Ornstein ]-
| Hi Folks,
| 
| (Somebody should let me know if these questions are *way* too basic to waste
| list bandwidth with...)
| 
| I see a patch to AccessControl\User.py that I want to apply.  I don't know
| jack about Python (thought do know other OO languages).  I've made the
| changes to User.py.  How do I recompile User.py to get the User.pyc file?

If you restart Zope it (the python interpretter) should recompile the 
python for you.

-- 
Totally Holistic Enterprises Internet|  P:+61 7 3870 0066   | Andrew Milton
The Internet (Aust) Pty Ltd  |  F:+61 7 3870 4477   | 
ACN: 082 081 472 |  M:+61 416 022 411   | Carpe Daemon
PO Box 837 Indooroopilly QLD 4068|[EMAIL PROTECTED]| 

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




Re: [Zope] A problem with image caching affecting certain versions of Netscape browsers browsers

2000-06-06 Thread andres

On Tue, Jun 06, 2000 at 10:25:48PM +0100, Paul Browning wrote:
 ZWN-2000-06-01 says:
 
 "Itamar Shtull-Trauring and Chris Withers tracked down a problem with
 image caching that affected certain versions of Netscape browsers."
 
 Can anyone give me more info on this? I missed any reference to
 it on the list and have been unable to locate anything in
 various archives. I have just such a problem and I hope
 this is a fix.
 

The problem was related to Netscape browsers on Win32 sending
If-Modified-Since headers with dates like "15-Mar-00" when they meant
"15-Mar-2000". This caused two problems in Zope.

The DateTime module reinterpreted the date as "15-Mar-1900". This has been
fixed in the CVS version of the module where years of the form 00-69 are now
interpreted as 2000 + 00-69.

The second problem ocurred in OFS/Image.py where the date was turned into
whole seconds with Python's int() function. Dates so early lead to float
numbers that exceed the range of numbers int() can deal with. This is also
fixed in the current CVS version.

--
Andres Corrada-Emmanuel   Email: [EMAIL PROTECTED]
--

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




[Zope] RE: import-export

2000-06-06 Thread gresham


Hi,
I'm also getting similar problems, that I can no longer export and it is
giving me AttributeErrors. I think I've scanned every Zope document but
cannot find any info. I am running Zope from my own user and not from a
root account and I have also installed WorldPilot (perhaps related to
this)?

Any ideas ... I'll post more details if I find anything, as this is
delaying a release

Regards
Gresh


!-
   Hi,

   My Little Problem :

   I have zope version 2.1.6 running on two servers.

   I have a folder containing dtml methods and zsqlmethods
which I want to
   import from server A to server B
   It doesn't work. It used to work, but not any more. this
is the error it
   throws...


   File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/OFS/ObjectManager.py, line
   484, in manage_importObject
   (Object: ElementWithAttributes)
   File
/usr/local/Zope-2.1.6-linux2-x86/lib/python/ZODB/ExportImport.py, line
   266, in importFile
   ExportError: (see above)

   Help

   Regards
   Ronnie



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