[Zope] Designing with Zope

2000-08-31 Thread Tim Cook


Hoefully this is not too ambiguous. But I'm wondering if there
are any "gotcha's" in developing an application that would
maintain parts of it's data in ZODB and the rest in an RDBMS?  

This might be better stated as a situation where one application
that uses Zope and an RDBMS was a sub-part of a ZODB
application.  Say, a sales management app in ZODB uses an
accounting app that stores its data in an RDBMS through the same
Zope server?

Thanks,
-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

___
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] indexing pdf files

2000-08-31 Thread Terry Kerr

I just answered my own question.

The program is pdftotext, part of the xpdf package available for unix
machines.

It is very cool and very fast.

terry


Kapil Thangavelu wrote:

> Terry Kerr wrote:
> >
> > Hi,
> >
> > I need to be able to index the text within pdf files.  I assume I will
> > somehow use PrincipiaSearchSource, but I need to know how to get the
> > text out of the pdf when it is uploaded to the ZODB.  Has anyone done
> > this before?  Are there any packages around that I can use that run in
> > python or at least on a linux box that I can pipe to and from?
> >
> > terry
> >
>
> from xml2pdf there are a multitude of ways in python
>
> XSLT - check out the ibm.com/developer xmlzone they have an article in
> the education lib for transforming xml to pdf.
>
> platypus packages from
> http://www.reportlab.com/
>
> they might give you some help in going the other way..
>
> as for implementation...
>
> looking at a pdf in a text viewer it appears to be formating text and
> encoded display strings.
>
> you could write a subclass of file, which read its content upon upload
> stripping the formatting string and decoding the display strings and
> storing that as a property to be indexed.
>
> Kapil

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




___
Zope maillist  -  [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] indexing pdf files

2000-08-31 Thread Kapil Thangavelu

Terry Kerr wrote:
> 
> Hi,
> 
> I need to be able to index the text within pdf files.  I assume I will
> somehow use PrincipiaSearchSource, but I need to know how to get the
> text out of the pdf when it is uploaded to the ZODB.  Has anyone done
> this before?  Are there any packages around that I can use that run in
> python or at least on a linux box that I can pipe to and from?
> 
> terry
>


from xml2pdf there are a multitude of ways in python

XSLT - check out the ibm.com/developer xmlzone they have an article in
the education lib for transforming xml to pdf.

platypus packages from
http://www.reportlab.com/

they might give you some help in going the other way..

as for implementation... 

looking at a pdf in a text viewer it appears to be formating text and
encoded display strings. 

you could write a subclass of file, which read its content upon upload
stripping the formatting string and decoding the display strings and
storing that as a property to be indexed. 


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] Zope.org is soooooo slow (not really)

2000-08-31 Thread Curtis Maloney

On Fri, 01 Sep 2000, J. Atwood wrote:
> Umm.. what makes you say it is slow? It popped up just as fast as
> Microsoft.com and Apple.com this morning (with each page after even
> faster).
>
> Might be your connection. Certainly not slow from here (NYC, DSL)
>
> J
>

I have to agree with Erik...

Sometimes (much of the time) it comes through just fine.  But on some days 
(and it does seem to last just the day) it's slower than a wet weekend.

Saying it works fine for you isn't really all that fair, since you are in the 
same country.

What would be interesting to know is WHY it gets slow.  If it really is 
something beyond their control, perhaps mirror sites?

Have a better one,
Curtis.

___
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 Challenge: Zealots vs. Skeptics

2000-08-31 Thread Bill Anderson

Marty McKeever at Work wrote:
> 
> A recent thread has developed on a well established web development list
> concerning the viability of zope as an appserver.
> 
> I dont want to continue the thread here, but a good question was asked and
> no suitable answers have come in.  Surely this list can help.
> 
> The question is this:  "What are some examples of high-profile and/or
> enterprise level ecommerce or web production sites using zope?"
> 
> Send me examples and i'll post them to the original thread.
> 
> Marty
> 
> PS: dont send me to YOUR website, unless you can provide the traffic
> numbers that back it up.

http://www.netcraft.com/survey/Reports/0008/bydomain/com/Zope.html

Is a decent starting point...
Particularly noteworthy entries:
www.toyota-motorsports.com 
www.hiretechs.com
www.hiringtools.com
www.codecatalog.com

and of course, zope.org.

It may help to define what you mean by 'enterprise level'. Seems everyone has a 
different meaning for it.


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

___
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 Challenge: Zealots vs. Skeptics

2000-08-31 Thread Tim Cook

Marty McKeever at Work wrote:

> The question is this:  "What are some examples of high-profile and/or
> enterprise level ecommerce or web production sites using zope?"
> 
> Send me examples and i'll post them to the original thread.
> 

Did you try here?

http://www.zope.org/Resources/CaseStudies


-- Tim Cook --
FreePM Project Coordinator http://www.freepm.org
OS Health Care Alliance Supporter http://www.oshca.org

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

2000-08-31 Thread Hung Jung Lu

My conjecture now is that your error-handling HTML might be accessing 
attributes from Zope server. A more correct way of handling exceptions 
should have been using the .. block. 
But I kind of make a cheat sheet recipe recommendation, tweaking the 
standard_error_message, which was not a good idea. When Zope arrives to 
standard_error_message, the transaction has been aborted and if your 
session_not_found_html is not simple enough and uses more DTML features, I 
can see that it can cause transaction error.

Can you send me your session_not_found_html? I think this was the problem.

In the future I will remove the standard_error_message trick from the help 
file and instead tell people to use proper exception handling, which is the 
right way of doing things. But it will require people to structure their 
sites more carefully so they can catch the SessionNotFound exception. 
Basically, it is recommended that you have single (or few) index_html on 
your site, and place a .. block to 
capture all exceptions from Zope and deal with them. It's the right way of 
doing things, it's just that many people tend to have many index_html and it 
will make their site harder to catch exceptions and deal with them in a 
centralized way.

In short, HappySession itself is probably not the cause of the transaction 
error. The problem probably comes from bad exception handling. If you want 
to use the standard_error_message trick, then please use a simple html page 
for session_not_found_html without additional Zope features. If I find out 
more, I'll let you know.

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Re[2]: [Zope] and PARENTS[0]

2000-08-31 Thread Bill Anderson

Geir BXkholt wrote:
...
> acquisition, i guess.. satandard_html_header would not

Now that is one 'hell' of a typo! ;^)=



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

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




Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread G. David Kuhlman

> 
> Hamish Lawson wrote:
> > 
> > I'm using DocumentTemplate from Python (not in Zope) and I want to use
> > a custom format 'javascript_quote' that I've written. In my DTML file I
> > have:
> > 

  [snip]

> 
> 
> you should implement a formating function and register it with
> special_formats
> 
> for examples of both look near the end /DocumentTemplate/DT_Var.py
> 
> Kapil

Another suggestion -- If the thing identified by the 'name'
attribute is an instance of a class that you have implemented, then
implement javascript_quote as a method in that class.  If not, then
use Kapil's suggestion above.  In either case, you can find the
relevant code in /DocumentTemplate/DT_Var.py.  Search for
'special_formats' to find out how DocumentTemplate processing does
the lookup and applies the formatting format/function/method.

  - Dave

> 
> ___
> 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] Localtime logging

2000-08-31 Thread Chris McDonough

I think the most recent release does do this.. at least I dimly remember
a checkin message to that effect.

David Trudgett wrote:
> 
> Does anyone happen to know if Zope can be made to log in local time instead
> of UTC?
> 
> David Trudgett
> 
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )

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

2000-08-31 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], Diego Rodrigo Neufert <[EMAIL PROTECTED]> wrote:
>I'm making a site with frames with session management. I'm using 
>HappySession
>to do it...
>I need to call SESSION['something'] in various frames at the same time, but
>when a SESSION expire I got a Transaction Error that blow up my Zserver...
>
>Anyone know how to solve this or another SESSION product that doesnt have 
>that
>problem?

Arghh! Sorry about that. It made you very unhappy, I guess. :(  Please try 
SQLSession and FSSession.

I'll go dig into the problem. Could you provide a little bit more details? 
Anything will help. (Is your server Unix of Windows based? Have you had more 
then one crash?)

obrigado,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] Localtime logging

2000-08-31 Thread David Trudgett

Does anyone happen to know if Zope can be made to log in local time instead 
of UTC?

David Trudgett


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




[Zope] Site Access 2.x problem

2000-08-31 Thread Joshua Brauer

I have Site Access running on the latest Zope (2.2) but I cannot seem to get "Site 
Root" to show up in my list of available products. Those sites that already have site 
roots seem to work fine, but I cannot add new site roots. Anybody else having this 
problem or have ideas?

Josh
-- 
-
Joshua Brauer
Computer Support Scientist
Department of Biochemistry and Molecular Biology
Colorado State University
Fort Collins, CO 80523
(970) 491-1080/pager:  (970) 498-7995, #5837
-

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




Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Hamish Lawson

Dieter Maurer wrote:

> All other "*_quote" features are implemented via *arguments*
> (sql_quote, html_quote, url_quote). Why do you want to make 
> your "javascript_quote" a format? Note, that you may want to 
> quote a (otherwise) formatted value.

I don't especially want to make it a format rather than a modifier - I
take your point about being able to modify a formatted value. Before I
was directed to the DT_Var module, I had been going just on what is in
the DTML Reference, where it mentions only custom formats. I've now had
a look at the DT_Var module, but I don't see an obvious way to register
my own modifier without hacking the module.

Hamish Lawson


=
Hamish Lawson  [EMAIL PROTECTED]


Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] Mime types for email attachments

2000-08-31 Thread Brendon Grunewald

Thanks Dieter,

I seem to have the mime types fixed, what I am now battling with is the
ability to use variables within the  tag.

What I want is the ability to:
1. Select the document you want from a pulldown list.
2. Enter your email.
3. Click on send, and bang the document gets emailed to you as an
attachment.

This all works EXCEPT for the variable document name etc. That seems to only
work when the name is hard coded in...

Brendon

- Original Message -
From: "Dieter Maurer" <[EMAIL PROTECTED]>
To: "Brendon Grunewald" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, 31 August, 2000 21:13
Subject: Re: [Zope] Mime types for email attachments


> Brendon Grunewald writes:
>  > I am battling to find the information needed to attach word, excel, and
pdf
>  > documents to an email based on the input from a form.
> You already discussed lots of things with Chris
>
> I hope, I say only new things:
>
>  * you will need the MIME patch.
>It allows you to supply expressions as values for the various
>arguments of the sendmail tag and its friends rather
>than constants.
>
>Search zope.org or the list's archive (the MIME patch
>has been mentioned recently, with URL where it can be found).
>
>  * Use the following MIME types:
>
> word application/msword
> excel application/vnd
> pdf application/pdf
>
>
> 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] HappySession

2000-08-31 Thread Diego Rodrigo Neufert

I'm making a site with frames with session management. I'm using HappySession
to do it...
I need to call SESSION['something'] in various frames at the same time, but
when a SESSION expire I got a Transaction Error that blow up my Zserver...

Anyone know how to solve this or another SESSION product that doesnt have that
problem?

Thanks in advance

-- 
---
Diego Rodrigo Neufert
-webmaster
---
(Magic Web Design)
(email) ([EMAIL PROTECTED])
(curitiba) (pr)

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

2000-08-31 Thread Karl Anderson

Steve Spicklemire <[EMAIL PROTECTED]> writes:

> Umm.. did you try it? I use it all the time...  it does really work. You just
> can't use the ZClass 'folder' directly, you need to 'skip' to propertysheets/methods.

Amazing!  Yeah, I tried it by walking from the root, but as you
demonstrate, if you go directly to the method, you can edit it.

I swear this didn't work before.  I haven't thrown away days of my
life editing in the textarea.  Really.

-- 
Karl Anderson  [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] Mime types for email attachments

2000-08-31 Thread Dieter Maurer

Brendon Grunewald writes:
 > I am battling to find the information needed to attach word, excel, and pdf
 > documents to an email based on the input from a form.
You already discussed lots of things with Chris

I hope, I say only new things:

 * you will need the MIME patch.
   It allows you to supply expressions as values for the various
   arguments of the sendmail tag and its friends rather
   than constants.

   Search zope.org or the list's archive (the MIME patch
   has been mentioned recently, with URL where it can be found).

 * Use the following MIME types:

wordapplication/msword
excel   application/vnd
pdf application/pdf


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] problem on newly installed Zope2.2.0: I have lost a folder

2000-08-31 Thread Dieter Maurer

Gilles Lavaux writes:
 > 2000-08-31T14:06:05 ERROR(200) ZODB Couldn't load state for
 > '\000\000\000\000\000\000\014\021'
 > Traceback (innermost last):
 >   File /home/sms/Zope_220/lib/python/ZODB/Connection.py, line 447, in
 > setstate
 > SystemError: Failed to import class MEM from module __main__
It seems that something in your folder need a class with name
"MEM" that was defined inside an extension (a file used
for an external method or a custom class for SQL methods).
Such classes cannot be loaded, because the unpickler does not
find the source file (it thinks, the class comes from
module "__main__", which is not true).


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] manage

2000-08-31 Thread Dieter Maurer

neeloy_saha writes:
 > when i do http://localhost:8080/manage it pops up a login window which asks
 > for username and password. what is the entry point after that??
That is exactly what one would expect.

Enter the username and password that was assigned during installation
or that you set with

python zpasswd.py access

 > Is there a way of running zope with debugger?? 
There is "Test.py" in "lib/python/ZPublisher".
It will, however, not help you with the above problem.


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] and PARENTS[0]

2000-08-31 Thread Dieter Maurer

Tim Hicks writes:
 > OK, I have a standard_html_header for my site that uses the following
 > 
 > 
 >  
 > 
 > 
 > 
 > 
 > In this way, the properties of the ZClass (into which the
 > standard_html_header is placed) are used ...
 >  however,  results in the id of the parent
 > folder of standard_html_header being inserted ...
I am lacking essential information to understand your setup:

 * at one place, you say that "standard_html_header" is
   in a ZClass

 * at another place, you say, it is placed in a folder.


Thus, what is the (exact) relationship between the
ZClass (more precisely, the respective ZInstance),
the folder and the "standard_html_header".

Furthermore, to understand "PARENT", you must consider
the URL that let to your object.
If this URL went through the folder immediately before
hitting "standard_html_header" (or probably another
object that uses "standard_html_header") then
PARENT[0] is *this* folder and therefore,
anything defined by it takes preceedance over
things that come from the ZClass.


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] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Dieter Maurer

=?iso-8859-1?q?Hamish=20Lawson?= writes:
 >    
Someone else already answered your question.

I would like to ask a consistency question:

  All other "*_quote" features are implemented via *arguments*
  (sql_quote, html_quote, url_quote).
  Why do you want to make your "javascript_quote" a
  format?
  Note, that you may want to quote a (otherwise) formatted
  value.


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] Overriding Z Class methods in instances

2000-08-31 Thread Dieter Maurer

Johann Visagie writes:
 > It seems you cannot overload the methods of a Z Class in an instance of that
 > class.  If you try to, you get a message that the method's id is invalid
 > since it is already in use.
 > 
 > If this is really the case, then how can one achieve the necessary separation
 > between presentation and business logic?  E.g. if I have a Z Class with an
 > index_html method, all instances of that Z Class will display in exactly the
 > same way.
It is, at least now.

On zope-dev, it was discussed how this
restriction can be removed in the future in a controlled way
(you do not want to make everything overwritable).

To avoid the problem, you can add in your class method something
like:


  

  


and define "index_html_specialized" in your instance, whenever
you would like to have specialized behaviour.



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] "Z2 CONFLICT Competing writes" and synchronization woes

2000-08-31 Thread Dieter Maurer

Sean McGrath writes:
 > I want to synchronize ...
 > 
 > I tried using the threading module and creating
 > a Lock object as a global in the external method.
 > This does not help as each request gets allocated its
 > own Lock object

As you observed, each thread gets its own global namespace
for a file containing an external method.

The namespace of a true Python module, however, is shared
by all threads. Therefore, it is a good place for your
lock.

Do the following (or something along similar lines):

 * create a properly named subpackage in "lib/python/Shared"
   (to avoid name clashes), say "myCompany".

 * create a Python module in "myCompany", say "myLock.py".

 * create your lock in this module, say "Lock"

 * access it in your external method by:

from Shared.myCompany.myLock import Lock



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] Objet : Re: [Zope] Searching in all field with ZCatalog

2000-08-31 Thread Dieter Maurer

Francois-Regis CHALAOUX writes:
 > No, you asked the right question, scuse me for the error !! 
 > I would like only one entry in the form to search in all indexed fields.
This is not easy.

A ZCatalog search usually combines searches to the different
indexes with an "And".
You want to combine them with an "Or".

There is an example for this in the Advanced ZCatalog Tutorial
(--> zope.org). There has recently been a discussion
in this list (--> searchable archive).
Apparently, there is no comprehensive solution.


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] The Challenge: Zealots vs. Skeptics

2000-08-31 Thread Marty McKeever at Work

A recent thread has developed on a well established web development list
concerning the viability of zope as an appserver.

I dont want to continue the thread here, but a good question was asked and
no suitable answers have come in.  Surely this list can help.

The question is this:  "What are some examples of high-profile and/or
enterprise level ecommerce or web production sites using zope?"

Send me examples and i'll post them to the original thread.

Marty

PS: dont send me to YOUR website, unless you can provide the traffic
numbers that back it up.

##   Marty McKeever - [EMAIL PROTECTED]
##   Manager / Web Services Division
##   Going Virtual LLC., Matthews NC 
##   http://www.goingv.com (704) 849-0731

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

2000-08-31 Thread Steve Spicklemire


Umm.. did you try it? I use it all the time...  it does really work. You just
can't use the ZClass 'folder' directly, you need to 'skip' to propertysheets/methods.

-steve

example:

--

anotherhost.foo.com> ftp onehost.foo.com 13021
Connected to onehost.foo.com.
220 onehost.foo.com FTP server (Medusa Async V1.12.4.1 [experimental]) ready.
Name (onehost.foo.com:steve): 
331 Password required.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,101)
150 Opening ASCII mode data connection for file list
drwxrwx---   1 Zope Zope0 Dec 30  1998 Control_Panel
--   1 foouser Zope0 Jul  7 18:08 acl_users
-rw-rw   1 Zope Zope 1024 May  3  1999 index_html
-rw-rw   1 Zope Zope 1381 May  3  1999 standard_error_message
-rw-rw   1 Zope Zope   55 Dec 30  1998 standard_html_footer
-rw-rw   1 Zope Zope   81 Dec 30  1998 standard_html_header
226 Transfer complete
ftp> cd Control_Panel
250 CWD command successful.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,102)
150 Opening ASCII mode data connection for file list
drwxrwx---   1 Zope Zope0 Aug 31 14:55 ..
--   1 Zope Zope0 Dec 30  1998 Database
--   1 Zope Zope0 Dec 30  1998 DebugInfo
drwxrwx---   1 Zope Zope0 Aug 31 13:59 Products
--   1 Zope Zope0 Dec 30  1998 Versions
226 Transfer complete
ftp> cd Products/My_ZClasses/My_ZClass/propertysheets/methods
250 CWD command successful.
ftp> dir
227 Entering Passive Mode (208,150,70,197,9,103)
150 Opening ASCII mode data connection for file list
--   1 foouser Zope0 Aug 31 14:55 ..
-rw-rw   1 steveZope  165 Aug 31 14:55 defaultRedirect 
-r--r-   1 foouser Zope  214 Aug 31 14:55 findPrevArea 
-rw-rw   1 foouser Zope 2548 Aug 31 14:55 index_html 
-rw-rw-r--   1 foouser Zope  123 Aug 31 14:55 l-tab.gif 
-rw-rw-r--   1 foouser Zope   98 Aug 31 14:55 lb-tab.gif 
-rw-rw-r--   1 foouser Zope   93 Aug 31 14:55 r-tab.gif 
-rw-rw-r--   1 foouser Zope   91 Aug 31 14:55 rb-tab.gif 
-rw-rw-r--   1 foouser Zope   60 Aug 31 14:55 t-tab.gif 
-rw-rw-r--   1 foouser Zope   90 Aug 31 14:55 tabs-lb.gif 
-rw-rw-r--   1 foouser Zope   91 Aug 31 14:55 tabs-rb.gif 
-rw-rw-r--   1 foouser Zope   84 Aug 31 14:55 tabs.gif 
226 Transfer complete
ftp> pwd
257 "/Control_Panel/Products/My_ZClasses/My_ZClass/propertysheets/methods" is the 
current directory.
ftp> quit
221 Goodbye.
anotherhost.foo.com> 

> "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:

Karl> Steve Spicklemire <[EMAIL PROTECTED]> writes:

>> How about:
>> 
>> /you@server
>> 
port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

Karl> How about it?

Karl> Hint: that ZClass doesn't look like a directory to FTP.

>>  -steve
>> 
>> > "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:
>> 
>> 
Karl> What FTP editing options are there for ZClass definitions?
Karl> I've never been able to do much.  What I have done is use
Karl> folderish ZClasses, edit DTML methods contained in the
Karl> *instance* thru FTP, and then moved them to the definition
Karl> latler, but that's kind of hacky - it adds a little more
Karl> confusion about finding things with large projects.
>>
Karl> -- Karl Anderson [EMAIL PROTECTED]
>>
Karl> ___ Zope
Karl> maillist - [EMAIL PROTECTED]
Karl> http://lists.zope.org/mailman/listinfo/zope ** No cross
Karl> posts or HTML encoding!  ** (Related lists -
Karl> http://lists.zope.org/mailman/listinfo/zope-announce
Karl> 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 )
>> 

Karl> -- Karl Anderson [EMAIL PROTECTED]


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




[Zope] Success in installing ZPoPyDA (after 3 months...)

2000-08-31 Thread Hung Jung Lu

Good news. I finally succeeded in installing ZPoPyDA (PostgreSQL database 
adapter for Zope.) I think it was more than 3 months ago when I started to 
try to install ZPoPyDA.

The process involved many tricky steps, the most tricky one was, uh, 
installing a whole new Linux operating system. (Upgrade from 5.2 to 6.2) :)

But sweat and blood were involved in many other little tiny things. 
Including installing PostgreSQL and its dev package RPMs, Python Dev, 
figuring out what was missing in os.h and where to find linux.h for the 
PostgreSQL, version compatibility problems between PoPy and ZPoPyDA, etc. So 
many steps that I don't remember them all, now.

Do I recommend PostgreSQL to other Zope users? Probably yes. But I'd advise 
them to give themselves *plenty* of time to deal with installation issues. I 
know, some have been lucky and did not have any problems. But for me, it's 
been a horrible experience. But I hope the reward of a good (and cheap) 
database will compensate all the bad times.

regards,

Hung Jung

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.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] ZClass <--> Product

2000-08-31 Thread Karl Anderson

Steve Spicklemire <[EMAIL PROTECTED]> writes:

> How about:
> 
> /you@server 
>port:/Control_Panel/Products/YourProduct/YourZClass/propertysheets/methods/yourMethod

How about it?

Hint: that ZClass doesn't look like a directory to FTP.

> 
> -steve
> 
> > "Karl" == Karl Anderson <[EMAIL PROTECTED]> writes:
> 
> 
> Karl> What FTP editing options are there for ZClass definitions?
> Karl> I've never been able to do much.  What I have done is use
> Karl> folderish ZClasses, edit DTML methods contained in the
> Karl> *instance* thru FTP, and then moved them to the definition
> Karl> latler, but that's kind of hacky - it adds a little more
> Karl> confusion about finding things with large projects.
> 
> Karl> -- Karl Anderson [EMAIL PROTECTED]
> 
> Karl> ___ Zope
> Karl> maillist - [EMAIL PROTECTED]
> Karl> http://lists.zope.org/mailman/listinfo/zope ** No cross
> Karl> posts or HTML encoding!  ** (Related lists -
> Karl> http://lists.zope.org/mailman/listinfo/zope-announce
> Karl> 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 )
> 

-- 
Karl Anderson  [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] ZCatalog and foreign characters

2000-08-31 Thread Aleksander Salwa


> 
> For now, I made hack in Spliter.c - I wrote my own replacements for
> isalpha and isalnum functions.
> 

Oops, my solution doesn't work. Probably it needs more hacking in python
code
So, how to do it under FreeBSD ?

[EMAIL PROTECTED]

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


___
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] Objet : Re: [Zope] Searching in all field with ZCatalog

2000-08-31 Thread R. David Murray

> No, you asked the right question, scuse me for the error !! 
> I would like only one entry in the form to search in all indexed fields.
> I like this solution cause it is sometimes difficult for a no regulmar user in
> this aera (Protein Data Bank) to question the right field.
> In fact I would like create a simple form ;)

You can have one field, and copy the value so that it gets searched
for in all the fields when you make the catalog call.  But you don't
want to do that, because Catalog will AND the results from all
the fields.

The Advanced ZCatalog Searching HowTo shows how to OR the fields
programatically.  But what may work better for you would be to
create a method on all of your objects that returns the concatenation
of the values of all the fields of interest.  Index *that* field,
and search that field.

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




[Zope] Re: Re[2]: [Zope] and PARENTS[0]

2000-08-31 Thread Tim Hicks


- Original Message -
From: "Geir Bfkholt" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 2:56 PM
Subject: Re[2]: [Zope]  and PARENTS[0]


> on Thursday, August 31, 2000 Tim Hicks wrote :
>
> 
> TH> Yup, definitely a method.  Out of interest, if it were a
document, why
> TH> would all of the  work except id?
>
> acquisition, i guess.. satandard_html_header would not
> usually have those properties itself..
>
> if it was a document, and had those other properties, the
> ones from the header would be used..
>
> Seems rather strange that id from standard_html_header is
> used if it is a method.. puzzling..
>
> cannot think of a reason..
>
>

DOH!  There was me thinking that I had to use PARENTS[0] in order to
get hold of the zclas that had standard_html_header inserted into
it... when I don't!  Taken out all the PARENTS[0]'s and it is behaving
like it should do.  Now it's working, I think I actually understand
how it works as well!

Sorry about that, I think I made things more complicated than they
are.

tim


> --
> Geir Bækholt
> web-developer/designer
> [EMAIL PROTECTED]
> http://www.funcom.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] CRC-32 checksum

2000-08-31 Thread R. David Murray

On Wed, 30 Aug 2000, Jim Sanford wrote:
> Does anyone have or know the whereabouts of a python module that will do 32 bit CRC 
>checksums?

I found a crc32 function in the zlib module for python.

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




[Zope] Re: FTP from NAT: Zope or FTP problem...

2000-08-31 Thread Bob Finch

> "Chris" == Chris Withers <[EMAIL PROTECTED]> writes:

Chris> Bob Finch wrote:
>> 
>> Try configuring your FTP client to use passive mode (PASV).

Chris> Now is this because Zope is doing something silyl or
Chris> because FTP behind NAT is like SSH, and must be passive
Chris> regardless of the FTP server you're using?

This is an issue with FTP and NAT in general.  PASV also helps if the
client has a firewall or packet filter that denies incoming TCP
connections.

When transferring a file in the default (active) mode, the FTP server
opens a TCP connection back to the client.  Some NAT implementations
aren't smart enough to be able to route this incoming connection to
the correct internal host.

Passive FTP avoids this problem by doing outgoing connections from the
client for the data transfer.  During a file transfer, the server
instead waits for an incoming connection from the client.  No more
incoming TCP connections and NAT is happy :-)

-- Bob

___
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] Problem with zope mailing list

2000-08-31 Thread Nils Kassube

Francois-Regis CHALAOUX wrote:

> Any idea ?

A broken X.400 e-mail gateway? Your sysadmin should be able to
help you. 

| Received: (from x400@localhost)
|   by gtlhpmed.paris.sanofi.com (8.8.6 (PHNE_17135)/8.8.6) id PAA29215
|   for [EMAIL PROTECTED]; Thu, 31 Aug 2000 15:38:29 +0200 (METDST)
| Original-Encoded-Information-Types: IA5-Text
| X400-MTS-Identifier: [/P=SANOFI/A=ATLAS/C=FR/;39AE6FD6.32D4.06A7.000]

Cheers,
Nils
--
[EMAIL PROTECTED]   | [EMAIL PROTECTED] (preferred)
[EMAIL PROTECTED] | [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] ZCatalog and foreign characters

2000-08-31 Thread Aleksander Salwa


On Wed, 30 Aug 2000, Radim Gelner wrote:

> On Tue, Aug 29, 2000 at 11:57:08PM +0200, Dieter Maurer wrote:
> > 
> > If you work with a fixed locale, you can use the "-L" switch
> > to inform Zope about your locale. Then the splitter should
> > work correctly (for your locale).
> 
> Yes, that helped. I've called Zope with -L cs_CZ switch, rebuilt the
> catalog and now searching works as it should.
> 

Great, but what about FreeBSD ? I work on Linux at home, but few days ago
someone decided that our production server will be FreeBSD. What is the
right locale string format on FreeBSD (version 3.5) ?
I've tried "pl_PL", "iso-8859-2", "pl_PL.iso-8859-2" - no success... :(

For now, I made hack in Spliter.c - I wrote my own replacements for
isalpha and isalnum functions.

[EMAIL PROTECTED]

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


___
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: [squishdot] Announce: Squishdot 0.7.0 now available!

2000-08-31 Thread odysseus


On Tue, 29 Aug 2000, Chris Withers wrote:

> I'm not 100% happy about how the 2.2 support was achieved, so expect a
> 0.7.1 release in the near future.

Is this the __allow_access_to_unprotected_subobjects__=1 within the
Posting class you're referring to? How big of an issue is it using this
within Squishdot, I mean, what kind of malicious things could be done to a
Squishdot site with it set?

Do you have any working ideas on how to deal with it without
_allow_access...=1 ?

-Lance





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

2000-08-31 Thread David Spencer

I'm not sure what type of chatroom functionality you're looking for, but you
might have options through Jabber Instant Messenger (www.jabber.org), which
includes a groupchat transport.  I have personally been looking at ways to
implement the groupchat using a Java applet for specific projects managed
through an intranet.  As in Lotus Quickplace, when a team member loads the
project homepage, I would like for the applet to load automatically,
indicating the online presence of other team members and providing the
groupchat function.  Ideally, this would take advantage of existing zope
authentication.  I know LDAP and ODBC user storage has been implemented in
the CVS version of the Jabber server, so it should be able to query the same
user database as zope.  There is also an effort to implement the Jabber
server and groupchat transport in python at pyjama.sourceforge.net.
Information regarding java functionality, including a sample applet I think,
can be found at jabberbeans.org.  I would love to hear from anyone
interested implementing this type of integration between Jabber and Zope.

Good luck,
David



Message: 66
Reply-To: <[EMAIL PROTECTED]>
From: "Danny William Adair" <[EMAIL PROTECTED]>
To: "Aleksander Salwa" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Subject: Re: [Zope] ChatRoom
Date: Thu, 31 Aug 2000 16:07:10 +0200
charset="us-ascii"

The most awesome - though commercial - chat system that I know of, is
"SpinChat":

homepage:
http://chat.spin.de/en/index.shtml

try one of the demos:
http://chat.spin.de/en/demos/index.shtml

or see it in action and chat with others:
http://www.spinchat.com

It's a highly configurable java chat system.

I would rather like to see one of the OpenSource Chats get integrated into
Zope (e.g. get pseudonym from LoginManager UserSource, integrate
administration in Zope management interface etc.), I'm not very happy with
ZRTChat. http://www.zope.org/Members/jwashin/ZRTChat
It's a great example and "100% Zope", but it will (would) need a lot of
enhancements for prod sites.

Danny

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Aleksander Salwa
Gesendet: Donnerstag, 31. August 2000 14:30
An: [EMAIL PROTECTED]
Betreff: [Zope] ChatRoom



Not Zope specific, but may be important for many web-masters...

Some days ago I was told to make a chatroom in our site.
I took a look at some products, but no one has satisfied me yet.
If anybody knows about _good_ chatroom, please let me know !

Where _good_ means:
   + highly customizable view of the chatroom
   + non-flickering refresh (I used jzChat from www.javazoom.net, but it
 uses JavaScript on client side, so refresh is flickering)

So, it should be Java applet on client side.
It can be almost anything on server side - Java servlet, Java
stand-alone application, native binary program, standard IRC server, CGI
script, Zope Product, etc...

I don't need many channels at one time.

If you have seen (almost) ready-to-use chatroom solution, your help is
greatly appreciated ! :)

[EMAIL PROTECTED]

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


___
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] zope.org

2000-08-31 Thread Bak @ kedai

what's happenng to zope.org?  i got this message when i tried accessing it






___
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] Log file settings

2000-08-31 Thread Farrell, Troy

>From z2.py:

# Location of the ZServer log file. This file logs all ZServer activity.
# You may wish to create different logs for different servers. See
# medusa/logger.py for more information.
if not os.path.isabs(LOG_FILE):
LOG_PATH=os.path.join(CLIENT_HOME, LOG_FILE)
else:
LOG_PATH=LOG_FILE


I hope your python is better than mine!
Troy Farrell


-Original Message-
From: Marcus Mendes [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 30, 2000 8:57 AM
To: [EMAIL PROTECTED]
Subject: [Zope] Log file settings


Hello,

How can i set options for z2.log, as what informations i want etc? I
d'ont need, for example, information about FTP at the same log file.

Thanks.

Marcus Mendes


___
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] ZCatalog Queries...

2000-08-31 Thread Andy Dawkins

>
>  > > > It's be nice if ZCatalog had a good general purpose
> > > > interface, and was a
> > > > bit more robust.
> > > > (the BTree implementation which has been mentioned a few
> > times springs
> > > > to mind here ;-)
> > >
> > > Can you be more specific?
> >
> > Andy can fill you in on the specifics.
>
> OK...

Specifics, hmmm OK

Machine 1: (2gb free hard drive space, 64Mb Memory, 128Mb swap, AMD Athlon
600, Linux Red Hat 6.1)

I created a new Zope Instance and installed ZMailIn porduct on to it.
(Catalog Aware)
I created a ZCatalog.
I sent 30,000 mail messages from [EMAIL PROTECTED] to the ZMailIn product.
These messages were catalog aware so they indexed themselves, one-by-one in
to the catalog.  Indexing the entire message body.

I went home.  When I came back the next day the machine had successfully
completed 5,000 messages, eaten all the memory, eaten 99% of the swap and
was chugging away a 1 mail message per 5 seconds.
Additionally the Data.fs was 1.5Gb

I decided this was going to take forever and ended it all.
(FYI: After packing the database it strank to 30Mb)

I started again from nothing.
This time i didn't create a ZCatalog.
I ran the import routines and 30,000 documents were successfully imported in
to the ZODB through ZMailIn in about 2 hours.
I created a catalog and manually added all items of type "ZMailMessage".
After about an hour of serious crunching.  All memory eaten, all swap eaten.
It reports that we are out of hard drive space.
I tried again after with various sub transactions sizes (ie. 1, 5000,
1000, 200) but no change, except on the amount of time before it blows up.

After a couple of messages to [EMAIL PROTECTED] and [EMAIL PROTECTED] we decide
that it may be worth another try without transactions, i.e. Replacing the
ZODB3 with The Berkeley Database.

Machine 2: (4.5gb free hard drive space, 256Mb Memory, 256Mb swap, Dual
PentiumIII 450, Linux Red Hat 6.2)

I created a new Zope Instance and installed ZMailIn porduct on to it.
(Catalog Aware)
I plugged in the BerkeleyDB
I imported all 30,000 mail messages.
I selected all ZMailMessage instance for cataloging and let it go.
About half a hour later the thing crashes with the error "file too large"
and corupts my Berkeley Database.
I try several sub transaction sizes (1, 5000, 1000, 200) to no avail.

The only time I ever got it to work is if I removed the body of the mail
message from the catalogs indexes.  Which is the most important thing to be
indexed.

After tearing my hair out, i have put it aside and am working on something
else.

(I hope that is what Chris meant by Specifics)

>
> >
> > >  What's insufficient about the current
> > > implementation?
> >
> > It doesn't scale well, especially for things where you have
> > lots of new
> > data arriving (this is the BTree problem, I think...)
>
> Yes, we're still working on a "broadtree" implementation that may allay
> some of these problems, although I don't have an ETA.
>
> >
> > It has no published and well defined query syntax (there's
> > patches here,
> > bits there, but no definitive document on how to use it, how to batch
> > with it, how to perform complex and structured queries, particularly
> > with TextIndex'es)
>
> Hopefully, the Zope book will make it more clear from a user
> perspective, and sometime in the very distant future I will be writing a
> chapter in the developer's guide about the catalog.  I agree that the
> ZCatalog wrapper should probably wrap more of the underlying catalog's
> methods, but these need to be rationalized, defined and then documented
> in the API docs.  This is something for dev.zope.org, probably.
>
> >
> > Don't get me wrong, it is very cool, but only kindof 70% there :S
> > (and I get the impression that doing the remaining 30% properly would
> > require a rewrite...)
> >
> > As an example, we've been trying to do Zope-based versions of the
> > mailing list archives for a coupla months now and the Catalog keeps
> > exploding in different ways (huge resource consumption, even for only
> > 30K messages or so, no matter what storage is used)
>
> Yes.  Tweaking and the broadtree stuff should make this a little better.
>
> >
> > Then there's the ubiquitous 'KeyError's and other associated
> > weirdness,
> > all of which leaves me feeling a lot less than totally
> > confident in the
> > Catalog ;-)
>
> These are independent of the coupling problem in the btree, and I'm
> trying to vanquish them now.  This is why the annoying logging code was
> added to the catalog.  It seems to be related to the TextIndex
> implementation, but I'm still trying to pin it down.
>


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

2000-08-31 Thread Christopher Heschong


> If you have seen (almost) ready-to-use chatroom solution, your help is
> greatly appreciated ! :)

Although it's not ported to Zope yet (I'm too much of a newbie), I have a
very simple, non-flickering, streaming chat system available as open source
at http://screwdriver.net/stutter/

It's not Java, but it does the trick.  Try out the demo.

The way it works, btw, is that it sends an "infinitely" long html page,
never closing the HTTP connection, and only sending data when new messages
are entered, then flushing the output thus far.

It's written in PHP, and expects a SQL server.  If nothing else, you can get
an idea of how it works, and possibly write something similar in Python or
whatnot.

-- 
/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] SQL Methods

2000-08-31 Thread Bak @ kedai

i think you need to look at the sql methods permission.

-Original Message-
From: RC Compaan <[EMAIL PROTECTED]>
To: Zope <[EMAIL PROTECTED]>
Date: Thursday, August 31, 2000 3:06 PM
Subject: [Zope] SQL Methods


>I have a sql method and a dtml method calling the sql method.  They live in
>the same folder and the dtml method's proxy roles are set.  I've tried
>everything and Zope tells me I don't have permission to do view the sql
>result returned by the sql method.  This worked fine in Zope 2.1.6 so I
>guess it has something to do with the new security model.  I also have
>explicit ownership of all objects that I'm working with - still no luck.
>
>Any advise?
>
>Roché
>
>
>___
>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: [Zope-ZEO] ANNOUNCE ZEO 0.3 Released

2000-08-31 Thread Bak @ kedai

this is great news.  btw, what causes the spurios conflict errors, if you
don't mind telling

thanks again

p/s i will never regret running my site with zope~  thanks DC and all

-Original Message-
From: Jim Fulton <[EMAIL PROTECTED]>
To: Zope Mailing List <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Thursday, August 31, 2000 8:20 AM
Subject: [Zope-ZEO] ANNOUNCE ZEO 0.3 Released


>A new release of Zope Enterprise Objects (ZEO)
>is available at: http://www.zope.org/Products/ZEO.
>
>This release fixes a bug that caused spurious conflict errors
>and that could eventually make it impossible to make changes
>without restarting a ZEO client (e.g. Zope process).
>
>The release also has two enhancements when running
>the ZEO server on Unix:
>
>- When the storage server start script is run as root,
>  the script will switch to a different user (nobody by
>  default). There is a new '-u' option that can be used to
>  specify the user.
>
>- The storage server will gracefully close served storages when
>  the server is killed with a SIGTERM or SIGHUP. If a
>  FileStorage is being served, then an index file will be
>  written.
>
>If you encounter problems with ZEO, please report them
>using the ZEO issue tracker at:
>http://www.zope.org/Products/ZEO/Tracker.
>
>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.
>
>___
>Bug reports, feature requests, etc. go in the ZEO Tracker:
>http://www.zope.org/Products/ZEO/Tracker
>
>Conversations etc. can take place in the Wiki:
>http://www.zope.org/Products/ZEO/Wiki
>
>Zope-ZEO maillist  -  [EMAIL PROTECTED]
>http://lists.zope.org/mailman/listinfo/zope-zeo


___
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.org is soooooo slow (not really)

2000-08-31 Thread Shane Hathaway

Erik Enge wrote:
> 
> [J. Atwood]
> 
> | Umm.. what makes you say it is slow? It popped up just as fast as
> | Microsoft.com and Apple.com this morning (with each page after even
> | faster).
> 
> It _was_ slow.

Next time www.zope.org appears to be slow, try accessing www.codeit.com
as well since the two are hosted in the same location AFAIK.  If there
is a problem, report it to [EMAIL PROTECTED] and remember to include
the exact time and time zone.

BTW there have been some outages due to misconfiguration and network
problems.

Shane

___
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] problem on newly installed Zope2.2.0: I have lost a folder

2000-08-31 Thread Brian Lloyd

> does this error means something for you:
> 
> 2000-08-31T14:06:05 ERROR(200) ZODB Couldn't load state for
> '\000\000\000\000\000\000\014\021'
> Traceback (innermost last):
>   File /home/sms/Zope_220/lib/python/ZODB/Connection.py, line 447, in
> setstate
> SystemError: Failed to import class MEM from module __main__
> 

It means that the object can't be unpickled because the 
module that the objects class is defined in cannot be 
imported. Whatever product / python code defines the MEM 
class is probably installed in your old instance but not 
in your new instance...

Hope this helps!


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.org is soooooo slow.

2000-08-31 Thread J.P. Racine

Erik Enge wrote:

> Zope.org is slow as hell.  A couple of days a week at least.  It
> doesn't exactly work in favor for Zope when I try to show of Zope.org
> to friends, collegues or potential customers and the site won't even
> respond.  Argh!
>
> Why is it so slow?  Do something about it!
>
> ___
> 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.org is free as hell.  Why don't you get creative and donate
something to the effort and stop bitching.

If you need to make pictures with words it means that you don't have a
grasp on basic reality and attempt to shuttle form into desire.  It's
childish - sooo childish.

Here's a solution - why don't you find out if you can mirror the site
somehow.

Why is it so free? Do something about it!

J.P. Racine
Thot Networks
[EMAIL PROTECTED]


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




[Zope] worldpilot: copy of message to sent folder

2000-08-31 Thread Marcus Schopen

Hi there,

I'd like to put a copy of each sent mail to a sent folder. Creating folders named 
"sent" or "SENT" under the INBOX did not help.

Further I'd like to send a bcc of each sent mail to an external address. How do I do 
that?

Thanks
Marcus

---
WorldPilot - Get Synced - http://www.worldpilot.org
The Open Source Personal Information Manager Server
Powered by Python and Zope   -  http://www.zope.org








___
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] GUF Idle Timeout?

2000-08-31 Thread Mabe, Brad

The first word that came to my mind after reading your response was "Duh!".

This was something I should have figured out on my own.  Thanks for the
help!

  -=Brad=-

-Original Message-
From: Stuart Bishop
To: Mabe, Brad
Cc: '[EMAIL PROTECTED] '
Sent: 8/31/00 3:42 AM
Subject: Re: [Zope] GUF Idle Timeout?

On Wed, 30 Aug 2000, Mabe, Brad wrote:

> Hello all,
> Does GUF have an idle timeout setting?  I'm seeing the behavior where
if my
> GUF authenticated user is idle for more than 10-15 minutes they lose
their
> authentication and are asked to log in again.
> 
> If there is such a setting, how can I increase the amount of idle
time?  

Go to the properties page of your GUF instance and change the
'Inactive Cookie Expires' property.

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


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



___
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] Newbie SQL problem: Query Error: Cannot render query template

2000-08-31 Thread Philipp Auersperg

When starting Zope as a service under Win NT always make sure that
the ODBC data sources you use are *system* data sources and not *user* data sources.

This could explain why your ODBC connections work when you start Zope from the console 
and
don't work when starting it as service.

Anyhow:
Zope 2.1.6 is not the best for SQL (problems with recordsets show up when used 
in )
Zope 2.2.0 has problems with ZODBC under Windows 2000 (Authorisation dialogs 
pop up).

My hint:
Use 2.1.4 or 2.2.1 (does it fine with SQL under Linux and Windows )


phil

*** REPLY SEPARATOR  ***

On 31.08.2000 at 06:40 Stephen Nosal wrote:

>Troy-
>
>Have you tried running this from the DOS prompt? I ran into all sorts of problems 
>running 2.1.6 on NT4WS with the ODBCDA. Everything was fine when I used the start and 
>stop scripts from the command line. When I moved to starting zope as a service, my 
>ODBC connections kept failing. Never did find an NT solution, I just moved everything 
>to Linux.
>
>It's worth a try.
>
>- Steve
>
>On Wed, 30 August 2000, "Farrell, Troy" wrote:
>
>> 
>> Hello.
>> 
>> I am running Zope as a service on NT4WS.  I have multiple MS Access
>> databases connected to different ZJetDAs and I am not able to modify the
>> data in them with SQL statements.  For example, INSERT INTO test VALUES
>> (, )
>> returns the error "Query Error: Cannot render query template".  Can you tell
>> me what the cause is.  I think it might be a permissions problem, but I have
>> everything wide open and I can't figure it out.
>> 
>> Thanks.
>> Troy Farrell
>> 
>> Troy Farrell
>> Video Operations Technician II
>> Williams VYVX Services
>> 918.573.3029
>> 918.573.1441 fax
>> mailto:[EMAIL PROTECTED]
>> http://www.williams.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 )
>
>
>__
>Get your Private, Anti-Spam, Free Email at http://e3mil.com 
>and Step into a Friendly Universe!
>
>___
>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] Problem with zope mailing list

2000-08-31 Thread J. Cameron Cooper

> Since longtime now I have a problem with the Zope mailing list :
> I always receive, the messages from "[EMAIL PROTECTED] " not from the name
> of the right person (for 97% messages) ?
> Any idea ?

Take a look at the headers of a Zope list message (ctrl-U in Messenger). It
correctly states the "sender" as [EMAIL PROTECTED], and also correctly states
that the message is "from" whoever sent it to the list. For some reaon your
mail client is getting these confused, and I don't know why or how to fix it.
I can say that using practically the same client that you used to send the
message I'm replying to I'm not experiencing that problem. So in
short: I dunno.

--jcc

--
"No! I am not Prince Hamlet, nor was meant to be."
http://www.owlnet.rice.edu/~jccooper/




___
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] Slow zope.org?

2000-08-31 Thread ethan mindlace fremen

Erik Enge wrote:
> 
> [J. Atwood]
> 
> | Umm.. what makes you say it is slow? It popped up just as fast as
> | Microsoft.com and Apple.com this morning (with each page after even
> | faster).
> 
> It _was_ slow.

The main problem is that *nothing* on zope.org is cacheable.  Therefore,
any intermittent slowdown between you & codeit is going to hurt.

Short term, we will soon have a mirror of zope.org, which should reduce
the possibility of slowdown. 

At some point in the future, there'll be more fine-grained caching
availiable, at which time all the pages that can be cached will be,
which should speed up Zope.org's percieved performance.

> | Might be your connection. Certainly not slow from here (NYC, DSL)
> 
> No.  I check a zillion other sites; they were fast and responsive.
> 
> The Zope.org site is back up again now.  At one point, just before it
> came back to life, it reported a Proxy error.

Zope fell over and died due to a database error.  We're beginning to
suspect that there may be hardware issues.  We'll keep this list (or
zope-web) posted on the details.

-- 
ethan mindlace fremen
Zopatista Community Liason
Abnegate I!

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

2000-08-31 Thread Danny William Adair

The most awesome - though commercial - chat system that I know of, is
"SpinChat":

homepage:
http://chat.spin.de/en/index.shtml

try one of the demos:
http://chat.spin.de/en/demos/index.shtml

or see it in action and chat with others:
http://www.spinchat.com

It's a highly configurable java chat system.

I would rather like to see one of the OpenSource Chats get integrated into
Zope (e.g. get pseudonym from LoginManager UserSource, integrate
administration in Zope management interface etc.), I'm not very happy with
ZRTChat. http://www.zope.org/Members/jwashin/ZRTChat
It's a great example and "100% Zope", but it will (would) need a lot of
enhancements for prod sites.

Danny

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Aleksander Salwa
Gesendet: Donnerstag, 31. August 2000 14:30
An: [EMAIL PROTECTED]
Betreff: [Zope] ChatRoom



Not Zope specific, but may be important for many web-masters...

Some days ago I was told to make a chatroom in our site.
I took a look at some products, but no one has satisfied me yet.
If anybody knows about _good_ chatroom, please let me know !

Where _good_ means:
   + highly customizable view of the chatroom
   + non-flickering refresh (I used jzChat from www.javazoom.net, but it
 uses JavaScript on client side, so refresh is flickering)

So, it should be Java applet on client side.
It can be almost anything on server side - Java servlet, Java
stand-alone application, native binary program, standard IRC server, CGI
script, Zope Product, etc...

I don't need many channels at one time.

If you have seen (almost) ready-to-use chatroom solution, your help is
greatly appreciated ! :)

[EMAIL PROTECTED]

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


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

2000-08-31 Thread neeloy_saha

Hi all,

when i do http://localhost:8080/manage it pops up a login window which asks
for username and password. what is the entry point after that??
Is there a way of running zope with debugger?? 

-neeloy


___
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] problem on newly installed Zope2.2.0: I have lost a folder

2000-08-31 Thread Gilles Lavaux

Hello

does this error means something for you:

2000-08-31T14:06:05 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\014\021'
Traceback (innermost last):
  File /home/sms/Zope_220/lib/python/ZODB/Connection.py, line 447, in
setstate
SystemError: Failed to import class MEM from module __main__


??

Gilles Lavaux


___
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] Log file settings

2000-08-31 Thread Marcus Mendes

Hello,

How can i set options for z2.log, as what informations i want etc? I
d'ont need, for example, information about FTP at the same log file.

Thanks.

Marcus Mendes


___
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] Problem with zope mailing list

2000-08-31 Thread Chris Withers

Francois-Regis CHALAOUX wrote:
> 
> Hi All,
> 
> Since longtime now I have a problem with the Zope mailing list :
> I always receive, the messages from "[EMAIL PROTECTED] " not from the name
> of the right person (for 97% messages) ?
> Any idea ?
> 
> FR

Sounds like a mail client problem rather than one with the list. I don't
experience this...

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] Re[2]: [Zope] and PARENTS[0]

2000-08-31 Thread Geir Bækholt

on Thursday, August 31, 2000 Tim Hicks wrote :


TH> Yup, definitely a method.  Out of interest, if it were a document, why
TH> would all of the  work except id?

acquisition, i guess.. satandard_html_header would not
usually have those properties itself..

if it was a document, and had those other properties, the
ones from the header would be used..

Seems rather strange that id from standard_html_header is
used if it is a method.. puzzling..

cannot think of a reason..


--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.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] Objet : Re: [Zope] Searching in all field with ZCatalog

2000-08-31 Thread Francois-Regis CHALAOUX

Hi Chris and All,

No, you asked the right question, scuse me for the error !! 
I would like only one entry in the form to search in all indexed fields.
I like this solution cause it is sometimes difficult for a no regulmar user in
this aera (Protein Data Bank) to question the right field.
In fact I would like create a simple form ;)

FR

>>> [EMAIL PROTECTED]%internet 31/08/00 12:38:15 >>>
Organization: New Information Paradigms
X-Accept-Language: en
Errors-To: [EMAIL PROTECTED] 
X-Mailman-Version: 1.0b8
Precedence: bulk
List-Id: Users of the Z Object Publishing Environment 
X-BeenThere: [EMAIL PROTECTED] 

Francois-Regis CHALAOUX wrote:
> 
> Hi All,
> 
> Is it possible to search in all the indexed fields of a ZCatalog with only
> **one** input form ?

Woudl having a field for each index on the one form do it?

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 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] ALERT: rally to the flag, troops!

2000-08-31 Thread Stephen Nosal

I hate it when this happens - I just had the IS department throw out 2 months of work 
because it doesn't conform to corporate standards. That's because they have no 
standard and all the developers do is fight over what vendors to use and who will do 
the development. I hope your project goes better than mine...

Good Luck.

- Steve

On Thu, 31 August 2000, Jean Jordaan wrote:

> 
> Hello Zopers
> 
> This is serious business. As you know, I've been asking
> questions of various levels of ineptitude during the last
> few weeks. Meantime I've been building some entry-level
> ZClasses as part of the insides of Mosaic's Intranet. This
> culminated in a demo a couple of days ago, when I showed 
> the one CEO and the rest of the communications department
> what I have been doing.


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

___
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] and PARENTS[0]

2000-08-31 Thread Tim Hicks

- Original Message -
From: "Geir Bfkholt" <[EMAIL PROTECTED]>
To: "Tim Hicks" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, August 31, 2000 2:30 PM
Subject: Re: [Zope]  and PARENTS[0]


> on Thursday, August 31, 2000 Tim Hicks wrote :
> TH> OK, I have a standard_html_header for my site that uses the
following
> [snip]
> TH>with the correct property being
> TH> inserted, however,  results in the id of the parent
> TH> folder of standard_html_header being inserted, instead of the id
of
> TH> the zclass.  Could anyone point out how I can get hold of the
zclass
> TH> id?
>
> first of all :
> make sure your standard_html_header is a method, not a
> document
>

Yup, definitely a method.  Out of interest, if it were a document, why
would all of the  work except id?

tim

> --
> Geir Bækholt
> web-developer/designer
> [EMAIL PROTECTED]
> http://www.funcom.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] Problem with zope mailing list

2000-08-31 Thread Francois-Regis CHALAOUX

Hi All,

Since longtime now I have a problem with the Zope mailing list : 
I always receive, the messages from "[EMAIL PROTECTED] " not from the name
of the right person (for 97% messages) ?
Any idea ?

FR
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   

___
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] zzLocale problems

2000-08-31 Thread Danny William Adair

After installing zzLocale I get an "AttributeError" every time I try to add
a ZGadfly Connection:

--
Traceback (innermost last):
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 222, in
publish_module
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 187, in
publish
  File C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py, line 221, in
zpublisher_exception_hook
(Object: Traversable)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 171, in
publish
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object: manage_addZGadflyConnectionForm)
  File C:\PROGRA~1\WebSite\lib\python\ZPublisher\Publish.py, line 112, in
call_object
(Object: manage_addZGadflyConnectionForm)
  File C:\PROGRA~1\WebSite\lib\python\Products\ZGadflyDA\__init__.py, line
131, in manage_addZGadflyConnectionForm
(Object: Traversable)
  File C:\Programme\WebSite\lib\python\Products\zzLocale\zzLocale.py, line
119, in __call__
(Object: addConnectionForm)
AttributeError: dft_addConnectionForm
--


Right now I don't have the time to go take a deeper look at this (or isn't
it that deep?), so I tried to DE-install zzLocale, just for now. Well:
Zope(Win2k :-() won't work without it anymore!!!


--
2000-08-31T13:35:20 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\00
0\000\000\006'
Traceback (innermost last):
  File C:\PROGRA~1\WebSite\lib\python\ZODB\Connection.py, line 447, in
setstate
ImportError: No module named zzLocale.zzLocale


Traceback (innermost last):
  File "C:\Programme\WebSite\z2.py", line 554, in ?
exec "import "+MODULE in {}
  File "", line 1, in ?
  File "C:\PROGRA~1\WebSite\lib\python\Zope\__init__.py", line 144, in ?
OFS.Application.initialize(c)
  File "C:\PROGRA~1\WebSite\lib\python\OFS\Application.py", line 317, in
initial
ize
app.Control_Panel.initialize_cache()
  File "C:\PROGRA~1\WebSite\lib\python\ZODB\Connection.py", line 447, in
setstat
e
state = unpickler.load()
ImportError: No module named zzLocale.zzLocale
--

Who can help me with either one of the problems?

TYVMIA,
Danny


___
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] Newbie SQL problem: Query Error: Cannot render query template

2000-08-31 Thread Stephen Nosal

Troy-

Have you tried running this from the DOS prompt? I ran into all sorts of problems 
running 2.1.6 on NT4WS with the ODBCDA. Everything was fine when I used the start and 
stop scripts from the command line. When I moved to starting zope as a service, my 
ODBC connections kept failing. Never did find an NT solution, I just moved everything 
to Linux.

It's worth a try.

- Steve

On Wed, 30 August 2000, "Farrell, Troy" wrote:

> 
> Hello.
> 
> I am running Zope as a service on NT4WS.  I have multiple MS Access
> databases connected to different ZJetDAs and I am not able to modify the
> data in them with SQL statements.  For example, INSERT INTO test VALUES
> (, )
> returns the error "Query Error: Cannot render query template".  Can you tell
> me what the cause is.  I think it might be a permissions problem, but I have
> everything wide open and I can't figure it out.
> 
> Thanks.
> Troy Farrell
> 
> Troy Farrell
> Video Operations Technician II
> Williams VYVX Services
> 918.573.3029
> 918.573.1441 fax
> mailto:[EMAIL PROTECTED]
> http://www.williams.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 )


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

___
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] and PARENTS[0]

2000-08-31 Thread Geir Bækholt

on Thursday, August 31, 2000 Tim Hicks wrote :
TH> OK, I have a standard_html_header for my site that uses the following
[snip]
TH>with the correct property being
TH> inserted, however,  results in the id of the parent
TH> folder of standard_html_header being inserted, instead of the id of
TH> the zclass.  Could anyone point out how I can get hold of the zclass
TH> id?

first of all :
make sure your standard_html_header is a method, not a
document

--
Geir Bækholt
web-developer/designer
[EMAIL PROTECTED]
http://www.funcom.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] and PARENTS[0]

2000-08-31 Thread Tim Hicks

OK, I have a standard_html_header for my site that uses the following


 

 

 













In this way, the properties of the ZClass (into which the
standard_html_header is placed) are used for the for the meta
author/copyright/keywords/description/javascript.  All of those that I
just mentioned work perfectly well, with the correct property being
inserted, however,  results in the id of the parent
folder of standard_html_header being inserted, instead of the id of
the zclass.  Could anyone point out how I can get hold of the zclass
id?

thanks very much

tim


___
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.org is soooooo slow (not really)

2000-08-31 Thread J. Atwood

Umm.. what makes you say it is slow? It popped up just as fast as
Microsoft.com and Apple.com this morning (with each page after even faster).

Might be your connection. Certainly not slow from here (NYC, DSL)

J


> From: Erik Enge <[EMAIL PROTECTED]>
> Organization: EMM Solutions
> Date: 31 Aug 2000 14:45:15 +0200
> To: [EMAIL PROTECTED]
> Subject: [Zope] Zope.org is soo slow.
> 
> 
> Zope.org is slow as hell.  A couple of days a week at least.  It
> doesn't exactly work in favor for Zope when I try to show of Zope.org
> to friends, collegues or potential customers and the site won't even
> respond.  Argh!
> 
> Why is it so slow?  Do something about it!
> 
> ___
> 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] Zope.org is soooooo slow (not really)

2000-08-31 Thread Erik Enge

[J. Atwood]

| Umm.. what makes you say it is slow? It popped up just as fast as
| Microsoft.com and Apple.com this morning (with each page after even
| faster).

It _was_ slow. 
 
| Might be your connection. Certainly not slow from here (NYC, DSL)

No.  I check a zillion other sites; they were fast and responsive.

The Zope.org site is back up again now.  At one point, just before it
came back to life, it reported a Proxy error.

___
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] Old and New DTML Tag Styles

2000-08-31 Thread Chris Withers

Bob Crosley wrote:
> 
> What's the new syntax style?



as opposed to:



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] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Hamish Lawson

I wrote:

> I'm using DocumentTemplate from Python (not in Zope) and I want to
> use a custom format 'javascript_quote' that I've written.

Kapil Thangavelu wrote:

> you should implement a formating function and register it with
> special_format.
> for examples of both look near the end /DocumentTemplate/DT_Var.py

Thanks. I did as below, which worked. Is that the official way? - I
couldn't see any dedicated function to register a format.

DT_Var.special_formats['javascript_quote'] = javascript_quote

Hamish Lawson





Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] File Attachments with Sendmail

2000-08-31 Thread Bob Crosley

What's the new syntax style?


- Original Message - 
From: Chris Withers <[EMAIL PROTECTED]>

> I do wish you'd move to the new syntax style :P



___
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: File Attachments with Sendmail

2000-08-31 Thread Brendon Grunewald


Required_Doc is the variable set in the form. (see my previous email for
details onthe form).

Basically I want the following functionality:
1. Enter email address:
2. Select document of file to be emailed.
3. Click Send and Bang, off it goes!

Brendon


- Original Message -
From: "Chris Withers" <[EMAIL PROTECTED]>
To: "Brendon Grunewald" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, 31 August, 2000 14:22
Subject: Re: File Attachments with Sendmail


> Brendon Grunewald wrote:
> > The form looks like this:
> 
>
> That looks okay...
>
> > 
>
> could you just use:
> 
> somewhere on the page instead of the meta-refresh nastiness?
>
> > Attached is the document you requested: 
>
> I do hope Required_Doc is a string or a function returning a strign and
> not the actual document ;-)
>
> > ^^^
>Oops, DTML-inside-DTML error ;-)
>
> ...and a major falling down of the sendmail tag, this should be
> expressionable, I don't know if there is somethign to solve this yet...
>
> > disposition=attachment encode=base64>
>
> > 
> > 
>
> what is Required_Doc?
>
> 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.org is soooooo slow.

2000-08-31 Thread Erik Enge


Zope.org is slow as hell.  A couple of days a week at least.  It
doesn't exactly work in favor for Zope when I try to show of Zope.org
to friends, collegues or potential customers and the site won't even
respond.  Argh!

Why is it so slow?  Do something about it!

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

2000-08-31 Thread Aleksander Salwa


Not Zope specific, but may be important for many web-masters...

Some days ago I was told to make a chatroom in our site.
I took a look at some products, but no one has satisfied me yet.
If anybody knows about _good_ chatroom, please let me know !

Where _good_ means:
   + highly customizable view of the chatroom
   + non-flickering refresh (I used jzChat from www.javazoom.net, but it
 uses JavaScript on client side, so refresh is flickering)

So, it should be Java applet on client side.
It can be almost anything on server side - Java servlet, Java
stand-alone application, native binary program, standard IRC server, CGI
script, Zope Product, etc...

I don't need many channels at one time.

If you have seen (almost) ready-to-use chatroom solution, your help is
greatly appreciated ! :)

[EMAIL PROTECTED]

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


___
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] "Z2 CONFLICT Competing writes" and synchronization woes

2000-08-31 Thread Sean McGrath

(Google -- which normally does an absolutely stunning job
of directing me to answers to Zope questions -- has
drawn a blank on this one:)

I have an external method that writes stuff to a file.

I want to synchronize access to the file so that
multiple callers can be adding stuff to the file
without problems.

Without any synchronization I get interleaved output
most of the time and occasionally an error message
like this:
"Z2 CONFLICT Competing writes at, /foo"

I tried using the threading module and creating
a Lock object as a global in the external method.
This does not help as each request gets allocated its
own Lock object. I tried Rlock got an error message
I didn't understand and concluded I don't know
what I'm doing:-)

Any pointers to the best way to do synchronization of
access to the filesystem from external methods?

regards,
Sean McGrath





___
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: File Attachments with Sendmail

2000-08-31 Thread Chris Withers

Brendon Grunewald wrote:
> The form looks like this:


That looks okay...

> 

could you just use:

somewhere on the page instead of the meta-refresh nastiness?

> Attached is the document you requested: 

I do hope Required_Doc is a string or a function returning a strign and
not the actual document ;-)

>  disposition=attachment encode=base64>

> 
> 

what is Required_Doc?

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] Re: File Attachments with Sendmail

2000-08-31 Thread Brendon Grunewald

Hi Chris,

This is what I have in total. I know I am being stupid, but this is
frustrating me to hell. Perhaps I should not be doing this at 1AM.

The form looks like this:



Please provide the following information: 

Email address:


Document:

Brochure.doc
Pricelist.xls
Map.pdf


  


-

send_webdoc looks like this...
---





>


To: 
From: WebForm <[EMAIL PROTECTED]>
Subject: Web Doc Request

Attached is the document you requested: 





Form Information Confirmation
Thank you the document should be email to you immediately.
You should be automatically redirected in a few seconds.

If not
Click here.


--

Thanks
Brendon

--
70South: the No.1 source for Antarcticles.
For the latest news and views on Antarctica visit : http://www.70south.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] Overriding Z Class methods in instances

2000-08-31 Thread Johann Visagie

Chris Withers on 2000-08-31 (Thu) at 12:38:17 +0100:
> 
> This used to be a very irritating problem. It has been fixed in 2.2.0 or
> 2.2.1 but I don't know how to what extent. Shane Hathaway is the man to
> ask ;-)

Well, I experience the problem with 2.2.1 so if there is a way to do it, it
involves some magic I'm not aware of.  :-)

> PS: A guide to the new overriding interface and how to use it (including
> in ZClasses) would be cool :-)

Awaiting enlightenment,
-- Johann

___
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] Searching in all field with ZCatalog

2000-08-31 Thread Chris Withers

Francois-Regis CHALAOUX wrote:
> 
> Hi All,
> 
> Is it possible to search in all the indexed fields of a ZCatalog with only
> **one** input form ?

Woudl having a field for each index on the one form do it?

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] File Attachments with Sendmail

2000-08-31 Thread Chris Withers

Brendon Grunewald wrote:
> I am battling to find the information needed to attach word, excel, and pdf
> documents to an email based on the input from a form.

> This is what I have so far:

I do wish you'd move to the new syntax style :P

> 
> To: 
> From: WebForm <[EMAIL PROTECTED]>
> Subject: Web doc request
> 
> Attached is the document you requested.

looks fine...

>  disposition=attachment
> encode=quoted-printable>
> >
> 

My bit of the above is a bit different:


Which might make all the difference ;-)

cheers,

Chris

PS The above works for me on Zope 2.1.6...

___
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] Overriding Z Class methods in instances

2000-08-31 Thread Chris Withers

Johann Visagie wrote:
> It seems you cannot overload the methods of a Z Class in an instance of that
> class.  If you try to, you get a message that the method's id is invalid
> since it is already in use.

This used to be a very irritating problem. It has been fixed in 2.2.0 or
2.2.1 but I don't know how to what extent. Shane Hathaway is the man to
ask ;-)

cheers,

Chris

PS: A guide to the new overriding interface and how to use it (including
in ZClasses) would be cool :-)

___
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] Nested ZCatalogs

2000-08-31 Thread Chris Withers

[EMAIL PROTECTED] wrote:
> 
> I have asked the following question on the zope list, the squishdot site, and
> the squishdot eGroups site without a single response.  Is there something I
> am leaving out or is it a hard one?

It is a hard one...

> Question:
> I am running Zope 2.1.6 and Squishdot 6 (upgraded from 2->3->5->6).
> I have created a keyword search of my entire site. I see the Squishdot
> site listed as a cataloged object, but when I run a keyword search of my
> site, I get everything but the squishdot site items. Since my last upgrade I
> have updated the catalog to no avail. 

So what you're basically saying is you have something like a ZCatalog in
the root of your site and your Squishdot Site object appears in this
Catalog?

> Incidentally, I have the zope chat
> example running also, and it shows every single posting by every
> user in the catalog objects, but these also don't show in search
> results (but this may be a design issue for chat). 

The chat thing, I would guess, is a seperate and unrelated issue.

I think you can think of this as a 'nested ZCatalog problem'. What
you're expecting to happen is this:
If a root catalog contains another catalog, when you search the root
catalog, you'd like the search to be performed on the contained catalog
as well, and then results set returned to be a union of the two
searched.

That's really hard to do...

If anyone knows how to solve this, please let the list know...

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] Overriding Z Class methods in instances

2000-08-31 Thread Johann Visagie

This must either be a stupid FAQ, or I'm missing something.

It seems you cannot overload the methods of a Z Class in an instance of that
class.  If you try to, you get a message that the method's id is invalid
since it is already in use.

If this is really the case, then how can one achieve the necessary separation
between presentation and business logic?  E.g. if I have a Z Class with an
index_html method, all instances of that Z Class will display in exactly the
same way.

-- Johann

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




Re: [Zope] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Kapil Thangavelu

Hamish Lawson wrote:
> 
> I'm using DocumentTemplate from Python (not in Zope) and I want to use
> a custom format 'javascript_quote' that I've written. In my DTML file I
> have:
> 
> 
> 
> and in the Python code I have
> 
> def javascript_quote(s):
> 
> 
> template = DocumentTemplate.HTMLFile(
> 'page.dtml',
> {'javascript_quote': javascript_quote}
> )
> 
> print template(None, {'data': data})
> 
> But it complains that not everything was converted, presumably because
> it is trying to interpret the fmt="javascript_quote" as a C-style
> format. How do I get it to use my function?
> 
> Hamish Lawson
> 


you should implement a formating function and register it with
special_formats

for examples of both look near the end /DocumentTemplate/DT_Var.py

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 )




[Zope] FTP from NAT: Zope or FTP problem...

2000-08-31 Thread Chris Withers

Bob Finch wrote:
> 
> Try configuring your FTP client to use passive mode (PASV).

Now is this because Zope is doing something silyl or because FTP behind
NAT is like SSH, and must be passive regardless of the FTP server you're
using?

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] Searching in all field with ZCatalog

2000-08-31 Thread Francois-Regis CHALAOUX

Hi All,

Is it possible to search in all the indexed fields of a ZCatalog with only
**one** input form ?

FR
  
  
  
  
  
  
  
  
   

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

2000-08-31 Thread Chris Withers

Jason Byron wrote:
> Now, *why* does that work?  The function
> manage_addProduct looks like its for adding new
> products under the Control_Panel.  That isn't what
> it's for?

Nope, that dtml-with pops the namespace of the product you want to add
onto the stack.
In essence, it gives you access to the methods of that product where
they wouldn't normally be accessible...

> I don't have to do
> 
> to use manage_addUserFolder ?

That's 'cos someone thought it'd be a good idea to make a shortcut,
ignoring the fact that it'd confuse the hell out of us mere mortals ;-)

> Could adding something like this to the GUF fix the
> problem I had and let manage_addGenericUserFolder work
> by itself?

That would Be Bad (tm)

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] How to use DocumentTemplate custom formats from Python?

2000-08-31 Thread Hamish Lawson

I'm using DocumentTemplate from Python (not in Zope) and I want to use
a custom format 'javascript_quote' that I've written. In my DTML file I
have:



and in the Python code I have

def javascript_quote(s):


template = DocumentTemplate.HTMLFile(
'page.dtml', 
{'javascript_quote': javascript_quote}
)

print template(None, {'data': data})

But it complains that not everything was converted, presumably because
it is trying to interpret the fmt="javascript_quote" as a C-style
format. How do I get it to use my function?

Hamish Lawson



Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie

___
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] ALERT: rally to the flag, troops!

2000-08-31 Thread Jean Jordaan

Hello Zopers

This is serious business. As you know, I've been asking
questions of various levels of ineptitude during the last
few weeks. Meantime I've been building some entry-level
ZClasses as part of the insides of Mosaic's Intranet. This
culminated in a demo a couple of days ago, when I showed 
the one CEO and the rest of the communications department
what I have been doing.

Now it has filtered through that my demo has given our CEO
a great deal to think about, and that he does think that a
thoroughly collaborative intranet with distributed management
authority is the way to go. Unsurprisingly, though, this has 
sent him straight to a Microsoft Exchange 2000 Server Features
Guide, as a possible Solution to All Our Problems (tm).

Said CEO obviously has the authority needed to give me the
go-ahead to use Zope.

Now I need as much input as you are prepared to give on how 
to turn this into a win-win situation. In keeping with M$'s 
new way of doing things, Exchange does support the whole 
slew of interoperability protocols like LDAP, IMAP, POP, 
HTTP, S/MIME, X.509 v3, etc, etc. It also boasts sophisticated
replication facilities for data and users. Surely there are
good ways of leveraging Exchange's functionality within Zope?

Conversely, where does Exchange fall down in a scenario like
this? As hard-nosedly technical as possible please. What does 
it tie you into? What does it take away, as seen from a Zope
perspective? How far do you get into Exchange with Python?

Further -- what are all the most considerable Zope products 
that use Exchange? I know Worldpilot does, and any IMAP client
would. But Exchange-specific stuff? Is anyone working on any
of this?

Zope is great within resource-constrained environments, but 
we don't have tight monetary or material constraints, so this
isn't as much of an issue. 

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




Re: [Zope] GUF and manage_addGenericUserFolder not working

2000-08-31 Thread Stuart Bishop

On Wed, 30 Aug 2000, Jason Byron wrote:

> Now, *why* does that work?  The function
> manage_addProduct looks like its for adding new
> products under the Control_Panel.  That isn't what
> it's for?
> 
> I don't have to do 
>  
> to use manage_addUserFolder ?

[...]

> legacy=(AccessControl.User.manage_addUserFolder,),

I think the key word here is 'legacy'. I think this was the original
method of adding object instances for all products, but some bright
spark realized that as more products are added this flat name space
gets more and more bloated and name collisions become much more likely.

> Could adding something like this to the GUF fix the
> problem I had and let manage_addGenericUserFolder work
> by itself?

It should work if you really like it that way.

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


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




Re: [Zope] GUF Idle Timeout?

2000-08-31 Thread Stuart Bishop

On Wed, 30 Aug 2000, Mabe, Brad wrote:

> Hello all,
> Does GUF have an idle timeout setting?  I'm seeing the behavior where if my
> GUF authenticated user is idle for more than 10-15 minutes they lose their
> authentication and are asked to log in again.
> 
> If there is such a setting, how can I increase the amount of idle time?  

Go to the properties page of your GUF instance and change the
'Inactive Cookie Expires' property.

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


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




[Zope] SQL Methods

2000-08-31 Thread RC Compaan

I have a sql method and a dtml method calling the sql method.  They live in
the same folder and the dtml method's proxy roles are set.  I've tried
everything and Zope tells me I don't have permission to do view the sql
result returned by the sql method.  This worked fine in Zope 2.1.6 so I
guess it has something to do with the new security model.  I also have
explicit ownership of all objects that I'm working with - still no luck.

Any advise?

Roché


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