RE: [Zope] Including a method returning batches inside a page.

2000-08-24 Thread Jean Jordaan

hi Dieter

 For a DTML method(!), "id" is the id of the object of which
 the method is used as a method.
 In your case, this is the folder.

No, actually -- since 'index_html' is a document, it turns out
to be the id of 'index_html'.

 In some cases, you would use "this().id".

OK, I'll try and understand that .. 

-- 
jean

___
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 compare apples to apples. (document_id != id_of_my_document)

2000-08-24 Thread Jens Quade

"T.J. Mannos" [EMAIL PROTECTED] writes:

 Hi, there,
 
 I have a DTML document called "apples".
 
 A call to dtml-var document_id gives the string "apples"
 
 However, a dtml-if "document_id == 'apples'" returns false.  Am I missing
 something?  I've tried _.str(document_id) and even
 _.string.strip(_.str(document_id)).

document_id is a function, 
document_id() returns the document_id.

dtml-var calls any function automatically, 
python (inside the quotes) doesn't.

Compare

dtml-var document_idbr  
dtml-var "document_id"br
dtml-var "document_id()"



-- 
Jens Quade * [EMAIL PROTECTED] * Bonn










___
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] Where do I find out about cookies?

2000-08-24 Thread Jean Jordaan

Hi Zopers

It looks like I'm going to be using cookies now, and I don't find any
How-To on cookies. What's the most instructive place to look? "UTSL" is
fine as an answer, especially if it points me somewhere, and even more
if it's DTML source .. 

The *ZQR* is a bit too cryptic for me. The *DTML Ref* has a bit more::

8. Dictionaries are objects that support looking of data by name 
(e.g. REQUEST.cookies['CUST_ID'] to look up a cookie named CUST_ID).
Dictionaries have has_key methods for checking whether a dictionary
contains a value (e.g. REQUEST.cookies.has_key('CUST_ID') ) and
methods keys , values , and items , for updating lists of dictionary
keys, values, and key-value pairs (e.g. REQUEST.cookies.keys() to
obtain a list of cookie names).

.. but I don't understand yet how 'keys', 'values' and 'items' are going
to help me *update* the lists -- it seems to refer only to querying
them, AFAICS .. 

-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.1.6 on WinNT and W2K

___
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: Can't compare apples to apples. (document_id != id_of_my_document)

2000-08-24 Thread Steve Alexander


T.J. Mannos wrote:

 I have a DTML document called "apples".

 A call to dtml-var document_id gives the string "apples"

 However, a dtml-if "document_id == 'apples'" returns false.  Am I missing
 something?  I've tried _.str(document_id) and even
 _.string.strip(_.str(document_id)).

The tag dtml-var document_id gets a value for document_id, and looks
to see if it is callable. If so, it calls it and returns the result of
calling it. If not, it just returns it. This is a feature of dtml-var
name="whatever", which is another way of writing dtml-var whatever.

However, when you use an expression, such as you are doing in the
dtml-if tag, you are writing in Python, and you need to call an object
if it ought to be called.
An expression is something like dtml-var "expression" or dtml-var
expr="expression, which are equivalent. The same goes for dtml-if
"expression".

In your case, you might find that this works:

dtml-if "document_id() == 'apples'"

Or perhaps this:

dtml-if "document_id(_.None, _) == 'apples'"

The reason is that ids ought always to be simple string objects, but
some aren't. There are lots of legacy programs that rely on some ids
being methods, so the odd cases won't be changed for a while yet.

The general answer is to use a special function that calls the value if
it is callable.

You have a choice here. These are equivalent.

dtml-if "_['document_id'] == 'apples'"

dtml-if "_.getitem('document_id', 1) == 'apples'"


--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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 tree tag, SQL and what should be simple

2000-08-24 Thread icottee



I thought this was going to be simple but having read numerous postings on the
mailing list and all related HOW-TOs I can find, I think I can confirm I am
stuck. This is sad because I've just spent a very productive couple of days with
Zope and MySQL making the world a better place.

I have a table for chickens. Basically it looks like this

CREATE TABLE T_CHICKEN (
   ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
   CODE CHAR(10) NOT NULL,
   DESCRIPTION CHAR(40) NOT NULL,
   NOOFLEGS INT NOT NULL DEFAULT 2,
   TYPEID INT NOT NULL
);

And another table for types.

CREATE TABLE T_TYPE (
   ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
   CODE CAR(10)
);

Each chicken has a type associated with it. At the end of the day I want to
display the chickens underneath the type it has ... start the screen up it would
say

+ BIG
+ MEDIUM
+ SMALL

And the users can then expand to see the chickens available in each category.

+ BIG
 - Flossie
 - Wombat
 - Hank
+ MEDIUM
 - Debbie
 - Fruitbat
 - Harold
+ SMALL
 - Bob

It would appear that I need to feed two things to the dtml-tree tag. Firstly my
starting levels (my types) and then the related data underneath but I can only
feed one SQL query to the tag. All the stuff I read seems to assume the info at
the top level comes from the same file (and from a key id). How do I do this or
indeed, is it possible? I have a nasty feeling I am missing something obvious.

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 )




[Zope] ZClass and external Methods

2000-08-24 Thread Vincent

Hi,

I just would like to call from a DTMl document an external method defined in
a ZClass.
   - I created an instance of this ZClass  - Ztest (for example),
   - But I can't call the external method : - dtml-call
"Ztext.myMethod(Arg1)"
If somebody knows where I am wrong ;-)

Thansk again

Vincent


___
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 as an NT service in developement mod

2000-08-24 Thread Vincent

Does somebody know how to launch Zope as an NT service in development mode
(I need to pass the -D parameter)

Thanks

Vincent

PS : I got my answer for my previous question (Thanks again)


___
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] review waiting for 3 days!!!

2000-08-24 Thread Hugo Ramos

Yellow ppl at DC,

Is everybody on holyday at DC? :-)
I've a some reviews waiting for 3 days now to be validated on zope.org

Maybe there's a lot more reviews waiting from other guys.

please check it

regards

=
Hugo Ramos - [EMAIL PROTECTED]
ZopersORG - http://www.zopers.org
=
Do not meddle in the affairs of programmers, for they are easy to annoy,
and have all the source code!!!


___
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 as an NT service in developement mod

2000-08-24 Thread Phil Harris

Vincent,

You will need to change the rgistry entry for the service:

Open regedit and goto
hkey_local_machine/system/currentcontrolset/services/zope service
name/parameters.

Then double click on the 'start' parameter in the right hand window, when
the edit box comes up simply add a -D to the end of the options on the
command line.

You can also change the port in the same way, simply put something like:

-P 8000

This would set zope to use 8000 as the base port for all zservices so
http-8080, ftp-8021 etc.

hth

Phil
[EMAIL PROTECTED]

- Original Message -
From: "Vincent" [EMAIL PROTECTED]
To: "[Zope Org] (E-mail)" [EMAIL PROTECTED]
Sent: Thursday, August 24, 2000 10:27 AM
Subject: [Zope] Zope as an NT service in "developement mod"


 Does somebody know how to launch Zope as an NT service in development mode
 (I need to pass the -D parameter)

 Thanks

 Vincent

 PS : I got my answer for my previous question (Thanks again)


 ___
 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] NTUserFolder Object. Where is it?

2000-08-24 Thread Christian Adams

I have, apparently, sucessfully installed NTUserFolder into my Zope
installation. Now I need to add some NTUserFolder objects to some working
directories.

My rather silly problem is this: Where do I have to look for the
NTUserFolder object? It's not in my usual Objects drop down menu so what
have I forgotten to do?

Zope 2.2.0 over NT4 NTUserFolder 1.3

Chris.

 Chris Adams
 Revolution - the new commerce agency
 --
 Direct: +44 20 7549 5837
 Facsimile: +44 20 7549 5801
 http://www.revolutionltd.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] Missing pictures

2000-08-24 Thread William JOYE

Hello,

I have notified that every time on my web page one picture is missing (with
IE and Netscape). When I refresh the page there is another picture missing
and the first is OK. After another refresh, the first is missing and the
second is OK. And so on...

I use Apache and Zope 2.1.6 under Linux. In the Apache log, I have notified
that http code is always 304 but when pictures are missing in web page the
transferred size is '-' and no '0'.

What's goes wrong ?

___
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] building a Python module on Winnt

2000-08-24 Thread Vincent



Hi,

How can I build a python module 
on Windows NT ?

Thanks

Vincent


Re: [Zope] newbiz : zope connection

2000-08-24 Thread Stephan Goeldi

Zope 2.2 has a facility in its Control Panel where you
can see, how much requests are currently in work.

What is the "Control Panel" and where can I find it?


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




Re: [Zope] Using crontab instead of rc.d

2000-08-24 Thread Stephan Goeldi

5  *   *   *   *   root./start

This would start the script every five minutes. Now how do I check if the
script is running after it's been started and if it wasn't to restart it
again.

Why don't you write a shell script which

1. starts the ./stop script, and
2. starts the ./start script

every 5 minutes? So you don't have to check if Zope runs. It's like a 
restart.

-goe-



Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




Re: [Zope] building a Python module on Winnt

2000-08-24 Thread Phil Harris

Which one?

It may already be built by one of us Zopista types.

- Original Message - 
From: Vincent 
To: [Zope Org] (E-mail) 
Sent: Thursday, August 24, 2000 11:37 AM
Subject: [Zope] building a Python module on Winnt


Hi,

How can I build a python module on Windows NT ?

Thanks

Vincent


___
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] building a Python module on Winnt

2000-08-24 Thread Diny van Gool

At 11:37 24-8-00 +0100, Vincent wrote:
   Hi,   How can I build a python module  on Windows NT ?   Thanks   Vincent 

Well, I only know how it's done on Windows NT:

I use Idle (python.org) to make the .py file, then put this python file
into the Extensions directory of the Zope installation. Then in Zope add an
external method.

Diny



DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

___
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] Generic Workflow Products?

2000-08-24 Thread Paolo Bizzarri


There is an standards based (WFMC -- workflow management coalition,
www.wfmc.org) Zope product that really has seen no progress since early
this year - see openflow.sourceforge.net



Correct. OpenFlow was a bit stopped, for two reasons:

1) we here at Icube had undergone acquisition, so it was a bit complicated to
follow on the project itself;

2) we have started from WfMC, which was good for defining the interfaces but
was a bit bad for designing a real system. Hopefully we can start to work
again after the end of this month.

More news hopefully to come.

Paolo

--
Paolo Bizzarri - Responsabile Marketing  Icube Srl
Sede:   Via Ridolfi 15 - 56124 Pisa (PI), Italia
E-mail: [EMAIL PROTECTED] WWW: www.icube.it
Tel:(+39) 050 97 02 07  Fax: (+39) 050 31 36 588




___
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] newbiz : zope connection

2000-08-24 Thread Diny van Gool

At 09:49 24-8-00 GMT, Stephan Goeldi wrote:
Zope 2.2 has a facility in its Control Panel where you
can see, how much requests are currently in work.

What is the "Control Panel" and where can I find it?
You got to have the manage role, then you find it in your Zope root folder
contents.

Diny



DIVA, Faculty of Veterinary Medicine
Utrecht University,  The Netherlands
http://www.vet.uu.nl 

___
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] newbiz : zope connection

2000-08-24 Thread Stephan Goeldi

To get more information, you would analyse ZServer's
log file: "var/Z2.log". It contains an entry for
each HTTP request.

But if you use ProxyPass like me, there is only the IP address of the Apache 
Server in this logfile, so there is only one user in the Z2.log file logged. 
You have to check out the Apache logfile, usually /var/log/httpd/access_log 
to see the different IP addresses. The logfile-format of Apache is the same 
as in Zope.

-goe-


Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




Re: [Zope] Using crontab instead of rc.d

2000-08-24 Thread Dominic Mitchell

On Thu, Aug 24, 2000 at 09:46:11AM +, Stephan Goeldi wrote:
 5*   *   *   *   root./start
 
 This would start the script every five minutes. Now how do I check if the
 script is running after it's been started and if it wasn't to restart it
 again.
 
 Why don't you write a shell script which
 
 1. starts the ./stop script, and
 2. starts the ./start script
 
 every 5 minutes? So you don't have to check if Zope runs. It's like a 
 restart.

That would be very intensive on the server.  Imagine if your office file
server was set to reboot every 5 minutes, "just in case".  It's far
better to just check if it's dead and only then restart it.

-Dom

___
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] DestinationURL is a method ;-)

2000-08-24 Thread Chris Withers

Adding a () to the DestinationURL above made it work::

dtml-call "RESPONSE.redirect(
   DestinationURL()+'/manage_workspace')"

Shouldn't this be fixed somewhere?

CW
What do you mean by 'fixed'?
It looks to me like DestinationURL is a python method, in which case you'll
need the () to call it and return a string, otherwise you're trying to
concatenate a python method with a string, which won't work ;-)

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] Zope CVS on Windoze

2000-08-24 Thread Chris Withers

 Is there perhaps a better way for installing a cvs checkout on 
 windows? It's obvious that none of the c modules get compiled, but 
 these seem to change rather rarely ...

I'd love to know the answer to this too :-)

(mindyou, I might just switch to Unix anyway ;-)

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] AW: ExtImage

2000-08-24 Thread Heine, Gregor

 Hello,
 
 A newbie question. Could you pls propvide an example of mentioned
 in readme.txt "preview" and "icon-gif" methods to view thumbnails and
 images? 
 
 Best regards,
  Alexander N. Chelnokov

Hi!

Create an ExtImage object (e.g. in the folder path/to/your) and upload an
image (e.g. image.jpg). 
You can now call the image with:
http://your.server:8080/path/to/your/image.jpg or
http://your.server:8080/path/to/your/image.jpg/index_html
the preview is accessed via
http://your.server:8080/path/to/your/image.jpg/preview
and the icon via http://your.server:8080/path/to/your/image.jpg/icon_gif

hope that helps,

MacGregor!

___
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] Corruption caused by 'Pack'?

2000-08-24 Thread Marcin Kasperski

Dieter Maurer wrote:
 
 Marcin Kasperski writes:
    pack corrupts Data.fs 
  
   Has anyone notified similar problems? What could be going on?
 An officially announced and fully described bug...
 
 You know by now where you find the searchable archive?
 

I tried it. I found numerous posts about problems with packing, but I do
not know which one do you mean - some mention errors in older zope
versions (even with comments like 'the fix is done and scheduled for
2.2.0'), others mention, that packing does not work in scenario 'pack
for 0 days' then 'pack for 10 days' (when one packs for more days than
previously). AFAIR I have never packed my database - an attempt to pack
for 10 days, which caused critical errors, was the first one!

The newest message on zope-dev mentioned that the bug is fixed and will
be removed in 2.2.0. I use 2.2.0 and have never used older version.

Nevertheless, it seems strange to me, that the function containing so
critical error is described in detail in Zope Content Manager Guide -
short intro for beginners.



-- Serwis dla programistw z kcikiem mieszkaniowym: http://www.mk.w.pl 
|
| Teams do not make linear progress through analysis.  They don't start 
| with requirement 1 and analyze it, then move to requirement 2 and 
| analyze it. (...) Analysis tends to be revolutionary. (Martin)

___
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] Objet : [Zope] How to test if an object exist

2000-08-24 Thread Francois-Regis CHALAOUX

Hi,

Thanks for the details on hasattr function. I learned a lot ;)
In the meantime, I found an other solution. Have a look.

Bye, FR.

Here I create folders in the folder "self.folder1".
Each new folder has a number at its end (folder11, folder12, etc ...).

def testFolder(self):
self=self.this()
sub1=self.folder1
l = ['1','2','3','4']
for i in l:
sub2= "self.folder1" + ".folder1" + i
folder = "folder1" + i
try:
if eval(sub2):
pass
except AttributeError:
sub1.manage_addFolder(folder)
return 'ok'
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 

___
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 CVS on Windoze

2000-08-24 Thread Wolfgang Strobl

On 24 Aug 2000, 7:31  Chris Withers wrote:

(I asked)

  Is there perhaps a better way for installing a cvs checkout on
  windows? It's obvious that none of the c modules get compiled, but
  these seem to change rather rarely ...
 
 I'd love to know the answer to this too :-)
 
 (mindyou, I might just switch to Unix anyway ;-)

Which Unix? There are so many to choose from.  ;-) I am plagued 
by at least two different variants I've installed Zope on, and a few 
more where I just use it, which differ in a sometimes subtle, 
sometimes not so subtle way. Getting Zope working on a DEC 
Alpha OSF1, for example, is about as funny as installing a RPM 
made for Redhat on a Suse distribution.

Speaking about Linux - I just noticed that the upcoming Suse 
distribution (V7) will contain Zope in the "professional edition", see

http://www.suse.de/de/produkte/susesoft/linux/Pakete_prof/pak_diff.
html and
http://www.suse.de/de/produkte/susesoft/linux/Pakete_prof/paket_z
ope.html

It's a bit old, though: 2.1.6


--
  o  ( [EMAIL PROTECTED] (+49 2241) 14-2394
 /\*   GMD mbH   #include 
   _`\ `_===  Schloss Birlinghoven, std.disclaimer
__(_)/_(_)___.-._  53754 Sankt Augustin, Germany 

___
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] review waiting for 3 days!!!

2000-08-24 Thread Brian Lloyd

 Yellow ppl at DC,
 
 Is everybody on holyday at DC? :-)
 I've a some reviews waiting for 3 days now to be validated on zope.org
 
 Maybe there's a lot more reviews waiting from other guys.
 

We've been offline since sometime Monday due to network 
problems :( We're back on now.


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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 )




Re: [Zope] Zope as an NT service in developement mod

2000-08-24 Thread Chris Withers

Phil Harris wrote:
 Then double click on the 'start' parameter in the right hand window, when
 the edit box comes up simply add a -D to the end of the options on the
 command line.

When you do this, where does all the good stuff that would usually get
printed out in the console window get put, if anywhere?

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] strange login behaviour

2000-08-24 Thread Didier Georgieff

Hello,

I have really simple login wich is a link to a Method "login" wich 
comprise

.. REDIRECT for login
dtml-call "RESPONSE.redirect(baseURL)"

and 'login' method has NO autorizations for anonymous.

It redirects me on the right "baseURL" page, but the "baseURL" 
inludes an "info" Document with 

dtml-var "AUTHENTICATED_USER.getUserName()"
dtml-in "AUTHENTICATED_USER.getRoles()"

who shows ONLY anonymous after the first login..

IF I do a second login (exactly the same) then it works fine and i 
got the right Names and Roles..

Is it a known problem, or do i have some magic acquisition trick 
who eludes me ?

I'm on 2.1.6 win.
--
Didier Georgieff
DDAF du Bas-Rhin - Cellule SIG 
2, rue des Mineurs 67070 Strasbourg Cedex
tél : 03.88.25.20.33 - fax : 03.88.25.20.01
email : [EMAIL PROTECTED]
GéoWeb http://10.67.90.3 (Intranet Agriculture)
GéoWeb http://sertit10.u-strasbg.fr (Internet)

___
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] QSurvey 0.23 and Zope 2.2.1b

2000-08-24 Thread Brian Lloyd

  Error Type: Permission mapping error
  Error Value: Attempted to map a permission to a permission, Add
  QSurveyResultsItems, that is not valid. This should never 
 happen. (Waaa). 
  
 
 I believe I saw a message that said that this bug would be fixed
 in 2.2.1 final (which presumably means you can get the fix by
 checking out the CVS version of Zope).  Search the archives...
 

That's right - or you can wait 'til tomorrow when I hope to make 
2.2.1 final :)

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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] problems with starting zope

2000-08-24 Thread Sarciaux, Fabrice

hello

i recently came accross zope and decided to give it a try

installation went fine
when asked to start zope as a nt service, i answered yes
and check through the controlpanel-services that it was in fact up and
running

then, i used a bowser (ie) to go to http://localhost:8080/manage
but was left whith the following text:

Not Found 

i decided to stop the service and to start zope manually
i doubled clicked on start.bat and went back to the browser

for some reason, going to http://localhost:8080/manage
frooze the browser and the only thing left for me to do was to kill
start.bat


i am running win2000

please let me know what i might doing wrong or where could i get information
above the above problem?

thanks
fabrice


___
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] ZClass Date Fields

2000-08-24 Thread Loren Stafford

I don't know of any bug that would produce this kind of behavior. It's more
likely a problem in communication between the add form and the method
invoked by that form. Can you show us the DTML for both? Then we can
probably see what's going wrong.

-- Loren

- Original Message -
From: "Craig" [EMAIL PROTECTED]
To: "Loren Stafford" [EMAIL PROTECTED]
Sent: August 24, 2000 07:05 AM
Subject: Re: [Zope] ZClass Date Fields


 On Wed, Aug 23, 2000 at 08:01:54PM -0700, Loren Stafford wrote:
  I think what you need is here:
 
  http://www.zope.org/Members/lstaffor/zProperties
 

 This is what I followed. I used a different file type than PDF for my
 example, but I named the date property the same (pub_date) and when I
create
 a new one, it gets created with pub_date set to 1970/01/01. My co-worker
 also followed your tutorial and had the same problem. Could this be a bug
in
 Zope

  -- Loren
 
  - Original Message -
  From: "Craig" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: August 23, 2000 07:32 PM
  Subject: [Zope] ZClass Date Fields
 
 
   I'm sure you've heard this question before, so bare with me. I went
  through
   the ZClass tutorial and got everything working right except Date
  properties.
   Lets assume, for example, that my ZCLass is called CDClass. When I
create
  a
   new CDClass instance (using the addForm), it always uses the default
date
   for Date properties instead of the ones I've entered in the form. A
   co-worker of mine has had the same problem but we have not yet
discovered
   why. Thoughts? Solutions?
  

 Later,
 --
 \ Craig "Cowboy" McDaniel
 /_\ Software Engineer
 /_/_\ Internet Tool  Die
 /_/_/_\ [EMAIL PROTECTED]
 /_/_/_/_\ (502) 584-8665 ext 108



___
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 login behaviour

2000-08-24 Thread Chris Withers

Didier Georgieff wrote:
 Is it a known problem, or do i have some magic acquisition trick
 who eludes me ?

Is it possible that your browser is just caching the old page the first
time round?

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] Windoze + Zope in Debug :S (OT)

2000-08-24 Thread Chris Withers

Phil Harris wrote:
 Goes into the 'ether', there was a post to the list about getting it sent to
 the system event log, might be worth chasing that up?

Nah, I'll just run it in a DOS box...

...which brings up another question:

Is there any way I can make the DOS box in Win98 (think laptop here ;-)
to buffer like it does in WinNT?

You know the story: Zope spits out four pages of debug info, and you can
only read the last 25 lines :(

Any ideas?

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] ZClass and external Methods

2000-08-24 Thread Chris Withers

Vincent wrote:
 I just would like to call from a DTMl document an external method defined in
 a ZClass.
- I created an instance of this ZClass  - Ztest (for example),
- But I can't call the external method : - dtml-call
 "Ztext.myMethod(Arg1)"

Some error messages and tracebacks would help a lot...

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] Where do I find out about cookies?

2000-08-24 Thread Loren Stafford

From: "Jean Jordaan" [EMAIL PROTECTED]
 It looks like I'm going to be using cookies now, and I don't find any
 How-To on cookies. What's the most instructive place to look? "UTSL" is
 fine as an answer, especially if it points me somewhere, and even more
 if it's DTML source ..

 The *ZQR* is a bit too cryptic for me.

First you must understand cookies independent of Zope:

http://home.netscape.com/newsref/std/cookie_spec.html

Then Zope's interface to them will be easier to understand:


The *DTML Ref* has a bit more::

 8. Dictionaries are objects that support looking of data by name
 (e.g. REQUEST.cookies['CUST_ID'] to look up a cookie named CUST_ID).
 Dictionaries have has_key methods for checking whether a dictionary
 contains a value (e.g. REQUEST.cookies.has_key('CUST_ID') ) and
 methods keys , values , and items , for updating lists of dictionary
 keys, values, and key-value pairs (e.g. REQUEST.cookies.keys() to
 obtain a list of cookie names).

 .. but I don't understand yet how 'keys', 'values' and 'items' are going
 to help me *update* the lists -- it seems to refer only to querying
 them, AFAICS ..

Search for "cookie" a little further in
http://www.zope.org/Members/ZQR/zqr/normal and you will find not only
REQUEST.cookies but also RESPONSE.setCookie().

-- Loren



___
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] I think I'm close, but still no luck

2000-08-24 Thread Daniel Rusch

Hello,

(See bottom of this message for all the iterations I have tried)

I've created a product called BasicDocument. I've installed it and it
works great. 

I've also created a folderish product (called SimpleSite). When a user
selects
the SimpleSite product from the available objects list, thus creating an
instance of that product, 
they have an option to create sub folders which contain objects like
dtml documents, dtml
methods, and my BasicDocument product (very similar to what happens when
you instantiate a folder object, you
can have a dtml method created in the new folder). 
  
I am able to have the manage_addSimpleSite function create
DTMLDocument, DTMLMethod and Folder objects but I am unable to
have the function create BasicDocuments (which live in the Products
directory) additionally, I am unable to it create any Products from
the Products directory, such as Local File System? 
  
 The code below works great, I get a dtml document, two folders each
with a dtml method in them 
  

 HOW CAN I CREATE A BascicDocument, LOCAL FILE SYSTEM OR ANY OTHER
OBJECT FROM THE 
 PRODUCTS DIRECTORY IN THIS MANAGE_ADD FUNCTION??? 


Thanks, 

Dan 
  
 def manage_addSimpleSite(self, id, title='', 
  createNewFolder=0, 
  createEditFolder=0, 
  REQUEST=None): 
 """Add a new SimpleSite object with id *id*. 
  
 If the 'createNewFolder' and 'createEditFolder' parameters are set 
 to any true 
 value, an 'New sub Folder' and an 'edit sub Folder' objects are 
 created respectively 
 in the new SimpleSite. 
 """ 
 ob=SimpleSite() 
 ob.id=id 
 ob.title=title 
 self._setObject(id, ob) 
 try: user=REQUEST['AUTHENTICATED_USER'] 
 except: user=None 
 #ob.manage_addBasicDocument(id='index_html', title='')-- This line
generates: AttributeError: manage_addBasicDocument 
 ob.manage_addDTMLDocument(id='index_html', title='') 
 if createNewFolder: 
 if (user is not None) and not ( 
 user.has_permission('Add User SimpleSites', self)): 
 raise 'Unauthorized', ( 
   'You are not authorized to add User SimpleSites.' 
   ) 
 ob.manage_addFolder(id='New'+id, title='', createPublic=1) 
 if createEditFolder: 
 if (user is not None) and not ( 
 user.has_permission('Add Documents, Images, and Files', 
 self)): 
 raise 'Unauthorized', ( 
   'You are not authorized to add DTML Documents.' 
   ) 
 ob.manage_addFolder(id='Edit'+id, title='', createPublic=1) 
 if REQUEST is not None: 
 return self.manage_main(self, REQUEST, update_menu=1


I have tried the following each generated an error:

1. ob.manage_addBasicDocument(id='index_html', title='')  
AttributeError: manage_addBasicDocument 
2.
ob.manage_addProduct['SimpleSite'].manage_addBasicDocument(id='index_html',
title='')  AttributeError: _getProducts
3.
self.manage_addProduct['SimpleSite'].manage_addBasicDocument(id='index_html',
title='')AttributeError:manage_addBasicDocument
4.
self.manage_addProduct['BasicDocument'].manage_addBasicDocument(id='index_html',
title='') TypeError: not enough arguments; expected 2, got 0
5.
ob.manage_addProduct['BasicDocument'].manage_addBasicDocument(id='index_html',
title='')AttributeError: _getProducts

___
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] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva

I know this sound strange but is there a way to,
during execution of a dtml method, when a with tag is used one
force acquisition not to be used?

example:

/root/a/b/c
/root/c

say dtml-with "root.a.c" was a mistake so I dont want the root.c namespace 
to be imported due to acquisition and instead I want to raise an exception.

How can I "turn off" acquisition?

I love acquisition, I know its great but I dont want it in a specific case. 
Is there a way to turn off?

Thanx,
Júlio Dinis Silva

Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




Re: [Zope] Where do I find out about cookies?

2000-08-24 Thread J. Atwood

No How-Tos on Cookies?

how about http://www.zope.org/Members/BwanaZulia/cookies/

(I had forgotten to request it to be cataloged now down).

Enjoy,
J



 From: Jean Jordaan [EMAIL PROTECTED]
 Date: Thu, 24 Aug 2000 09:53:10 +0200
 To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
 Subject: [Zope] Where do I find out about cookies?
 
 Hi Zopers
 
 It looks like I'm going to be using cookies now, and I don't find any
 How-To on cookies. What's the most instructive place to look? "UTSL" is
 fine as an answer, especially if it points me somewhere, and even more
 if it's DTML source ..
 
 The *ZQR* is a bit too cryptic for me. The *DTML Ref* has a bit more::
 
 8. Dictionaries are objects that support looking of data by name
 (e.g. REQUEST.cookies['CUST_ID'] to look up a cookie named CUST_ID).
 Dictionaries have has_key methods for checking whether a dictionary
 contains a value (e.g. REQUEST.cookies.has_key('CUST_ID') ) and
 methods keys , values , and items , for updating lists of dictionary
 keys, values, and key-value pairs (e.g. REQUEST.cookies.keys() to
 obtain a list of cookie names).
 
 .. but I don't understand yet how 'keys', 'values' and 'items' are going
 to help me *update* the lists -- it seems to refer only to querying
 them, AFAICS .. 
 
 -- 
 Jean Jordaan   --technical writer--
 Mosaic Software--Zope 2.1.6 on WinNT and W2K
 
 ___
 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] Acquisition, Not! How?

2000-08-24 Thread Jeff Hoffman

On Thu, 24 Aug 2000, Júlio Dinis Silva wrote:

 I know this sound strange but is there a way to,
 during execution of a dtml method, when a with tag is used one
 force acquisition not to be used?
 
 example:
 
 /root/a/b/c
 /root/c
 
 say dtml-with "root.a.c" was a mistake so I dont want the root.c namespace 
 to be imported due to acquisition and instead I want to raise an exception.
 
 How can I "turn off" acquisition?
 
 I love acquisition, I know its great but I dont want it in a specific case. 
 Is there a way to turn off?

Try:

  dtml-with aq_explicit
dtml-var "root.a.c"
  /dtml-with

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.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 )




Re: [Zope] How do I create a folder full of virtual DTML objectsfrom records in a database records in a database

2000-08-24 Thread R. David Murray

On Wed, 23 Aug 2000, Chris Beaumont wrote:
 I need to take rows in an SQL database table, and create one or 
 several nested folders of web pages out of them..

I'd suggest checking out the ZSQL Methods manual, and then asking any
questions that you still have (and there probably will be some!)

--RDM


___
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 do I create a folder full of virtual DTML objectsfrom records in a database records in a database

2000-08-24 Thread Chris Withers

"R. David Murray" wrote:
 
 On Wed, 23 Aug 2000, Chris Beaumont wrote:
  I need to take rows in an SQL database table, and create one or
  several nested folders of web pages out of them..
 
 I'd suggest checking out the ZSQL Methods manual, and then asking any
 questions that you still have (and there probably will be some!)

Or check out ZPatterns if you're braev ;-)

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] Acquisition, Not! How?

2000-08-24 Thread Júlio Dinis Silva

  I know this sound strange but is there a way to,
  during execution of a dtml method, when a with tag is used one
  force acquisition not to be used?
 
  example:
 
  /root/a/b/c
  /root/c
 
  say dtml-with "root.a.c" was a mistake so I dont want the root.c 
namespace
  to be imported due to acquisition and instead I want to raise an 
exception.
 
  How can I "turn off" acquisition?
 
  I love acquisition, I know its great but I dont want it in a specific 
case.
  Is there a way to turn off?

Try:

   dtml-with aq_explicit
 dtml-var "root.a.c"
   /dtml-with


This result in a system error (infinite loop) :-(
I'll follow this aq_explicit tip.

Thanx anyway,
Júlio Dinis Silva




Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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 )




Re: [Zope] how can I determine the list of user names?

2000-08-24 Thread jpenny

On Thu, Aug 24, 2000 at 10:05:18AM +1000, Curtis Maloney wrote:
 On Thu, 24 Aug 2000, [EMAIL PROTECTED] wrote:
  I would like to construct a pull down of the users defined in
  an acl_users of a particular location.
 
 I am doing this soon, also, so I've put in a little thought on the problem. 
 (But only a little :)
 
  Say in particular, that /protected/acl_users exists.  How do
  I find (in dtml or in python), the list of names defined in that
  particular acl_users.
 
 
 My guess (untested) is :
 
 select name="users"
   dtml-in getUserNames
 option value="dtml-var sequence-item"dtml-var sequence-item
   /dtml-in
 /select

Thanks.  Real close.  Again, assuming /protected/acl_users is the list
of users I am interested in:

dtml-in "protected.acl_users.getUserNames()"
 dtml-var sequence-item
/dtml-in

will grab the user names.  The pull down is basic html.

   
  To slightly generalize, how would one tree-walk to find the list
  of all acl_users above a particular object?

I am not really worried about this.  The above suffices for me (and I
think I could do it from the above anyway).  This part of the question was
asked only for completeness.
 
 Well, as I said, this is untested, but I'm assuming getUserNames does this 
 for you.  The ZQR is somewhat sparse on the details.
 
 
  Thanks
 
 Please, let me know how this goes.
 
  Jim
 
 
 Have a better one,
   Curtis Maloney
 
 ___
 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] Search on ZCatalog or ZSQL in MySQL

2000-08-24 Thread Nestor A. Diaz L.

Hi,

I have a to take a decision to use or not to use the ZCatalog that's
because i'm some kind newbie to Zope.

Well the history is the following:

I have to make a system to store news, so i have to migrate a old system
using perl cgi's and perform a search on text files to use Zope as the
search engine however i don't know if i have to use a SQL database like
MySQL or use the ZCatalog, i need full text search, and ZCatalog fits on
the true decision however the current database news is about 350M and i
would like to extend it to store images and file, so is possible that at
the final year if everyting comes ok it outperforms the 1GB data

I read that CodeCatalog.com use MySQL to make their full text
search engine, so i think that i can do the same with MySQL using a unique
number for each registry and let ZCatalog do a Vocabulary based on the
ZClass that get such data? and know how to access the database when
someone request a word in the vocabulary based on this unique id?

I have a made a prototype in Zope at http://repnet.engendro.com using
ZCatalog and the admin console is at http://repnet.engendro.com/admin_html
i got based on the ZClass Tutorial from behieve and get it working.

Well, i have to make a decision so my last resource is to use a coin ;)

Thank you very much (sorry for my poor english :DDD)

--
Nestor A. Diaz
Ingeniero de Desarrollo
Engendro - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] My notes from the Paris EuroZope meeting

2000-08-24 Thread Simon Coles

Hi,

During the EuroZope meeting I was taking notes for my own use, and a 
couple of people asked if I would make them more widely available - 
so here they are.

Because they were taken during the session (and I've got RSI :-) they 
are bitty and may not make sense. They are also only a reflection of 
what I typed, not of what was said and its importance :-) so any 
mistakes are my fault and I humbly apologise now. Mostly these notes 
cover Paul's talk in the morning, as my machine was the IRC terminal 
for the afternoon sessions.

Anyway, for what its worth, here you are

--

The meeting:
  - 60 People turned up - overflowed the room and it became very warm :-(
  - 50% of the people there use Linux as their primary OS.

Paul's talk
===

(PE = Paul Everitt, OSS = Open Source, DC = Digital Creations)

(show of hands) Most people view the fact that Zope is free and Open Source is
the major thing about it.

Believes DC has a sustainable business model for OSS - Red Hat etc. don't.

Lots of stuff in Zope originally comes from DC's work with Newspapers - users
being able to edit stuff, undo, etc.

DC and business model
  - DC were spun out of a newspaper consortium who considered the object stuff
"worthless" so gave it to DC when they were spun out.
  - They realised they needed to be a service/consulting company - not a product
company - because the market was already done on web application servers and
it would require *massive* amounts of investment to even have a chance of
competing.
  - Their first investment was a banker who used the stuff and then called them
to invest. Following that minority investment he convinced them to 
release it
all as OSS. The rest is history etc.
  - First round investment, spent it on Zope, not DC. DC != Zope. Because then
Zope doesn't appear commercial, protects the OSS nature. They don't want to
dominate Zope, but they want to back it.
  - People are throwing money at DC, seems like intelligent money not any old VC
trying to get on bandwaggon. 2nd round of money spent on Zope, 3rd round of
money spent on DC.
  - In '99 made no money. In '00 they turned sales on, and all hell 
broke loose -
Zope is hot property, "people were beating themselves up in the sales
funnel".
  - DC is 30 people.
  - Additional investments in DC are on the horizon, which should mean more of
everything for Zope

 From Business Partner's perspective will get more formalised etc.

Brian Lloyd was employee number 1 of DC, now product manager of Zope. 
His number 1 goal is to open up Zope - make Zope bigger than DC. 
Giving other people checkin authority is a big aim. They do OSS 
distribution but not OSS development at the moment (because DC do the 
development). Therefore number 1 priority.

DC are involved in Mozilla and are getting a good idea of how they run OSS. He
later demo'd the Zope studio, and it looks interesting.

Zope will still have a benevolent dictator model. They come out of the Python
community so will be like that.

Was some discussion around how to run large OSS projects etc.

Big things will happen in the next 6 months. Lots of opportunity, 
sky's the limit etc. What do you want in Zope 3?

"The Soul of Zope" - how do you describe Zope, where its going etc. Very hard.
"Focussed on rapid deployment of rich solutions to diverse
audiences". This drives into 3 things... (see later - "More power for more
people", "All tiers as managed content", "Web API")

Objects on the web that ordinary people can walk up to and do rich and
interesting stuff - and then they can talk those objects and do their 
own thing.

Diverse - so everyone in the food chain. Things that Work the way people work.
Allow people to recover from their mistakes.

More power for more people - safely delegating control, use web as complete
object system. Security, undo, versions, transactions - all those things that
stop people from screwing things up.

All tiers as managed content. Similar to 3 tier model.  The way all 
the existing
app servers do is wrong, the way they are doing it right. 
Presentation and logic
on file system - hierarchical storage model, messy to admin etc. When you want
to cluster, you need to cluster the file system - hard/expensive. presentation
managed differently from logic (different tools). Different data model for data
("square" - tabular, not hierarchical). So each layer completely 
different and independent. Zope wants to treat each layer in the same 
way. Will all look and feel very similar. Cluster, manage, search 
etc. Presentation, logic, data.

This is a sweet spot for Zope. Gives a scorecard for Zope design decisions.

Tools for developing objects

GoLive 5 have great WevDAV.

WEbDAv will get a lot better.

Python products could be endangered species because its managed in the file
system, which isn't in the "all tiers as managed content" thing.

Web API SOAP 

RE: [Zope] Search on ZCatalog or ZSQL in MySQL

2000-08-24 Thread Steve Drees

 the true decision however the current database news is about 350M and i
 would like to extend it to store images and file, so is possible that at
 the final year if everyting comes ok it outperforms the 1GB data

The limit I think you refer to is the 2GB file size limit on _some_
OSes. So you really have more room than you thought you did, and you may
have more room than you can imagine depending on your platform.

Some things I would suggest.

Store the stories in the ZODB.
Store URLs for the images in the ZODB as properties of the story.
Store the images on the filesystem and serve them out of apache or some
other static webserver.

That'll help keep your Data.fs size down and also give you a little better 
performance.


___
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] Linux and ODBC

2000-08-24 Thread Tony Corrente

Hello.. 

I am currently using the openlink ODBC drivers to access Progress DB's
on a HPUX System from A Linux Web Server using  Apache and PHP4. It
Works... 
The rest of my site has been moved to Zope.  Everything I've read states
that the Zope DA's for ODBC only run under the Win32... Is anyone
working on this ?? or how do I do it from Linux ??  I don't want to
install a N(asty)T(hing)  server if I can avoid it.. 

Thank you. 

Tony Corrente 
Web Administrator 
OMC Europe V.O.F. 
Drongen Belgium . 



___
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] import from 216 to 213 fail

2000-08-24 Thread Didier Georgieff

Hello,

I'm trying to import a folder From 2.1.6 (Linux) to 2.1.3 (Linux) and i get this 
error :

Type d'erreur: TypeError
Valeur de l'erreur: ('len() of unsized object', , None)

I tried to import the zexp in 2.1.6 on Win and it works fine.
AFAIK i have the correct objects in the acquired folder.

I saw some postings on the list about that problem and i suspect it's the 
2.1.3. I'm i correct or do i have to check something else with my zexp ?
Thanks.
Didier Georgieff

___
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] Windoze + Zope in Debug :S (OT)

2000-08-24 Thread Jens Quade

Chris Withers [EMAIL PROTECTED] writes:

 You know the story: Zope spits out four pages of debug info, and you can
 only read the last 25 lines :(

mode con lines=50
should help (but may need display.sys or ansi.sys in your config.sys).

But: No buffering ...



-- 
Jens Quade * [EMAIL PROTECTED] * Bonn


___
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] ANN: ZWikiZC - A ZCatalog enabled ZWiki

2000-08-24 Thread Johan Carlsson


ZWikiZC is a ZCatalog based clone of the original ZWiki by Simon Michael

http://www.zope.org/Members/johanc/ZWikiZC/wiki/FrontPage

http://www.zope.org/Members/johanc/ZWikiZC/wiki/ZWikiZC

I need help with testing. 
There might be a alote of bugs in this first release so I wish to get feedback so I 
can fix them. 
Send your BugReports to me Johan Carlsson [EMAIL PROTECTED]

Regards,
Johan

___
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 Collector] Zope Bug entry: An alt attribute of img element inserted by Image objectsent inserted by Image objects

2000-08-24 Thread Brian Lloyd

  It's not required, actually, just recommended, and a 
 filename is better than
  NOTHING, which is what he proposed.  I'd definately be -3 
 on this one.
  Actually, I'd rather see BORDER=0 be the default.  I've yet 
 to find a single
  person who wants a border on their images...
  
  Chris
  
 
 1.
 'alt' IS required, look at DTD:
 !ATTLIST IMG
 
 src %URI; #REQUIRED -- URI of image to embed --
 alt %Text;#REQUIRED -- short description --
 
  
 
 2.
 The way you want every single image will leave some garbage on the 
 screen when you browse with Lynx, even if it has only meaning for GUI 
 browsers.

Ok - I propose that image.tag() and .__str__ will:

  o use the content of the 'title' property if defined

  o otherwise generate alt=""

  o include border="0" by default

Unless people complain loudly, I'll put on the benevolent 
dictator hat and have this is 2.2.1 (should be out tomorrow) :)


Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.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] Zope developer in Orange County - California

2000-08-24 Thread Paul Aviles



We are looking for a developer or developing 
company for a B2B startup. Responsible party should have experience developing 
web sites in Zope and familiarity with XML. If interested please send me your 
information.

Best regards,
-pa


Re: [Zope] Where do I find out about cookies?

2000-08-24 Thread Maik Roeder

Hi Jean !

Jean Jordaan wrote:
 It looks like I'm going to be using cookies now, and I don't find any
 How-To on cookies.

I am collecting everything on cookies in the developers portal
of the ZDP:

http://zdp.zope.org/portals/developers/sessionmanagement/cookies

Hope this helps. Once you have done more research, maybe you can
give some feedback, so I can add it to the ZDP ?

Best regards,

Maik Röder

-- 
"The computing future is based  on "cyberbodies" - self-contained, 
neatly-ordered,  beautifully-laid-out  collections of information, 
like immaculate giant gardens." The second coming - A manifesto. David
Gelernter http://www.edge.org/3rd_culture/gelernter/gelernter_p1.html

___
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] The tree tag, SQL and what should be simple

2000-08-24 Thread Rik Hoekstra





I thought this was going to be simple but having read numerous postings on
the
mailing list and all related HOW-TOs I can find, I think I can confirm I am
stuck. This is sad because I've just spent a very productive couple of days
with
Zope and MySQL making the world a better place.

I have a table for chickens. Basically it looks like this


snip sql

It would appear that I need to feed two things to the dtml-tree tag.
Firstly my
starting levels (my types) and then the related data underneath but I can
only
feed one SQL query to the tag. All the stuff I read seems to assume the
info at
the top level comes from the same file (and from a key id). How do I do
this or
indeed, is it possible? I have a nasty feeling I am missing something
obvious.


Unless I do not quite understand you I think you missed Anthony Baxter's
tree_and_sql howto
(http://www.zope.org/Members/anthony/tree-coding-tricks ). It will probably
give you either exactly what you want or enough ideas to get you further.

hth

Rik



___
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] Corruption caused by 'Pack'?

2000-08-24 Thread Jim Fulton

Marcin Kasperski wrote:
 
 After using succesfully zope for some time I decided to cut a bit the
 database size. So I went to Control Panel/Database and clicked "Pack"
 for objects older than 10 days. At first everything seemed to work (I
 returned to the management screen seeing new - smaller - Data.fs size),
 but when I tried to preview my pages, terrible things happened - most
 pages turned to be not available, instead of seeing them I saw zope
 errors with useless descriptions like 'Zope error: error' etc
 (restarting browser and zope did not helped).
 
 Happily, during the process, the Data.fs.old file was created - stopping
 Zope, removing all Data.fs.sth and overwritting Data.fs with
 Data.fs.old returned zope instance to the previous state. So I will not
 click 'Pack' anymore.
 
 Has anyone notified similar problems? What could be going on?

I looked into this and reproduced the problem you had with the data
file you sent to Brian. Thanks.

Sadly, the bug was a bug that was fixed in Zope 2.1, but which
didn't make it into the main CVS trunck and wasn't included in 2.2. 
:(

The fix will be included in Zope 2.2.1.

The bug happens when you pack the database and there were some
undone transactions after the pack time and before some version
commits.  The fix for this has been reapplied to the 2.2 branch 
and the main trunk and I've verified that it fixes the problem you 
saw.

Jim


--
Jim Fulton   mailto:[EMAIL PROTECTED]   Python Powered!
Technical Director   (888) 344-4332http://www.python.org  
Digital Creationshttp://www.digicool.com   http://www.zope.org

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 )




[Zope] gvib

2000-08-24 Thread Bob Tierney


Hello everyone!

We released version 0.9.2 of the gvibDA Interbase database adapter.  This
version is a bug fix release.  The new version can be had at
http://www.zope.org/Members/RETierney/gvibDA.  Thank you.

Bob 

_

Robert E. Tierney   EMail: [EMAIL PROTECTED]
Going VirtualHTTP: www.goingv.com
10800 Independence Pointe Pkwy  Phone: 1-704-849-0731 x109
Matthews, NC 28105Fax: 1-704-849-2279
  AIM: RETierney
_


___
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] gvib

2000-08-24 Thread Bob Tierney


I forgot to mention that the 0.9.2 version contains a Windows DLL
contributed by Brad Clements.  Sorry about that.

Regards,

Bob


_

Robert E. Tierney   EMail: [EMAIL PROTECTED]
Going VirtualHTTP: www.goingv.com
10800 Independence Pointe Pkwy  Phone: 1-704-849-0731 x109
Matthews, NC 28105Fax: 1-704-849-2279
  AIM: RETierney
_


___
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] Search on ZCatalog or ZSQL in MySQL

2000-08-24 Thread Nestor A. Diaz L.

Hi,

I have a to take a decision to use or not to use the ZCatalog that's
because i'm some kind newbie to Zope.

Well the history is the following:

I have to make a system to store news, so i have to migrate a old system
using perl cgi's and perform a search on text files to use Zope as the
search engine however i don't know if i have to use a SQL database like
MySQL or use the ZCatalog, i need full text search, and ZCatalog fits on
the true decision however the current database news is about 350M and i
would like to extend it to store images and file, so is possible that at
the final year if everyting comes ok it outperforms the 1GB data

I read that CodeCatalog.com use MySQL to make their full text
search engine, so i think that i can do the same with MySQL using a unique
number for each registry and let ZCatalog do a Vocabulary based on the
ZClass that get such data? and know how to access the database when
someone request a word in the vocabulary based on this unique id?

I have a made a prototype in Zope at http://repnet.engendro.com using
ZCatalog and the admin console is at http://repnet.engendro.com/admin_html
i got based on the ZClass Tutorial from behieve and get it working.

Well, i have to make a decision so my last resource is to use a coin ;)

Thank you very much (sorry for my poor english :DDD)

--
Nestor A. Diaz
Ingeniero de Desarrollo
Engendro - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.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] Not like ASP complaint - any good answers

2000-08-24 Thread Sean McGrath

All,

I have had a number of e-mails from developers
using Microsoft ASP in recent days. The paraphrased consensus
in the e-mails is that the external
methods/python methods approach to mixing markup
with code in Zope is more clunky than in ASP where
you can intermingle the two at will.

Has anyone written anything on this topic I could
point them to?

regards,
Sean



http://www.pyxie.org - an Open Source XML Processing library for Python


___
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] What does context.registerBaseClass() do ???

2000-08-24 Thread Daniel Rusch

I have searched the FM's and I cannot find anything on
context.registerBaseClass(). Can anyone explain what this does for me
and what the syntax of the argument list should be?

Thanks,

Dan

___
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] Not like ASP complaint - any good answers

2000-08-24 Thread Chris McDonough

Sean,

This is mostly on purpose.  It will probably only get more like this in
time to come.

There's a good article on this topic (although it deals with JSP as
opposed to ASP) at http://www.servlets.com/soapbox/problems-jsp.html

 -Original Message-
 From: Sean McGrath [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 24, 2000 4:29 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Not like ASP complaint - any good answers
 
 
 All,
 
 I have had a number of e-mails from developers
 using Microsoft ASP in recent days. The paraphrased consensus
 in the e-mails is that the external
 methods/python methods approach to mixing markup
 with code in Zope is more clunky than in ASP where
 you can intermingle the two at will.
 
 Has anyone written anything on this topic I could
 point them to?
 
 regards,
 Sean
 
 
 
 http://www.pyxie.org - an Open Source XML Processing library 
 for Python
 
 
 ___
 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] What does context.registerBaseClass() do ???

2000-08-24 Thread Chris McDonough

This should be used in the initialize() routine of your product.  It
initializes the class passed in so it may be use as a base class for
ZClasses in your Zope instance.  It takes a single class object as an
argument.  An example __init__.py:

import Foo

def initialize(context):
context.registerBaseClass(Foo)





 -Original Message-
 From: Daniel Rusch [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, August 24, 2000 4:56 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] What does context.registerBaseClass() do ???
 
 
 I have searched the FM's and I cannot find anything on
 context.registerBaseClass(). Can anyone explain what this does for me
 and what the syntax of the argument list should be?
 
 Thanks,
 
 Dan
 
 ___
 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 pictures

2000-08-24 Thread Dieter Maurer

William JOYE writes:
  I have notified that every time on my web page one picture is missing (with
  IE and Netscape). When I refresh the page there is another picture missing
  and the first is OK. After another refresh, the first is missing and the
  second is OK. And so on...
  
  I use Apache and Zope 2.1.6 under Linux. In the Apache log, I have notified
  that http code is always 304 but when pictures are missing in web page the
  transferred size is '-' and no '0'.
Interesting!

Recently, I tried to locate a very similar (though not that well
reproducible) problem. It may well be the same problem.

My problem really confused me:

  Netscape showed a broken image for each "reload".

  When I verified the Zope result with an httplib
  application (this is a Python module to generate
  HTTP request), I got a perfect 304 response.
  No hint whatsoever on any Zope problem.

  Print statements in "OFS.Image.index_html" demonstrated
  that Zope received a request with an "If-Modified-Since"
  header and that it decided that it has no newer image.
  Thus, it responded with status 304. This is correct.

  When I did a forced reload (i.e. Shift-Reload), the image
  was shown correctly. From then on, a normal reload
  showed the image correctly, too.

  The forced reload leads to a request without "If-Modified-Since".
  For such a request, Zope returns the image in a standard
  status 200 response.

  I can only make some sense of this, when I assume that somehow
  Netscape has associated the image with the broken image in
  its cache.

I was determined to track this problem down at home.
However, I was unable to reproduce it. This is to
be expected when the problem has to do with the
browser cache. Of cause, it is different at home
than at work.

However, many people report similar problems. So, probably,
Zope sometimes does something strange with images that
confuses browsers, maybe let them associate an image
permanently with a broken image in their cache.

Because the behaviour you reported seems to be reproducible,
we may have a change to determine the cause.

If you are willing to track this problem down, I may
give some hints about instrumentation and maybe debugging.



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] Acquisition, Not! How?

2000-08-24 Thread Dieter Maurer

=?ISO-8859-1?Q?J=FAlio?= Dinis Silva writes:
  I know this sound strange but is there a way to,
  during execution of a dtml method, when a with tag is used one
  force acquisition not to be used?
It is possible -- with an external method.

But probably, you should not do it. It may have strange
side effects. Zope uses acquisition for access validation.
If you cut the acquisition chain, Zope may no longer find
the acl_user necessary to determine the identity of the
current user and its roles. You may get unexplanable
Unauthorized exceptions.

Okay, you may try it yourself:

  the external method:

def getBase(obj): return getattr(obj,'aq_base',obj)
   
  it returns "obj" with all acquisition context removed.


As indicated above, I would not use it, but instead use
a test function:

def hasattr_base(obj,attribute):
  base= getBase(obj)
  return hasattr(base,attribute)

I would use this to test in DTML whether a object "O" has
itself at attribute "a" which is not acquired and
raise an exception, if not.



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] The tree tag, SQL and what should be simple

2000-08-24 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  I have a table for chickens
  And another table for types
 
  Each chicken has a type associated with it. At the end of the day I want to
  display the chickens underneath the type it has ... start the screen up it would
  say
  
  + BIG
  + MEDIUM
  + SMALL
  
  And the users can then expand to see the chickens available in each category.
  
  + BIG
   - Flossie
   - Wombat
   - Hank
  + MEDIUM
   - Debbie
   - Fruitbat
   - Harold
  + SMALL
   - Bob


I think, I have a solution for you, but it is a bit tricky
and you must fill out the details. I am not sure, it will
work.

Let's show the picture.

  You have two Z SQL methods: one for the top level (i.e. type
  table) without parameters, one for the chicken level
  with parameter type.

  You have a DTML method "branches". It should determine
  the branches in the current context. It looks at the
  variable "tree-level" to determine whether it must
  call the type or the chicken Z SQL method.
  If you need to use the chicken Z SQL method, you
  are in a context that knows the current type.
  You call the method with something like:

dtml-return "chicken(type=type)"

  You may need to adapt the names to your case.


Good luck
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] strange login behaviour

2000-08-24 Thread Dieter Maurer

Didier Georgieff writes:
  I have really simple login wich is a link to a Method "login" wich 
  comprise
  
  ... REDIRECT for login
  dtml-call "RESPONSE.redirect(baseURL)"
  
  and 'login' method has NO autorizations for anonymous.
  
  It redirects me on the right "baseURL" page, but the "baseURL" 
  inludes an "info" Document with 
  
  dtml-var "AUTHENTICATED_USER.getUserName()"
  dtml-in "AUTHENTICATED_USER.getRoles()"
  
  who shows ONLY anonymous after the first login..
  
  IF I do a second login (exactly the same) then it works fine and i 
  got the right Names and Roles..
I am not sure...
... but it might be possible that the browser sets a cookie only
after the redirect.

I saw a comment in GUF (Generic User Folder, a Zope product
for cookie base authentication) about the necessity of a
double indirection because cookies might not be set during
authentication. This would point into the above direction.

I must admit, however, that I did not really understand
the GUF comment.


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] Run a java applet in Zope

2000-08-24 Thread Michel Houben

Dear,

I have a dtml-document with a Java-applet and I can't get it runnning in 
the Zope envirronement. I hope someone knows it and can solve my problem.

Michel Houben


___
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] Microsoft SQL Server Access under Linux?

2000-08-24 Thread Jim Sanford

I have tested ODBCSocketServer for queries returning smal sets (20 rows) it seems 
fine. For larger sets (100+ rows it is slow, my
geuss is that the XML encoding is taking the most time. Did not try its MS specific 
option for returned results but the
documentation says that it should be faster.

JIm
- Original Message -
From: Spicklemire, Jerry [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 23, 2000 2:12 PM
Subject: [Zope] Microsoft SQL Server Access under Linux?


Darin asked:

 Is it possible to access an ODBC data source through Zope running under
Linux?

I'm getting ready to test such a solution this week. First, we'll try :

ODBC Socket Server http://odbc.linuxave.net/

and the accompanying Python Client. This will require some coding, and
wrapping the Python Client as an External Method. ODBC Socket Server isn't
the most generic approach I've seen, but it is about as simple as such stuff
can get.

If that one doesn't pan out, it's on to :

SQLRelay
http://www.firstworks.com/site/pages/html/frames.html

which is more generic, and even has a Zope Database Adapter.

My fallback plan, assuming insurmountable snags with the first two attempts
is:

FreeTDS http://www.freetds.org/

which is SQL Server specific, and so the least generic of all.

Then, if all else fails, we'll have to look at the OpenLink (for $) stuff.

OpenLink http://www.openlinksw.com/

I'll let you know how it goes.

Later,
Jerry S..

___
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] Re. Linux and ODBC

2000-08-24 Thread Spicklemire, Jerry

Hi Folks, 

Just to follow up on the plan to test ODBC Socket Server. We now have a
working copy resident on a NT test system here, which enables us to ship
queries across the LAN from Unix / Linux land to hit against Windows Native
(ODBC) data stores, and get back datasets as XML. So far, it works like a
champ, and it comes with a handy little Python demo client app. 

All I need to do now is wrap an enhanced client process as an external
method, and voila, a whole bunch of sticky wickets will get smoothed out!

you can get it at:  http://odbc.linuxave.net/

More Later,
Jerry S..

___
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] Generic Workflow Products?

2000-08-24 Thread Kapil Thangavelu

[EMAIL PROTECTED] wrote:
 
After applying Zope to a couple of in-house projects
(which turned out pretty well, thank you),  I've started
to come to the realization that many applications boil
down to workflow management.  A job comes in, attributes
get set, things get attached to it, and it gets passed
from person to person (to machine, in some cases)
as it flows through the system.
 
I guess to start out it would need the following:
 
-- user classes
-- job creation
-- job attributes, with protection from view and modification
   depending on user classes
-- multiple job queues, with access control, and some sort
   of priority.  Queues may end up being implemented simply
   by having a job state, sequence number, and priority, and
   moving from one queue to another would just be changing
   the state.
-- job timeouts for escalation,
-- e-mail "ticklers" and notification
-- job routing based on attributes and actions.
-- some sort of api other then HTTP/HTML for external
   programs to access jobs, perform actions, and update
   jobs.
-- Extra Credit:  Graphical workflow editor.
-- (what else am I missing)
 
Sounds like a job for Zope, doesn't it.  Basically I've
implemented a couple of systems like this, either
classic database-driven or z-class driven.  But I'm tired
of re-inventing the wheel.  It would be nicer if systems
like this could be implemented at the "workflow logic"
level rather than the Zclass level.  IE a set of ZClasses
or Product classes that implemented workflow system.
 
-- cary
 
 There are several workflow activites within Zope that I know of:
 
 PTK has and "implicit" workflow support for moving documents in a
 review process. Unfortunately workflow hangs off of the documents from
 what I saw of its design patterns. Not a good design if a workflow
 step involves multiple documents and the execution of applications on
 data.

The PTK has been undergoing radical changes as of late. Its worth taking
another look at as the current design is much more supportive of
alternative workflow designs.

 Several Zope sites have some kind of workflow for what they do. There
 is a mesh healing (CAD/CAM) Zope based application service provider
 (ASP) that comes to mind.

also the Xen Zope Product (not on zope.org, where i forget)


Kapil

___
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 do I create a folder full of virtual DTML objectsfrom records in a database records in a database

2000-08-24 Thread Chris Beaumont

David,

Thank you, I've been successful in setting up basic SQL methods, data
input forms and query forms,
the problem Ive been having is in trying to break each table record (one
row in a table, say) out into a separate DTML document.. with fields in
the record forming the parts of the document..  (I'm making a web
heirarchy of events which each have to have their own page with various
kinds of constantly changing information about the event on them.. 
These pages have to live at relatively stable URLs.. (of course, it
doesnt matter if they are physical documents to a search engine..)

So far what Ive seen in the ZSQL Methods guide are lots of hints on how
to use SQL methods to build tables from my data, and how to build
interfaces to use a given SQL query to filter those tables by content.. 
Which is great if you want lots of lists..

What I want to build are lists *and their linked documents*  the
records' fields flowing into  the meta tags and body text of many
individual objects. When a record is deleted from the source SQL table,
I want to be able to have that deletion propagate to the child
document..

Is a valid approach to iterate through all of the rows of the table,
taking one field of the individual record and using that to deliniate
the "ID" of the generated document, then writing the others out as HTML
through dtml-var tags?  

I know this seems like a stupid question, but it seems as if this is
such a common need that I cant help but feel that one of the available
products would address it. If one doesnt exist then yes, I'll have to
figure it out myself.. I've seen similar things done in some Zope
products.. so I know it can be done... What I was hoping for is for some
suggestions on the best way to go about it that didnt require me
figuring it out from scratch  

Thank you



"R. David Murray" wrote:
 
 On Wed, 23 Aug 2000, Chris Beaumont wrote:
  I need to take rows in an SQL database table, and create one or
  several nested folders of web pages out of them..
 
 I'd suggest checking out the ZSQL Methods manual, and then asking any
 questions that you still have (and there probably will be some!)
 


___
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 product to build meta-tags?

2000-08-24 Thread Chris Beaumont

Are there any Zope products that automate the meta-tag process for HTML
documents?

Thanks
Chris Beaumont
[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] How do I create a folder full of virtual DTML objectsfrom records in a database records in a database

2000-08-24 Thread R. David Murray

On Thu, 24 Aug 2000, Chris Beaumont wrote:
 Thank you, I've been successful in setting up basic SQL methods, data
 input forms and query forms,
 the problem Ive been having is in trying to break each table record (one
 row in a table, say) out into a separate DTML document.. with fields in
 the record forming the parts of the document..  (I'm making a web
 heirarchy of events which each have to have their own page with various
 kinds of constantly changing information about the event on them.. 
 These pages have to live at relatively stable URLs.. (of course, it
 doesnt matter if they are physical documents to a search engine..)
[...]
 What I want to build are lists *and their linked documents*  the
 records' fields flowing into  the meta tags and body text of many
 individual objects. When a record is deleted from the source SQL table,
 I want to be able to have that deletion propagate to the child
 document..

Maybe I'm misunderstanding your question, or maybe I'm misuderstanding
ZSQL methods grin, because it does seem pretty straightforward to me.
I haven't done what I'm about to describe, though, so I could be way
off base.

It seems to me that what you want to do is have a ZSQL method that
takes an argument from the URL (they can do that), where the argument
is the 'id' of the record.  Then your method uses that argument to
retrieve *just* that row from your database.  Then you have your
html template filled in using the column variables from that record.
No need to have actual document objects sitting around, just the
template.  If you delete a record the corresponding page is therefore
gone.  And you get stable URLs, if the ids don't change:

http://www.yoursite.com/yourmethod/recordid

--RDM


___
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] speeding up dtml-tree

2000-08-24 Thread Clinton Roy



"Andy McKay" [EMAIL PROTECTED] writes:

 A real crude way to hack the dtml-tree tag is to make it always assume there
 are child nodes. This prevents the look up and is a lot faster. Think of
 Windows Explorer style tag.
Not really something I want to do, and in my case wouldn't really help
anyway, as the icon chosen quite often depends on children values.

Dieter Maurer [EMAIL PROTECTED] writes:
 You could implement your own cache in your external methods.

All I ended up doing was pickling the data structures that I created
and doing some simple caching. It works beautifully. Not that Zope
helped me at all. I couldn't import modules from the Extensions
directory, so I ended up having to put things in $ZOPE/lib/python. For
testing I had to have things in the Extensions directory; two copies
of things flying around isn't nice. When unpickling under Zope, python
couldn't find the class I was referring to, so I ended up just caching
the initargs.

While none of the above hoop jumping was hard, it was a pain. I
certainly hope extensions are supported better in 2.2, in particular:

* being able to import modules from the extensions directory
* not having naming problems when using extensions under zope

I'm about  close to ditching a Zope talk I was preparing to give to my
local Unix users group, but I'm going to see if 2.2 has improved.

I'm losing faith people..
-- 
Clinton Roy

___
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] Not like ASP complaint - any good answers

2000-08-24 Thread Luciano Ramalho

Intermingling application logic with HTML code is a good idea if these
conditions are met:

1) your website logic and its graphic design always change in sync;
2) you have more real programmers than HTML coders;
3) your programmers´ workload is so light that you don´t care about
reusing code;

Unfortunately, in the real world it seems these conditions never exist.

Best regards,

Luciano Ramalho


Sean McGrath wrote:
 
 All,
 
 I have had a number of e-mails from developers
 using Microsoft ASP in recent days. The paraphrased consensus
 in the e-mails is that the external
 methods/python methods approach to mixing markup
 with code in Zope is more clunky than in ASP where
 you can intermingle the two at will.
 
 Has anyone written anything on this topic I could
 point them to?
 
 regards,
 Sean
 
 http://www.pyxie.org - an Open Source XML Processing library for Python
 
 ___
 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] Not like ASP complaint - any good answers

2000-08-24 Thread Andrew Kenneth Milton

+---[ Sean McGrath ]--
| All,
| 
| I have had a number of e-mails from developers
| using Microsoft ASP in recent days. The paraphrased consensus
| in the e-mails is that the external
| methods/python methods approach to mixing markup
| with code in Zope is more clunky than in ASP where
| you can intermingle the two at will.

So don't use External or Python Methods. They are a small part of Zope,
and are usually used to do some complex logic or calculation. It is not 
normal to embed markup inside of Python or External methods.

I would suggest your developers have a lack of understanding of how
Zope operates, and also have a fear of the unknown and are grasping for
reasons not to use Zope.

If the best they can come up with is External Methods are more clunky than
ASP, and you don't need External Methods (not everyone does), then you have
a winner.

| Has anyone written anything on this topic I could
| point them to?

If you're really talking Python Products and not Python Methods, then
your developers really have no idea. Abstracting business logic into an
object which can 'render itself' in HTML if required, and can be customised
without using python to render in different ways, is obviously a better
idea than logic+markup in scattered files (and I don't just point the
finger at ASP here).

Quick and dirty, sure you can something a little more complex in ASP a 
little faster. If you have a large project, and you want it maintainable,
then this is not going to work for you, and I'm speaking from experience here
(30 + guys on one ASP project).
-- 
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 ABN: 83 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] Linux and ODBC

2000-08-24 Thread Andrew Kenneth Milton

+---[ Tony Corrente ]--
| Hello.. 
| 
| I am currently using the openlink ODBC drivers to access Progress DB's
| on a HPUX System from A Linux Web Server using  Apache and PHP4. It
| Works... 
| The rest of my site has been moved to Zope.  Everything I've read states
| that the Zope DA's for ODBC only run under the Win32... Is anyone
| working on this ?? or how do I do it from Linux ??  I don't want to
| install a N(asty)T(hing)  server if I can avoid it.. 

Geez these things go in cycles...

Are you using the UDBC drivers or the ODBC drivers? I can help with the
former :-)

-- 
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 ABN: 83 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] Using crontab instead of rc.d

2000-08-24 Thread Curtis Maloney

On Thu, 24 Aug 2000, Dominic Mitchell wrote:
 On Thu, Aug 24, 2000 at 09:46:11AM +, Stephan Goeldi wrote:
  5  *   *   *   *   root./start
  
  This would start the script every five minutes. Now how do I check if
   the script is running after it's been started and if it wasn't to
   restart it again.
 
  Why don't you write a shell script which
 
  1. starts the ./stop script, and
  2. starts the ./start script
 
  every 5 minutes? So you don't have to check if Zope runs. It's like a
  restart.

 That would be very intensive on the server.  Imagine if your office file
 server was set to reboot every 5 minutes, "just in case".  It's far
 better to just check if it's dead and only then restart it.


Sounds to me like you need a script to do the following:

check if /tmp/zope.pid exists
  if it does, check if a process of the number stored in there is running
if not, start zope
  if not, start zope.


I really suck at shell scripts, but from what I've seen, you will need some 
way to grab the PID of Zope as it starts.

 -Dom


Have a better one,
Curtis Maloney

___
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] Linux and ODBC

2000-08-24 Thread Curtis Maloney

On Fri, 25 Aug 2000, Tony Corrente wrote:
 Hello..

 I am currently using the openlink ODBC drivers to access Progress DB's
 on a HPUX System from A Linux Web Server using  Apache and PHP4. It
 Works...
 The rest of my site has been moved to Zope.  Everything I've read states
 that the Zope DA's for ODBC only run under the Win32... Is anyone
 working on this ?? or how do I do it from Linux ??  I don't want to
 install a N(asty)T(hing)  server if I can avoid it..

Yes, I ran into a similar problem recently, trying to access a remote 
DataFLEX db (with an ODBC add on) from Linux.  If you search the how-tos 
carefully, there IS documentation on how to patch one of the DAs to work with 
mxODBC, a python ODBC interface.

I have built this product, and it appears to work, but I as yet have not 
really tested it.

If you want the post-patched product, I can tar it up for  you, and e-mail it 
directly.


 Thank you.

 Tony Corrente
 Web Administrator
 OMC Europe V.O.F.
 Drongen Belgium .


Have a better one,
Curtis Maloney

___
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 do I create a folder full of virtual DTML objectsfromrecords in a database records in a database

2000-08-24 Thread Kapil Thangavelu

"R. David Murray" wrote:
 
 On Thu, 24 Aug 2000, Chris Beaumont wrote:
  Thank you, I've been successful in setting up basic SQL methods, data
  input forms and query forms,
  the problem Ive been having is in trying to break each table record (one
  row in a table, say) out into a separate DTML document.. with fields in
  the record forming the parts of the document..  (I'm making a web
  heirarchy of events which each have to have their own page with various
  kinds of constantly changing information about the event on them..
  These pages have to live at relatively stable URLs.. (of course, it
  doesnt matter if they are physical documents to a search engine..)
 [...]
  What I want to build are lists *and their linked documents*  the
  records' fields flowing into  the meta tags and body text of many
  individual objects. When a record is deleted from the source SQL table,
  I want to be able to have that deletion propagate to the child
  document..
 
 Maybe I'm misunderstanding your question, or maybe I'm misuderstanding
 ZSQL methods grin, because it does seem pretty straightforward to me.
 I haven't done what I'm about to describe, though, so I could be way
 off base.
 
 It seems to me that what you want to do is have a ZSQL method that
 takes an argument from the URL (they can do that), where the argument
 is the 'id' of the record.  Then your method uses that argument to
 retrieve *just* that row from your database.  Then you have your
 html template filled in using the column variables from that record.
 No need to have actual document objects sitting around, just the
 template.  If you delete a record the corresponding page is therefore
 gone.  And you get stable URLs, if the ids don't change:
 
 http://www.yoursite.com/yourmethod/recordid

Thats a really cool idea. if you combine that with a python brain you
can get customized display.

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

2000-08-24 Thread Jesse D. Sightler

Hi Melissa,


Did you get to come down this weekend?  If you did, then that was one
short visit!  


It was a very short visit, as I ended up coming in Saturday afternoon and
 leaving early Sunday afternoon to go to a 5PM meeting. 


Well, after tomorrow you may not recognize me.  (I may not
want to recognize me either!)  I am going tomorrow to Laura Hipps to get
my hair cut and possibly highlighted.  I have always wanted it short, so
here goes.  Even though I really want it, it is still scary.  (Be glad
that you are not a girl!)


So how do you like it?


Well, I was just wondering if you think you could handle riding the rides
with me at Carowinds?  


Sure. :)


The only kinds of rides I don't ride are the ones
that hang you upside-down and leave you there for a little while.


Oh, I used to never ride those, but I'vc gotten to the point now where I'll
 ride just about any of them. Admittedly, I'm still not the biggest of "stand-up"
 coasters...  The "vortex" (which is, I think, still the only one like that
 at Carowinds) actually looks pretty good, though. :)


  Are
you going to meet us at the church or are you going to meet us at
Carowinds?



I'm planning on coming down Friday evening and meeting y'all at the church.
 Do you know what time they are planning on meeting? The last that I had
 heard was 8 AM.

-
Jess




[Zope] Product release: ExtFile/ExtImage 0.91

2000-08-24 Thread Heine, Gregor

Version 0.91 of the ExtFile/ExtImage Software Product has just been
released.

The ExtFile and  ExtImage Products store large files in an external
file-repository and are able to display icons for different MIME-Types. The
ExtImage Product additionally creates preview-thumbnails from images and
displays them.
ExtFile and ExtImage basically work like the Zope File and Image products
but the (binary) file is not stored inside the ZODB, but in an external
file-repository. Only meta data (like title and description) are stored in
the ZODB. This prevents the Database swelling up quickly, when many large
files are uploaded and thus increasing database performance. 
Version 0.91 fixes an important security issue, that allowed read access to
any file in the local filesystem (readeable for the UID of the zope
process).

The Product is avaliable at http://www.zope.org/Members/MacGregor/ExtFile/

MacGregor!
 

___
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-dev] LoginManager.

2000-08-24 Thread Bill Anderson

Terje Malmedal wrote:
 
 [Bill Anderson]
  Terje Malmedal wrote:
 
  Can anybody please provide a simple example of a working usersource
  written in python?
 
  Look at the UserSource source for LoginManager and Membership.
 
 I did that. I feel I am missing something obvious.
 
 What I do is:
 
   * create a folder named "/test"
   * inside /test I choose login manager from the "avaliable objects" drop down.
   * select "solid user source" from the menu.
   * press "add"
   * create an index_html which Anonymous is not allowed to see.
 
 When I access /test from an unauthenticated webbrowser it finds that
 it can't view it and pops up the username/password window, but neither
 retreiveItem nor anything else gets called.

Is your login form even calling the authenticate method? check your login method.


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

___
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] Logs stamped with wrong time

2000-08-24 Thread Brian Lloyd

 
 I just checked, and my copy of Apache logs in local time (my last
 example). So I agree that following the convention and logging in
 localtime is best.

FYI - I've checked in the fix for this for 2.2.1 (we've been 
offline for a few days though, and I have to catch up on 
reply notifications to bug submitters...)

Brian Lloyd[EMAIL PROTECTED]
Software Engineer  540.371.6909  
Digital Creations  http://www.digicool.com 


___
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] Voting for Patches?

2000-08-24 Thread Adam Karpierz

Adam Karpierz wrote:
 There is a patch for it:
 http://classic.zope.org:8080/Collector/1540/view

I wonder whether it'd be worth enabling people to vote on what
patches they'd like integreated and what bugs they'd like solved in the
collector?

Sorry ChrisW but I dont understand what you mean :( ?
(probably my horrible poor english is a cause..)
I dont want enabling people, I dont want any votes.
It only was my reply for _your_ problem.
Below is my full post:

--
Adam Karpierz wrote:
ChrisW wrote:
Okay, firstly, I notice dtml-tree doesn't support the standard
abbreviation:

dtml-TAG "x" - dtml-TAG expr="x"

As the following:

dtml-tree "_.getitem('sequence-item',0)" branches="postingValues"

gives me:

Error Type: KeyError
Error Value: "_.getitem('sequence-item',0)"

There is a patch for it:
http://classic.zope.org:8080/Collector/1540/view
[...]


Where you see any problems in my reply ?
I made patch earlier for my private use (likewise as _all_ other
patches posted by me) and according to your suggestion on IRC
I stuck it into collector... My post was only notification for you.

The one for me is the ability, in effect, to shout 'Me too!' when I see
a bug that I've experienced too.

Heh funny...
Ability for such simple and trivial things as my patches ? Experience ?
Eh... Sorry but this eventually would was true 20 years ago
when I'd started my adventure with programming of stupid computers :)
How you think ? What is my motivation to produce patches etc ?.
Answer is very simple...

Maybe this would help filter down the
collector or at least give anotehr way that it could be prioritised?

What way ?. It was a little bug and inconsistence it tree tag and
I dont see any better way then very simple and safe (without any
influence for compatibility) patch.

Best Regards
--
Adam Karpierz
[EMAIL PROTECTED]




___
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] bug in CatalogAwareness?

2000-08-24 Thread Chris Withers

Shane Hathaway wrote:
  Does it work with SiteAccess?
 
 Untested, but it should work, yes.

I hope so, Squishdot uses exactly the same code now ;-)

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 )




[Zope-dev] ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Spicklemire



Hi Folks,

   OK.. I didn't hear much from my last plea for advice... I 
thought perhaps such a concrete problem would product lots
of sage advice... but there's good news: here's another chance!

Really Really Basic:

If I have a class like so:

class Shopper(
OFS.SimpleItem.Item,
ZPatterns.DataSkins.DataSkin,
Acquisition.Implicit,
AccessControl.Role.RoleManager,
):

""" A Shopper """

# Specify a name for the item type:
meta_type='Shopper'

and let's say I define some attributes in the class 

id = 'default'
email = ''
_passwd = ''

Now... let's further say that I want a developer using this class to
be able to add propertysheets to instances of this class after I'm
finished... to make customized versions of these
objects. Also.. perhaps I want to take advantage of the 'automatic'
nature of property sheets to provide a usable interface so that users
can edit various properties. I was successful in adding a propertysheet
using the 

/specialist/anobject/propertysheets/manage_addPropertySheet?id=foons=

technique.. which I'm pretty sure I could also implement 
programattically. ;-). But when I try:


/specialist/anobject/propertysheets/foo/manage

I get an attribute error looking for 'a_'. 

I get the same error when I try:

/specialist/anobject/propertysheets/foo/manage_addProperty?id=blahvalue=hhtype=string

Any idea what's up with that?

But no matter... I can't add 'email' to *any* propertysheet, even those
in the ZClass, since it's already used in the class. So do I leave it out
of the class and "hope" that someone defines it in some propertysheet
somewhere? Do I do lots of:

if hassattr(self, 'email') and so on.. in case somehow it didn't get taken
care of? I *know* I missing something deep. I'm sure I'll say something
dumb enough here soon.. and someone will point out my basic misunderstanding. ;-)

thanks!
-steve




___
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: Voting for patches?

2000-08-24 Thread Jon Franz

This is already being setup as part of the patch and small change
integration page...
more details once it's up this weekend ;P
you will like.


Message: 9
Date: Thu, 24 Aug 2000 15:09:32 +0100
From: Chris Withers [EMAIL PROTECTED]
Organization: New Information Paradigms
To: Adam Karpierz [EMAIL PROTECTED]
CC: "[EMAIL PROTECTED]" [EMAIL PROTECTED]
Subject: [Zope-dev] Voting for Patches?

Adam Karpierz wrote:
 There is a patch for it:
 http://classic.zope.org:8080/Collector/1540/view

I wonder whether it'd be worth enabling people to vote on what patches
they'd like integreated and what bugs they'd like solved in the
collector?

The one for me is the ability, in effect, to shout 'Me too!' when I see
a bug that I've experienced too. Maybe this would help filter down the
collector or at least give anotehr way that it could be prioritised?

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 )




[Zope-dev] Re: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander

Steve, 

Ok, it is a bug in manage_tabs.

Here's a proper fix:

  dtml-if manage_options
  dtml-with "_(option=manage_options[a_])"
  dtml-if "option.has_key('help')"
  td align="right" valign="top"
  dtml-var "HelpSys.button(HelpSys, REQUEST, 
  product=option['help'][0],
  topic=option['help'][1])"
  /td
  /dtml-if/dtml-with/dtml-if

Replace the dtml-comment with dtml-if manage_options and
/dtml-comment with /dtml-if.

I'm putting this in the Collector.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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] Zope as CGI with IIS Windows 2000 Server

2000-08-24 Thread Rik Hoekstra



URGENT!  Need assistance with Zope as a PCGI with IIS 5 on Windows 2000
server.


After configuring Zope for use as a PCGI, and configuring IIS to use the
pcgi-wrapper.exe, etc...

The test link:http://localhost/Scripts/Zope.pcgi

...is returning the following message within the "Temporarily
Unavailable" error response page:

!--
Error parsing pcgi info file
pcgi-wrapper-version 2.0a4
--

I have tested the file using parseinfo and get no response.


what do you mean by no response? Is it not returning anything or just no
errors?


A theory, at this point has been that there is a
conflict/incompatibility with Zope as a PCGI with IIS 5.0 on Windows
2000.


This seems to be a pcgi (Zope) error though. Only used it on NT4 and IIS4
but from the above a basic incompatibility seems unlikely (to me).


Rik




___
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: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Spicklemire


Cool! Thanks Steve.. I'll give that a try.

I guess the question behind the question though is  is this a
reasonable way to handle property sheets?  Is this how the designers
of ZPatterns envision property sheets will be used? I keep getting
the feeling that I'm missing a basic 'grokism' of the technology and
I keep expecting to get hit over the head with it but I don't.

Anyway.. thanks for tracking down the traceback... 

-steve

___
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] Zope Content Management System

2000-08-24 Thread Rik Hoekstra



Hi there, I am working on a project and have been looking at the Zope
Content Management System as part of the solution. However, I have a couple
of questions. From what I have seen so far, the page generation is all done
through the Zope Management Interface, and the content of the page is done
through a textarea requiring the user to have knowledge of the zope
system(DTML) and HTML. With type type of solution I am looking for however,
I need page content to be generated be users that have little or no
knowledge of HTML. What I am wondering is if it is possible to integrate
the
Zope content management system with Cold Fusion as I can allow users with
no
knowledge of HTML to use an interface designed with Cold Fusion to create
page content. I do not wish to build a content management system from
scratch with Cold Fusion. Any suggestions and/or comments would be very
helpful.

Um, intergration with Cold Fusion would be strange I think. WHat your
question is, probably, is whether you can you wysiwyg HTML editors with
Zope. Some minor inconveniences aside that mostly have to do with file
extensions, the answer is yes. As Zope speaks ftp and WebDAV and a host of
other protocols, you can easily prepare Zope content with tools like
HomeSite and Dreamweaver (and many other tools). Just try it out on a Zope
installation

hth

Rik


___
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] ZPatterns bug: Specialist does not implement _PropertySheetsFor(client)

2000-08-24 Thread Steve Alexander

I'm using ZPatterns 0.4.1snap1.

The LinkToParentProviders datamanager doesn't work properly because it
assumes that the Specialist it lives in has a _PropertySheetsFor(client)
method.

However, Specialists (and DataManagers) don't provide this method.

This stops /specialist/object/propertysheets/manage from working. It
also stops _v_currentSheets from returning all the sheets a Dataskin
might have.

Phillip, is this fixed in your internal version?

If not, I'll add the method over the weekend.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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] Zope Content Management System

2000-08-24 Thread Dieter Maurer

Troy Coburn writes:
   I need page content to be generated be users that have little or no
  knowledge of HTML 
  Any suggestions and/or comments would be very
  helpful.
You may want to look at Wiki's, especially the ZWiki product.
You find it (and information about Wiki) at zope.org.


Dieter

___
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: ZPatterns.. Property sheets... once and for all. ;-)

2000-08-24 Thread Steve Alexander

Steve Spicklemire wrote:
 
 Cool! Thanks Steve.. I'll give that a try.
 
 I guess the question behind the question though is  is this a
 reasonable way to handle property sheets?  Is this how the designers
 of ZPatterns envision property sheets will be used?

I think so.

You add PropertySheets to a DataSkin, and the sheets' data get handled
by SheetProviders.

You can use triggers or custom sheet providers to add sheets to an
object if that object meets certain criteria. The object need not know
it has had those sheets added. The object plays different roles with
different specialists.

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net

___
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] ZPatterns bug: Specialist does not implement _PropertySheetsFor(client)

2000-08-24 Thread Phillip J. Eby

At 09:23 PM 8/24/00 +0100, Steve Alexander wrote:
I'm using ZPatterns 0.4.1snap1.

The LinkToParentProviders datamanager doesn't work properly because it
assumes that the Specialist it lives in has a _PropertySheetsFor(client)
method.

However, Specialists (and DataManagers) don't provide this method.

This stops /specialist/object/propertysheets/manage from working. It
also stops _v_currentSheets from returning all the sheets a Dataskin
might have.

Phillip, is this fixed in your internal version?

If not, I'll add the method over the weekend.


Ouch.  That's not the problem.  This is fallout from making DataSkins more
"personally responsible"; the bug is in the propertysheet providers that
expect to acquire from a parent.  They need to be rewritten to work the way
dataskins do now, or else configured to find the parent providers, and
provide those instead.  :(  I'll have to take a closer look at this later.

By the way, I've been away from the list a while due to day-to-day business
concerns and travel.  I'm hoping to start the process of catching up soon,
but I saw this and since it's a bug I'm going to tackle it first before
trying to answer any other unanswered questions that might be floating
around out there.  Sorry.


___
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] Product release: ExtFile/ExtImage 0.91

2000-08-24 Thread Heine, Gregor

Version 0.91 of the ExtFile/ExtImage Software Product has just been
released.

The ExtFile and  ExtImage Products store large files in an external
file-repository and are able to display icons for different MIME-Types. The
ExtImage Product additionally creates preview-thumbnails from images and
displays them.
ExtFile and ExtImage basically work like the Zope File and Image products
but the (binary) file is not stored inside the ZODB, but in an external
file-repository. Only meta data (like title and description) are stored in
the ZODB. This prevents the Database swelling up quickly, when many large
files are uploaded and thus increasing database performance. 
Version 0.91 fixes an important security issue, that allowed read access to
any file in the local filesystem (readeable for the UID of the zope
process).

The Product is avaliable at http://www.zope.org/Members/MacGregor/ExtFile/

MacGregor!
 

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