Re: [Zope] 'Offline' mailhost

2000-10-04 Thread Hannu Krosing

Chris Withers wrote:
> 
> Shane Hathaway wrote:
> > I'm not sure how well MailHost scales, but you can certainly store
> > thousands of names in a ZODB-managed list.  Tests done for the
> > BTreeFolder product prove it.
> 
> Sadly, I think MailHost doesn't scale too well :-(
> 
> What it'd need to do if you're sending the mail to a few thousand people
> is to be non-blocking.
> IIRC, currently, a method/page with a  addresses> tag pair in it will only return when the
> mail has been sent to all the recipients. So, if the mails going to lots
> of people, the page takes ages to return.

Perhaps it would be better to solve this by configuring your sendmail 
(or other SMTP MTA) to be non-blocking, i.e. store-and-forward.

Also you could send just one message to all the recipients instead of 
sending individual messages.

> This is the problem I had where our mail server was taking lots of time
> to send messages (it was doing lots of stuff to make sure the address
> was valid) so submitting posts on Squishdot.org was taking ages too.
> 
> What, IMHO, is really needed is a mailhost/sendmail tag type thing that
> gets a message and a list of addresses to send it to. If it could do
> that in a seperate thread/process/whatever so that whatever calls it
> doesn't block, that'd be great. Of course, it'd need to have a 'hook
> back' method provided so any errors that occured could be dealt with.
>
> I wonder how mailman does this stuff and if the code could be borrowed
> for Zope?

Maybe you could just use mailman as MTA, greating temporary
mailing-lists.


Hannu

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Namespace problems...

2000-10-04 Thread Lars Heber

Hi there,

I've still got to build a bigger website.

So I stored my headers and footers and many other things in root/pub.

All the other documents are stored in root/Intra and below.

I've got my standard_html_header, with which I can display user-defined
titles which may also contain values of global properties. The
user-defined title is being built in the document before the header is
called, e. g. something like:


   
  
   

In the standard_html_header method I'm checking whether there is a titel
attribute or not.

This works fine.

But for general use I want to keep the possibility of displaying the
title_or_id of the document when I don't introduce a user-defined title.

This would be no problem if s_h_h wasn't situated in root/pub, so I have
to call it within the .

But doing this, pub is on the top of my namespace, so that calling
title_or_id returns the title_or_id of the container of s_h_h, i. e.
pub!

How can I nevertheless access within the s_h_h to the title_or_id of my
original document?

Thanks.

Lars


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




[Zope] A temporary python object defined in a dtml-let tag ???

2000-10-04 Thread Frederic Quin

Hi all,


I wonder if it's possible to create temporary a python object in a
dtml-let tag. If someone knows more about how to do this, please, help
me...


Thanks
Fred Quin

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] SiteRoot

2000-10-04 Thread Stephan Goeldi

I have a problem with SiteAccess:

My site runs with Apache and Zope 2.0.0.
Apache has 2 Domains:

www.domain1.com
ProxyPass to Zope:
http://123.123.123.123:8080/provider/www/domain1.com/
in Zope exists:
/provider/www/domain1.com

www.domain2.com
ProxyPass to Zope:
http://123.123.123.123:8080/provider/www/domain2.com/
in Zope exists:
/provider/www/domain2.com

In both subdirectories (domain1.com and domain2.com) exist the SiteRoot 
method. In the SiteRoot method is written:
Title: www.domain1.com
Base:  http://www.domain1.com
Path:  /

When I point my Browser to www.domain1.com everything works ok.

Now I create /provider/www/domain2.com
OK
I create the acl_user domain2.com with a password.
OK
I create a SiteRoot:
Title: www.domain2.com
Base:  http://www.domain2.com
path:  /
OK

I restart Zope and Apache
OK

Now when I point my Browser to www.domain2.com I get the Website of 
www.domain1.com. I go to http://www.domain2.com/manage and get the folder:
/provider/www/domain1.com instead of /provider/www/domain2.com

When I log in as domain1.com I get the folder
/provider/www/domain1.com and everything works ok. But I can go up to the 
folder
/provider/www and see what else is in this folder. But domain1.com has no 
access to this folder, i.e. there is no acl_user in this folder.

What goes wrong?

I already tried to upgrade to 2.2.1 and 2.2.2 but this destroys the data 
structure.

Any suggestions?

TIA
-goe-

_
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] DCOracle 1.3.2 for Windows NT

2000-10-04 Thread Marcin Dzienniak

Hello,
I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform,
I have heard that someone in this community buit DCOracle for NT and I
wonder if you can help me.
I would be gratefull if you could send me a makefile to this
platform or a comliled file (*.pyd).
I have Oracle 8i 8.1.6 .

Please send me some information for my adress [EMAIL PROTECTED]


Thank you for your attention.




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] List

2000-10-04 Thread Tom Deprez

Hi all,

Thanks for the lots of correct answers. With a small modification (looking
up several python docs :-) ) all things worked!

Thanks in advance,
Tom.

At 13:06 03/10/2000 -0400, you wrote:
>Tom Deprez wrote:
>> 
>> Hi,
>> 
>> I'm storing a selection of a user to a database as string. This selection
>> is a multiple selection from a select box and is outputted as a list.
>> Now I want to iterate over this list (after retrieving it from the
>> database), but how can I do this? How can I tell Zope that the string is
>> actually a list? How can I typecast in Zope?
>
>Use a python or external method to make a list from your string.  I am
>supposing you are storing a string representation of the list that looks
>like:
>
>"['fred', 'bob', 'mary']"
>
>Get rid of any punctuation you do not want with (e.g.) 
>
>theString = string.replace(theString, '[', ' ')
>
>(Yes, there are more efficient ways to do this!)
>
>Then, once you have a space-delimited list of items, you may use
>
>theList = string.split(theString)
>
>which will make a list of the words in the string.  Return theList.
>
>-- Jim Washington
>

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] PCGI and images not displaying

2000-10-04 Thread bruno

Hello

My set up: Linux (X/OS distribution based on RedHat 6.0), Zope 2.1.6
+ 
PCGI + Apache 1.3.9

We have a DTML document that shows an image based on the selection 
from the user, something like this:
 (I snipped 
all the rest because it's of no interest here). The image is 
stored as an object in the ZODB. 
When the user requests that page, sometimes, the image is not
returned 
to the browser. What I see in the log from Apache is a return code
304 
(not changed) and a return code 200 in the Z2.log ... Does anyone 
knows of this? Is there a workaround besides putting the image in the 
filesystem and serving it as a URL from Zope only?

TIA.

/B




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] IMAP and Zope!

2000-10-04 Thread Tom Deprez

Hi,

I thought that WorldPilot told at the LinuxTag that version 2, would be
more modular in design. I guess you can always ask the developers about the
new release.

Tom

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Last-modified header missing -- time-stamps turned off.

2000-10-04 Thread Jean Jordaan

Hi all

Just a note from the blue .. I'm snarfing the ZB using 
  wget -np -m http://www.zope.org/Members/michel/ZB/
and for every document I'm seeing:

  Last-modified header missing -- time-stamps turned off.

What's the significance of this? I assume something to
do with the http headers returned by Zope. Does Zope not
include last-modified headers since it predominantly serves
dynamic pages?

Regards,
-- 
Jean Jordaan   --technical writer--
Mosaic Software--Zope 2.2 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] DCOracle 1.3.2 for Windows NT

2000-10-04 Thread Francisco José Esteban Risueño

I'm not tried it yet, but you can get an VC6 Workspace for DCOracle in
this page:

http://starship.python.net/crew/arpadk/

Marcin Dzienniak escribió:

> Hello,
> I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform,
> I have heard that someone in this community buit DCOracle for NT and I
> wonder if you can help me.
> I would be gratefull if you could send me a makefile to this
> platform or a comliled file (*.pyd).
> I have Oracle 8i 8.1.6 .
>
> Please send me some information for my adress [EMAIL PROTECTED]
>
> Thank you for your attention.
>
> ___
> Zope maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] database connection problem (halting Zope)

2000-10-04 Thread Hrasky Petr

thanks again,
yes, the python versions I use are compiled for threads, they link
against libpthread under linux. I have also found ZmxODBCDA adapter and
it does not work for me yet - it shows in Zope as broken product.
I also spoke to local Oracle hotline and they said that ODBC access is
not thread safe until 8.1.6.1.1 due to some error in OCI libs. Now I am
downloading Oracle for Linux and Sybase for Linux and I will try to
compile OracleDA and SybaseDA.

Thanks a lot all.


Regards,

Petr

-Original Message-
From: Dieter Maurer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 11:17 PM
To: Hrasky Petr
Cc: '[EMAIL PROTECTED]'
Subject: RE: [Zope] database connection problem (halting Zope)


Hrasky Petr writes:
 > thank you for answers. To clarify: 
 > I run Zope-2.2.2/Linux2.2.14/MySQL-ZMySQLDA1.1.3nonbin at home and
 > Zope-2.2.2-binary/NT4.0Workstation/ZODBCDA3.1.0b2 (Oracle 8i ODBC,
 > Sybase11.5)at work. Oracle connection at work and MySQL (at home just
 > for testing) run looong queries and halt Zope. I have no such queries
 > for Sybase yet. 
 >  I will try to recompile python for linux, but I can't do so for
WinNT
 > as I have no compiler. Anyway I thought the python distributed with
 > binary release of Zope is threaded, no?
If Python is compiled without threads, there is no module
"thread". Zope relies on this module. It dies immediately,
if it is not there. Thus, you can be sure, your
Python has thread support compiled in.

 > So, does anybody know of either binary and threaded Zope driver for
 > Oracle , Sybase etc. or the same ODBC driver? And what is the state
of
 > python threading on WinNT paltform?
The Python that comes with Zope has thread support compiled in.

Maybe, your Python-ODBC connection "forgets" to release
Python's interpreter lock.

We, once, had such a problem.
   Accidentally, the DCOracle module had been set up with a standard
   Python distribution (with threading disabled) rather
   than the Zope Python. As a consequence, the
   DCOracle did not call "releaseLock" and
   "acquireLock" (as they would not be present
   in a non-threaded Python).
   And, of course, database operations blocked Zope.


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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Access problems

2000-10-04 Thread Danny William Adair

>Is it possible, that you upgraded from an earlier Zope installation?
>
>The traceback suggests that your requests tries to access
>the object "broken", probably an object from a broken
>product.

Thanks, I've found the problem: It was a broken ZPatterns. I've updated to
0.4.2a3, but left an "old" compiled Dynpersist.so in the directory (V 0.3).
After updating this, everything was fine. I guess I just have to be prepared
to get the weirdest sstuff to see as long as I 1.) use alpha/beta products
to authenticate my users on root level, and 2.) keep refusing to wear
glasses (Actually, this beta ZPatterns is fine).

Thanks,
Prost,

Danny



-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag von
Dieter Maurer
Gesendet: Dienstag, 3. Oktober 2000 22:57
An: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Betreff: Re: [Zope] Access problems


Danny William Adair writes:
 > I have a serious and extremely urgent problem concerning my zope
 > installation (2.2.1 on Unix): Whatever resource I'm trying to access, I
get
 > the following
 > .
 >   File
 > /home/sites/site3/users/.../2-2-1/lib/python/ZPublisher/BaseRequest.py,
line
 > 514, in old_validation
 > (Object: broken)
 > AttributeError: (see above)
Is it possible, that you upgraded from an earlier Zope installation?

The traceback suggests that your requests tries to access
the object "broken", probably an object from a broken
product.

I suggest, you start Zope with "STUPID_LOG_FILE=zope.log".
This should log problems during Zope startup to
"zope.log" (you may need to upgrade to Zope 2.2.2, as
earlier Zope versions lost one exception log due to a missing
"flush").

If you see no problems logged, try to go to
"Control_panel/ProductManagement"
and check whether there are broken products.



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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Namespace problem with the dtml-sendmail and the smtphost

2000-10-04 Thread Max Møller Rasmussen

I have a dtml method in a zClass that looks like this:


To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: This is a test

A test!!!


"theSMTPHost" is defined as a property in the zClass. But when i use the
method I get a:

Error Type: error
Error Value: host not found

If i write:



It gets send without a hitch.

and if I write  it returns mail.tele.dk as expected.

I then try this, which also fails.


Mailhost: 


To: [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Subject: This is a test

A test!!!


Is it not possible to set the smtphost to a string in a dtml variabel?

Regards Max M

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




[Zope] Integers in ZSQLMethod

2000-10-04 Thread Tom Deprez

Hi,

Is it possible to use following code in ZSQLMethod :

,

But also allow null as value for the integer? (Thus not filled in)

Thanks in advance,

Tom.

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Detecting Roles not working

2000-10-04 Thread Jonathan Cheyne

Hi all

I have built the basis of a site with full, form-based webediting of
objects. Coming round to cleanup time and I wanted to remove certain
visible functions from the default object views unless you have already
logged in (with various possible roles)

in the index_html of my zclass i have


edit this


so if the user is anonymous or logged in without the Staff role assigned
they should not see the "edit this" link ...

Doesn't work! It basically never returns a 'true' response thus never
displays the edit this link even when logged in.

Tried various permutations and variations on this theme without any
success.

Help! Without this, I am not sure how to customize the interface for
different user groups.

I am on 2.2.0 but I think it was similar under 2.1.6.

Absolutely any clues no matter how obscure would be gratefully received
(or indeed the glaringly obvious solution etc :-)

Cheers

Jonathan


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




Re: [Zope] Integers in ZSQLMethod

2000-10-04 Thread Ralph Heinkel

On Wed, 04 Oct 2000, you wrote:
> Hi,
> 
> Is it possible to use following code in ZSQLMethod :
> 
>   ,
> 
> But also allow null as value for the integer? (Thus not filled in)
> 

use 

or the newer syntax

Ralph


--
Ralph Heinkel  Cenix Bioscience GmbH
Director of the IT-UnitTel  : +49 6221/387 915
Meyerhofstr. 1 Fax  : +49 6221/387 971
69117 Heidelberg, Germany  eMail: [EMAIL PROTECTED]

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




Re: [Zope] Integers in ZSQLMethod

2000-10-04 Thread Tom Deprez

Argh, dumb me. That I didn't think of this myself. Boy, do I feel myself
stupid and red.

Tom.
At 15:12 04/10/2000 +0200, Ralph Heinkel wrote:
>On Wed, 04 Oct 2000, you wrote:
>> Hi,
>> 
>> Is it possible to use following code in ZSQLMethod :
>> 
>>  ,
>> 
>> But also allow null as value for the integer? (Thus not filled in)
>> 
>
>use 
>   
>or the newer syntax
>   
>Ralph
>
>
>--
>Ralph Heinkel  Cenix Bioscience GmbH
>Director of the IT-UnitTel  : +49 6221/387 915
>Meyerhofstr. 1 Fax  : +49 6221/387 971
>69117 Heidelberg, Germany  eMail: [EMAIL PROTECTED]
>

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




Re: [Zope] DCOracle 1.3.2 for Windows NT

2000-10-04 Thread Ayhan Ergul

Marcin Dzienniak wrote:
> I 'm looking for oci driver (DCOracle 1.3.2) to Windows NT platform,
> I have heard that someone in this community buit DCOracle for NT and I
> wonder if you can help me.
> I would be gratefull if you could send me a makefile to this
> platform or a comliled file (*.pyd).
> I have Oracle 8i 8.1.6 .

I had compiled DCOracle 1.3.1 b1 libraries as .dll's a while back on
WinNT4.0 against Oracle 8.1.6.0 and they worked fine for me until we moved
onto Linux. I've attached it hoping it works for you (and maybe others).

Ayhan Ergul <[EMAIL PROTECTED]>

 DCOracle-1.3.1b1-compiled.zip


Re: [Zope] 'Offline' mailhost

2000-10-04 Thread Chris Withers

Hannu Krosing wrote:
> Perhaps it would be better to solve this by configuring your sendmail
> (or other SMTP MTA) to be non-blocking, i.e. store-and-forward.

Can you tell me how to set that up with exim?

> Also you could send just one message to all the recipients instead of
> sending individual messages.

Urm, they could be pretty unfriendly mail messages if they're being sent
to a coupla thousand people. The bandwidth dcoming out of your server
alone would be far higher than it needed to be :-(

> > I wonder how mailman does this stuff and if the code could be borrowed
> > for Zope?
> 
> Maybe you could just use mailman as MTA, greating temporary
> mailing-lists.

Any how-to's for this or how hard it would be to set up?

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

2000-10-04 Thread Chris Withers

Fred Yankowski wrote:
> 
> Version 0-7-2 of Squishdot seems to use the url_quote option when
> accessing the value of admin_address in particular, so when a DTML
> page has code like
> 
>  

Where does this code occur? (all occurences please ;-)

> and admin_address is a property with the value "[EMAIL PROTECTED]", the
> resulting HTML code is
> 
>  foo%40bar.com
> 
> which doesn't work correctly, particularly when used as the value of a
> 'mailto:' URL.

How odd... Where have you got a mailto: URL? I've never had problem with
this. What evrsion of Zoep are you using?

> So what's the solution?  Is Squishdot wrong to use url_quote this way?

Dunno...

> Why is url_quote hiding the "@" anyway -- I don't see any reason for
> escaping it this way.

Dunno...

Anyone with clues, please give me one :-)

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] Detecting Roles not working

2000-10-04 Thread Kapil Thangavelu

Jonathan Cheyne wrote:
> 
> Hi all
> 
> I have built the basis of a site with full, form-based webediting of
> objects. Coming round to cleanup time and I wanted to remove certain
> visible functions from the default object views unless you have already
> logged in (with various possible roles)
> 
> in the index_html of my zclass i have
> 
> 
> edit this
> 
> so if the user is anonymous or logged in without the Staff role assigne
> they should not see the "edit this" link ...
> 
> Doesn't work! It basically never returns a 'true' response thus never
> displays the edit this link even when logged in.



try (untested)




Cheers

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] Implementing a distributing mirror

2000-10-04 Thread Luciano Caroti

Hi,
I would like to implement a system to distribute PDF document. I would like
to use ZOPE on 5 server distributed in Europe. I would like to build a
system that send an email to a paying user where I put an URL. I would like
that in URL I send temporary authentication information to allow access to a
virtual directory where I put only documents or images files that user
purchased. Have you any hints on how implement this architecture?
Thank you in advance,
Luciano Caroti.



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




[Zope] help! dtml-if question

2000-10-04 Thread Dr. Anthony Monta

Hi,

I've tried to find a solution myself but now am stuck.  I created a little 
"Blurb" product for a university department website so that faculty members 
can announce recent publications on the department's homepage.  They create 
these ZClass instances in their own folders, and a DTML method in the 
top-level folder grabs and displays them at random.  (I want to avoid using 
ZCatalog for the time being.)  What the method does is randomly choose a 
faculty folder, and then randomly choose a Blurb instance within that 
folder.  Here's the hack I came up with:


  
   

 
  

(end tags omitted)

The problem is that this method will produce an Index Error when it comes 
across a folder that doesn't contain an instance of "Blurb" class.  So I 
need to make the selection of a folder conditional on Zope's finding a 
Blurb in that folder.  Here's what I tried after reading up:


  
   

 
  
   

 
  Some default Blurb would appear.

This method fails.  Can someone help?

Cheers,
Anthony


Anthony Brietz Monta
Coordinator of Curricular Assessment & Academic Reporting
Louisiana Board of Regents
150 Third Street, Suite 129
Baton Rouge, LA 70801-1389
225.342.4253, ext. 143
[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] 'Offline' mailhost

2000-10-04 Thread Ken Manheimer

On Wed, 4 Oct 2000, Hannu Krosing wrote:

> Perhaps it would be better to solve this by configuring your sendmail 
> (or other SMTP MTA) to be non-blocking, i.e. store-and-forward.

This seems like a good idea.  It makes it hard to get disposition status
for the delivery in the transaction - but that problem is intrinsic to
email communications, and probably best addressed by using the "sender"
header (i think it is), so delivery failure notifications go to someone
who needs to know about the failure.

Even better - but lots more complicated: have the failure notifications
directed to a program which queues the fact of the failure for the sending
program to use.  I haven't used it, but contemporary MTAs have catchall
aliases, by which you can handle a pattern of recipients.  Have the
envelope sender fit the pattern, and encode the information about the
program that needs to get back the failure information.

I think this kind of architecture is necessary for comprehensive mail
sending from zope, with delivery failure accounting, since mail sending is
inherently asynchronous.

> Maybe you could just use mailman as MTA, greating temporary
> mailing-lists.

This is also a good idea in principle, but would wind up being cumbersome.  
Mailling list "objects" are heavy weight components in mailman - each one
having a list metadata and archive directory, mta aliases, etc.  Plus, you
may have to leave the list up until the last delivery is completed
(successful or not).  Better, i think, to adopt techniques and steal code
from mailman, to take the pieces you want.  Ultimately, i don't think
you'd be taking that much - there's a lot in python that gets you a lot of
the way.  It's the embedded knowledge that's useful...

-- 
Ken
[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-dev] cookies & ie5.5 win

2000-10-04 Thread Sebastian Luehnsdorf

hi!

config: zope 2.1.6 under red hat with customized UserDB.

i'm having a strange problem with cookie based user authentication with 
ms internet explorer 5.5 on windows. it seems that the browser (but only
this version and only under windows!) seems to "forget" its cookies, which
results in an immediate logout. does anybody have similar experiences or a
even solution?

any help would be appreciated.

ciao, basti

--
sebastian f. luehnsdorf beehive elektronische medien gmbh
--
http://basti.beehive.de http://www.beehive.de
mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
http://www.zope.de  fon: (+49 30) 84 78 20
http://www.i-surf.defax: (+49 30) 84 78 22 99


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




Re: [Zope] IMAP and Zope!

2000-10-04 Thread Joachim Werner

Thanks for the input I got!

Just a small wrap-up of what I learned:

- The NotMail and old IMAP Adapter code don't seem to be seriously used by
   anybody

- WorldPilot could be a solution, but it only if it was more modular. Ryan
   Hughes promised to integrate it into Zope by release 2 (incl. a ZODB-based
   document storage

- There is a similar project by Morten W. Petersen that also will feature a
   ZODB-based message storage that will be searchable, Catalog-aware etc.

Joachim.

-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de
---

-- 
Iuveno - Smart Communication


Joachim Werner


_

Marie-Curie-Straße 6
85055 Ingolstadt

Tel.: +49 841/90 14-325 (Fax -322)
Mobil: +49 179/39 60 327
E-Mail: [EMAIL PROTECTED][EMAIL PROTECTED]
WWW: www.iuveno.de/www.iuveno-net.de



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] 'Offline' mailhost

2000-10-04 Thread Bill Welch

Techniques for effeciently sending a message to a large number of
recipients are covered extensively in majordomo documentation -
www.greatcircle.com/majordomo. Also check out
ftp://cs.utk.edu/pub/moore/bulk_mailer

Bill.

On Wed, 4 Oct 2000, Chris Withers wrote:

> > Also you could send just one message to all the recipients instead of
> > sending individual messages.
> 
> Urm, they could be pretty unfriendly mail messages if they're being sent
> to a coupla thousand people. The bandwidth dcoming out of your server
> alone would be far higher than it needed to be :-(


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Detecting Roles not working

2000-10-04 Thread Daniel Rusch



This works for me, no pun intended :)

Dan

Kapil Thangavelu wrote:
> 
> Jonathan Cheyne wrote:
> >
> > Hi all
> >
> > I have built the basis of a site with full, form-based webediting of
> > objects. Coming round to cleanup time and I wanted to remove certain
> > visible functions from the default object views unless you have already
> > logged in (with various possible roles)
> >
> > in the index_html of my zclass i have
> >
> > 
> > edit this
> > 
> > so if the user is anonymous or logged in without the Staff role assigne
> > they should not see the "edit this" link ...
> >
> > Doesn't work! It basically never returns a 'true' response thus never
> > displays the edit this link even when logged in.
> 
> try (untested)
> 
>  
> or (tested)
> 
> 
> 
> Cheers
> 
> 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 maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] help! dtml-if question

2000-10-04 Thread Jim Washington

Hi, Anthony

how about:

 0">

Your _.has_key() (I think you meant _.hasattr()) statement was looking 
for something named "Blurb", not a thing of type"Blurb", so of course it 
failed.

The objectValues(['atype']) statement returns a list of the things of 
the type,  so checking for a non-zero length of the list will do what 
you need.

-- Jim Washington

Dr. Anthony Monta wrote:

> Hi,
> 
> I've tried to find a solution myself but now am stuck.  I created a 
> little "Blurb" product for a university department website so that 
> faculty members can announce recent publications on the department's 
> homepage.  They create these ZClass instances in their own folders, 
> and a DTML method in the top-level folder grabs and displays them at 
> random.  (I want to avoid using ZCatalog for the time being.)  What 
> the method does is randomly choose a faculty folder, and then randomly 
> choose a Blurb instance within that folder.  Here's the hack I came up 
> with:
> 
> 
>  
>   
>
> 
>  
> 
> (end tags omitted)
> 
> The problem is that this method will produce an Index Error when it 
> comes across a folder that doesn't contain an instance of "Blurb" 
> class.  So I need to make the selection of a folder conditional on 
> Zope's finding a Blurb in that folder.  Here's what I tried after 
> reading up:
> 
> 
>  
>   
>
> 
>  
>   
>
> 
>  Some default Blurb would appear.
> 
> This method fails.  Can someone help?
> 


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] IMAP and Zope!

2000-10-04 Thread Morten W. Petersen

[Joachim Werner]

| - There is a similar project by Morten W. Petersen that also will feature a
|ZODB-based message storage that will be searchable, Catalog-aware etc.

I've uploaded some stuff now.  Take a look at
http://www.zope.org/Members/morphex .

This is basically just playing around;  no ZOPE specific stuff yet.

Regards, Morten

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




[Zope] Re: [Zope-dev] DynPersist.so from ZPatterns 0-4-2a3

2000-10-04 Thread Danny William Adair

>You can build one yourself on that server.

Thanks, I've built one. :-)

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Client.py and timeouts

2000-10-04 Thread Hannes

I recently used Client.py to get data from the web into the zope
machinery,
the setup was exactly as proposed in the ZClient How-To.
Maybe I missed something, but the Client module seems to support
the setting of an timeout, but I was unable to finger out the right
syntax

I thought of:
web_client(url='http://someserver.com', timeout=60)
or some variants of it.

(or it doesnt work at all for some other reasons.)

Any help would be appreciated..

Hannes


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 restarting

2000-10-04 Thread ethan mindlace fremen

Zopatistas,

we're tracking down a memory leak.  Thanks for your patience,
~ethan

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Wierd 2.2.2 start up problem

2000-10-04 Thread J. Atwood

I have installed 2.2.2 on more than a few machines on my fifth machine I
got this after doing the install.

2000-10-04T19:54:35 ERROR(200) ZODB Couldn't load state for
'\000\000\000\000\000\000\000\003'
Traceback (innermost last):
  File /usr/local/Zope-2.2.2-linux2-x86/lib/python/ZODB/Connection.py, line
446, in setstate
ImportError: No module named Document

I have tried wiping it away and trying again like three times. Anyone know
what this? Why it is not happening in installs. All RH Linux.

Thanks,
J


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Detecting Roles not working

2000-10-04 Thread Peter Bengtsson

Stolen somewhere from this list, and I don't remember from who.



...is cool to have as well if you ever need it.
Let's you not use specific names of ACL's such as "Staff" or "CopyWriter".



> 
> 
> This works for me, no pun intended :)
> 
> Dan
> 
> Kapil Thangavelu wrote:
> > 
> > Jonathan Cheyne wrote:
> > >
> > > Hi all
> > >
> > > I have built the basis of a site with full, form-based webediting of
> > > objects. Coming round to cleanup time and I wanted to remove certain
> > > visible functions from the default object views unless you have already
> > > logged in (with various possible roles)
> > >
> > > in the index_html of my zclass i have
> > >
> > > 
> > > edit this
> > > 
> > > so if the user is anonymous or logged in without the Staff role assigne
> > > they should not see the "edit this" link ...
> > >
> > > Doesn't work! It basically never returns a 'true' response thus never
> > > displays the edit this link even when logged in.
> > 
> > try (untested)
> > 
> >  > 
> > or (tested)
> > 
> > 
> > 
> > Cheers
> > 
> > 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 maillist  -  [EMAIL PROTECTED]
> http://lists.zope.org/mailman/listinfo/zope
> **   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] timecards@digicool.com

2000-10-04 Thread Shane Hathaway

Sorry for the tardiness.

Shane
 2917.xls
 2924.xls


Re: [Zope] timecards@digicool.com

2000-10-04 Thread Shane Hathaway

Shane Hathaway wrote:
> 
> Sorry for the tardiness.

Uh, ahem, please disregard.  Sorry for sending that to the wrong place.

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 )




[Zope] client proxy setting

2000-10-04 Thread TMGB

Can I get the user's client proxy setting using 'REQUEST' or some other
syntax, product, or utility.  This is not Proxy Roles or ProxyPass, but
the client's proxy settings if any.  I am working on a help page to
debug a user's settings if he or she can't get to certain pages with our
proxy server settings on their browser. 


I've found this to work for testing cookies acceptance:(set a cookie and
then try to get it)




   YES, You Do Have Cookies Enabled

   NO, Your browser is not accepting cookies



Thanx,
Thomas

-- 

  Rock and Rule
 Zope Rocks -- http://www.zope.org
   Python Rules  -- http://www.python.org

Thomas McMillan Grant Bennett  Appalachian State University
Computer Consultant IIIUniversity Library
[EMAIL PROTECTED]  
http://www.library.appstate.edu/webmaster/
Voice:  828 262 6587   FAX:828 262 3001

Windows 95 is a 32-bit extension to a 16-bit patch for an 8-bit
operating system that was originally coded for a 4-bit microprocessor.
 - Chris Dunphy Boot Magazine

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] 'Offline' mailhost

2000-10-04 Thread Terry Kerr



Chris Withers wrote:

> Hannu Krosing wrote:
> > Perhaps it would be better to solve this by configuring your sendmail
> > (or other SMTP MTA) to be non-blocking, i.e. store-and-forward.
>
> Can you tell me how to set that up with exim?
>
> > Also you could send just one message to all the recipients instead of
> > sending individual messages.
>
> Urm, they could be pretty unfriendly mail messages if they're being sent
> to a coupla thousand people. The bandwidth dcoming out of your server
> alone would be far higher than it needed to be :-(
>

How would the bandwidth change??


>
> > > I wonder how mailman does this stuff and if the code could be borrowed
> > > for Zope?
> >
> > Maybe you could just use mailman as MTA, greating temporary
> > mailing-lists.
>
> Any how-to's for this or how hard it would be to set up?
>
> 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 )

--
-
Terry Kerr ([EMAIL PROTECTED])
Adroit Internet Solutions
http://www.adroit.net/
03 9563 4461
0414 708 124



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] external method import error (ImportError)...

2000-10-04 Thread Eric

Hi,

To summarize: How do I import modules in an External Method's .py file?

I have an external method that points to a .py file that has an import
statement at the top.  The import statement loads another module of mine
(CProject.py).  I've placed both files (pwToxml.py and CProject.py) in the
Zope/Extensions directory.  When I try to create an external method on the
pTox.py file with the following parameters:
ID = pTox
Function Name = pTox
Python Module File = pwToxml
I get the following error:
Error Type: ImportError
Error Value: No module named CProject
Traceback (innermost last):
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 222, in
publish_module
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in
publish
  File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in
zpublisher_exception_hook
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in
publish
  File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
(Object: manage_addExternalMethod)
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in
call_object
(Object: manage_addExternalMethod)
  File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 130, in manage_addExternalMethod
  File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 178, in __init__
(Object: pTox)
  File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 201, in manage_edit
(Object: pTox)
  File /usr/local/Zope/lib/python/Products/ExternalMethod/ExternalMethod.py,
line 210, in getFunction
(Object: pTox)
  File /usr/local/Zope/lib/python/App/Extensions.py, line 217, in getObject
(Info: ('/usr/local/Zope/Extensions/pwToxml.py', 'pwToxml'))
  File /usr/local/Zope/Extensions/pwToxml.py, line 1, in ?
ImportError: (see above)

I checked the sys.path for my Python installation and placed the CProject.py
file there, but I still get the same error.

Here's the top of my pwToxml.py file:

import CProject, string

def pTox(self, REQUEST):
"""Function to map pw to CProject Objects"""
P=CProject.CProject()
dictData = REQUEST.form.items()
strTemp = ""
strError = "Error Retrieving Dictionary Value"
...etc...

Thanks for any help you can provide.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] 'websafe' colours

2000-10-04 Thread Curtis Maloney

On Wed, 04 Oct 2000, Stephan Goeldi wrote:
> > > > According to a recent study, there are approximately 13 'web safe'
> > > > colours, out of the full 16,777,216.
> > >
> > > What makes the other 15,777,203 'unsafe'?
>
> If you mean the 'browsersafe colours' then there are 218.
>

Yes, my mistake. I did mean 'browser safe'.  I was aware of the previous 
belief of 216 (mostly because of 256 colour modes less 40 system colours), 
but as I stated, a recent study has "dispelled the myth", claiming (and now I 
correct myself :)  only 22 browser safe colours.

http://slashdot.org/articles/00/09/08/1622204.shtml has some more details, 
and a link to the actual article.

> >The only other possible reason I can recall is that some of the 'named'
> >colours are not supported by all browsers, or are not interpreted the
> > same.
>
> No, the problem is, that they are not displayed the same.
>

Not long after posting my message I realised this also. (o8

> -goe-
>

Have a better one,
Curtis Maloney

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




Re: [Zope] Zope stalls indefinitely

2000-10-04 Thread ethan mindlace fremen

"Leichtman, David J" wrote:
> 
> Thought we had a problem of ours fixed, but here it is once again, a month
> later.
> Zope, every once in a while, will just stall indefinitely. The Zope process
> doesn't die, it just hangs.

> Any thoughts. I've posed this question to a lot of people many times. Now
> that it's back, I'm hoping for fresh insight.

hm.  have you been using -M to see which things are being called when it
hangs?

~ethan

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Last-modified header missing -- time-stamps turned off.

2000-10-04 Thread ethan mindlace fremen

Jean Jordaan wrote:
> 
> Hi all
> 
> Just a note from the blue .. I'm snarfing the ZB using
>   wget -np -m http://www.zope.org/Members/michel/ZB/
> and for every document I'm seeing:
> 
>   Last-modified header missing -- time-stamps turned off.
> 
> What's the significance of this? I assume something to
> do with the http headers returned by Zope. Does Zope not
> include last-modified headers since it predominantly serves
> dynamic pages?

This is correct. No Last-Modified headers except for files and images
(and that is specific to zope.org).

Including a last modified header isn't hard, however:

http://www.zope.org/Members/rbeer/caching

~ethan

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] WDDX anyone?

2000-10-04 Thread Albert Boulanger

Has anyone considered WDDX for Zope? This seems like a nice next step to

exchanging data beyond RSS, but not as ambitious as SOAP and has SDKs
for  CF, perl, etc.

I have some applications in mind for intranet syndication that goes
beyond what RSS can do. Also there is full rdf.

From: http://www.wddx.org/

Welcome to WDDX.ORG, the home of the WDDX SDK and related projects.
WDDX.ORG seeks to empower Web developers with technology that enables
them to create new forms of value on the Internet using distributed data
and Web syndicate networks. The Web Distributed Data Exchange, or WDDX,
is a free, open XML-based technology that allows Web applications
created with any platform to easily exchange data with one another over
the Web. To learn more about WDDX, check out the Understanding WDDX
section of the site.

Who created WDDX?
Allaire created WDDX in order to solve key problems in exchanging data
between Web applications. In particular, Simeon Simeonov, Allaire's
language technology architect, created WDDX to support problems of
distributed computing within ColdFusion. This work was generalized into
a cross-language framework, and resulted in the creation of the WDDX SDK
and WDDX.org. The WDDX SDK was created by Nate Weiss, an independent Web
developer, with the support of Allaire and a number of other third
parties.

How does WDDX work?
All of the standard programming environments on the Web (ColdFusion,
Perl, ASP, Java, JavaScript, PHP, etc) include native data structures
such as arrays, record sets or value pairs. WDDX provides a module for
each language that will automatically serialize or translate the native
data structures into an abstract representation in XML, or deserialize
WDDX XML into a native data structure. For example, you could use WDDX
to take a complex array in ColdFusion, serialize it into XML, send it to
an ASP server, and then deserialize from XML into a VBScript array
object with all the types natively converted. This conversion process
between languages is relatively transparent to developers by shifting
any XML processing and interaction into the WDDX modules, eliminating
developers from having to directly program or manipulate XML themselves,

This is not an RMI mechanism.


Regards,
Albert Boulanger
[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] Product Testing

2000-10-04 Thread Nestor A. Diaz L.

HI, i'm trying to learn how to make products, i have been able to modify
the poll product that comes with the product tutorial, and now i'm
creating a new product however i need to restart zope for the changes to
take effect, i think i can omit this if i can compile (generate the
*.pyc) in the product directory, can anybody send me a few bits of how can
i made that?

thanks,

--
Nestor A. Diaz
Ingeniero de Desarrollo
Engendro.com - Comercio Electronico sobre Linux
Email: [EMAIL PROTECTED] - WWW: http://www.engendro.com


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




[Zope] Hotfix_2000-10-02 - fails with GUF and zope 2.2.2

2000-10-04 Thread Andrews, Martin

When I have the 2000-10-02 hotfix installed I can no longer authenticate to
zope. I fails with the attached message (Error Type: AttributeError, Error
Value: editabsolute_url). I am guessing the problem is related to the fact
that I am using GUF 1.2.4 (patched to have the getUserById() method). Any
ideas?

Martin
[EMAIL PROTECTED]


 zope.err


[Zope] Fw: ZSQL Methods in ZClasses, not working

2000-10-04 Thread Michel Pelletier

Just wanted to get this point archived... 
Thanks Michel.

Forwarded by Alexander Schonfeld <[EMAIL PROTECTED]>
 Original message follows 
 From: Michel Pelletier <[EMAIL PROTECTED]>
 To: [EMAIL PROTECTED]
 Cc: " \(DC Support List\)" <[EMAIL PROTECTED]>
 Date: Mon, 02 Oct 2000 13:41:25 -0700
 Subject: Re: [Support] [ZOPE Collector] Z SQL Methods Bug entry: ZSQL Methods in 
ZClasses, not working
--

[EMAIL PROTECTED] wrote:
> 
> A new bug entry was added with the following information:
> 
> Title:  ZSQL Methods in ZClasses, not working
> 
> At: http://classic.zope.org:8080/Collector/Collector/1664/sview
> 
> Submitter:  Alex
> 
> Email:  [EMAIL PROTECTED]
> 
> Description:  Adding a ZSQL method to a ZClass and trying to access it from a method 
>in that class gives permission denied and no matter what the password, denies access.


You need to select *Use Database Methods* on your ZClasses *Permissions*
view, and then select each ZSQL method you create and map *Use Database
Methods* to *Use Database Methods*.

I haven't really groked why it's that hard, but it works.

-Michel




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] WDDX anyone?

2000-10-04 Thread Kapil Thangavelu

Albert Boulanger wrote:
> 
> Has anyone considered WDDX for Zope? This seems like a nice next step to
> 
> exchanging data beyond RSS, but not as ambitious as SOAP and has SDKs
> for  CF, perl, etc.
> 
> I have some applications in mind for intranet syndication that goes
> beyond what RSS can do. Also there is full rdf.
> 
> From: http://www.wddx.org/

 

> WDDX provides a module for
> each language that will automatically serialize or translate the native
> data structures into an abstract representation in XML, or deserialize
> WDDX XML into a native data structure. For example, you could use WDDX
> to take a complex array in ColdFusion, serialize it into XML, send it to
> an ASP server, and then deserialize from XML into a VBScript array
> object with all the types natively converted. This conversion process
> between languages is relatively transparent to developers by shifting
> any XML processing and interaction into the WDDX modules, eliminating
> developers from having to directly program or manipulate XML themselves,
> 
> This is not an RMI mechanism.

So what about this couldn't be emulated with xml-rpc?

Curious,

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] LDAP won't work - yes I've applied the patch

2000-10-04 Thread Roman Milner

I'm trying to get ldap methods to work with 2.2.2.  I can access the
attributes of the objects returned from an ldap method with a python
extension fine, but dtml-in'ing the returned list doesn't work. I keep
getting an error (traceback below).

Any ideas?

Thanks,
^Roman


Your action caused an unknown error to occur.

Re: [Zope] WDDX anyone?

2000-10-04 Thread albert boulanger


   So what about this couldn't be emulated with xml-rpc?

   Curious,

   Kapil

True.. But, well, its the other end. The SDK available at www.wddx.org
is a path towards exchanging data with other well known systems such
as ASP and CF. I found out that the PYTHON XML package does include
WDDX serialization... cool.

Regards,
Albert


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Fwd: [Zope] LDAP won't work - yes I've applied the patch

2000-10-04 Thread zope

Hi.

In deed, I have the same problem.

As an example, my LDAP Method consists of the following filter: uid=*

With the following DTML-method, I'm getting data from my LDAP server.


   
 : 
   


The result contains the attributes with their value from the LDAPserver. 
When I'm trying to get the value of an attribute directly (i.e. with 
), I'm getting the key error.

Any idea?

Marc LUDWIG


>From: Roman Milner <[EMAIL PROTECTED]>
>Date: 05 Oct 2000 00:35:53 -0500
>Lines: 30
>User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)
>Sender: [EMAIL PROTECTED]
>X-Mailman-Version: 1.0b8
>List-Id: Users of the Z Object Publishing Environment 
>X-BeenThere: [EMAIL PROTECTED]
>
>I'm trying to get ldap methods to work with 2.2.2.  I can access the
>attributes of the objects returned from an ldap method with a python
>extension fine, but dtml-in'ing the returned list doesn't work. I keep
>getting an error (traceback below).
>
>Any ideas?
>
>Thanks,
>^Roman
>
>
>Your action caused an unknown error to occur.
>