[Zope-dev] Getting SessionUID from FSSession

2000-06-16 Thread Jeff Nielsen

How can I gather the current SessionUID from FSSession? From the docs, I
gather that

dtml-var "FSSession['SessionUID']"

should return the SessionUID, but it always returns "None". Can anyone clue
me in?

---
Jeff Nielsen
http://www.UgoFast.com/
"Where U Go Fast"


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




Re: [Zope-dev] Getting SessionUID from FSSession

2000-06-16 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], "Jeff Nielsen" [EMAIL PROTECTED] wrote:
How can I gather the current SessionUID from FSSession? From the docs, I
gather that

dtml-var "FSSession['SessionUID']"

should return the SessionUID, but it always returns "None". Can anyone clue
me in?

Try:

  dtml-var "FSSession.getName()"

regards,

Hung Jung

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


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




RE: [Zope-dev] Getting SessionUID from FSSession

2000-06-16 Thread Jeff Nielsen

Beautiful, That's works. Thanks.

-Original Message-
From: Hung Jung Lu [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 16, 2000 1:59 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [Zope-dev] Getting SessionUID from FSSession


--- In [EMAIL PROTECTED], "Jeff Nielsen" [EMAIL PROTECTED] wrote:
How can I gather the current SessionUID from FSSession? From the docs, I
gather that

dtml-var "FSSession['SessionUID']"

should return the SessionUID, but it always returns "None". Can anyone clue
me in?

Try:

  dtml-var "FSSession.getName()"

regards,

Hung Jung

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



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




[Zope-dev] Unpickleable Error

2000-06-16 Thread Nick Garcia

So, I'm getting this error when trying to use one of my Products under
Zope 2.2b1:

  Error Type: UnpickleableError
  Error Value: Cannot pickle type 'StringO' objects

What exactly is a StringO object, and why can't it be
pickled/unpickled?  It worked fine under 2.1, so I'm assuming there have
been changes to the pickling routines that haven't been completely
cleaned up yet?

-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.com

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




Re: [Zope-dev] Distutils scripts for ZODB

2000-06-16 Thread Michel Pelletier

I'm lost on what these scripts do, do they let you distribute ZODB in a
standalone fasion?  Do you have an example of that distribution based
on, say 2.2b?

"A.M. Kuchling" wrote:
 
 Here are 3 short setup.py scripts for various bits of Zope.  Two of them

-- 

-Michel Pelletier

http://www.zope.org/Members/michel/MyWiki

Visit WikiCentral for the latest Zen:

http://www.zope.org/Members/WikiCentral

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




Re: [Zope-dev] Distutils scripts for ZODB

2000-06-16 Thread Andrew M. Kuchling

On Fri, Jun 16, 2000 at 12:21:12PM -0700, Michel Pelletier wrote:
I'm lost on what these scripts do, do they let you distribute ZODB in a
standalone fasion?  Do you have an example of that distribution based
on, say 2.2b?

Correct; you can run "python setup.py install" to install, say, the
ZODB package, or ExtensionClass.  I didn't bother to make tar files
containing ZODB + setup.py, because there seemed little point in me
doing that.  The aim is to make it possible to distribute just
ExtensionClass, or just the ZODB.

-- 
A.M. Kuchling   http://starship.python.net/crew/amk/
I confidently expect it to be a fairly resounding failure.
  -- John Cleese, on the Monty Python reunion planned for 1999





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




[Zope-dev] Re: Zope 2.1.5/6/7 upgrading issues

2000-06-16 Thread Brian Lloyd

Hi guys,

First of all, I'd like to apologize for the pain factor here - 
there has been some CM process changes around here and the 
2.1.x branch is suffering as a result :(

I have a proposal, however, that I hope will make this much 
easier. How about if we:

  o release a "Product" today that, if you install it and 
restart your Zope (no matter what version), patches the 
hole at runtime (in memory change only).

  o retract the 2.1.7 release in favor of getting 2.2 beta 2 
out on Monday, which doesn't have the cruft problem of 
the 2.1.x branch and contains all fixes to date (and 
which will fix SQLMethod problems and support the SiteAccess
release that Evan is making today).


I can have the new "hotfix" product ready by 12:00pm EST today.


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



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




Re: [Zope-dev] Zope ...2.1.7 update - patch for EMarket 0.1.03

2000-06-16 Thread Steve Spicklemire


Hi Adam,

I looked at your patch...

*** EMarket.py.orig Thu Jun 01 00:06:01 2000
--- EMarket.py  Fri Jun 16 02:56:35 2000
***
*** 258,265 
  newMainF.transactionFolder = newTransF
  
  Products.MailHost.MailHost.add(newMainF, 'eMarketMailhost',
!smtp_host = smtp_host,
!localhost = localhost)
  
  theMailHost = getattr(newMainF,'eMarketMailhost')  ### TODO... change documents 
that send mail to be proxies for Manager
  
--- 258,264 
  newMainF.transactionFolder = newTransF
  
  Products.MailHost.MailHost.add(newMainF, 'eMarketMailhost',
!smtp_host = smtp_host)
  
  theMailHost = getattr(newMainF,'eMarketMailhost')  ### TODO... change documents 
that send mail to be proxies for Manager
  

Looking at the source, it's not clear what was broken by the localhost
line in the factory. so what was the error that prompted the patch?

thanks!
-steve


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




[Zope-dev] Re: [Zope] Re: Zope 2.1.5/6/7 upgrading issues

2000-06-16 Thread Oleg Broytmann

Hi!

   My vote is here:

On Fri, 16 Jun 2000, Brian Lloyd wrote:
   o retract the 2.1.7 release in favor of getting 2.2 beta 2 
 out on Monday, which doesn't have the cruft problem of 
 the 2.1.x branch and contains all fixes to date (and 
 which will fix SQLMethod problems and support the SiteAccess
 release that Evan is making today).

   I am not running any production servers (yet), so I better will start to
experiment with new Zope, rather than patching old one.
   Other people esp. those who run prod. servers free to have different
opinions :)

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope-dev] Updated security alert

2000-06-16 Thread Brian Lloyd

Hi all -

I've updated the security alert (below). Short story: a new 
"hotfix product" is available on zope.org that will work for 
all 2.0+ Zopes and has no side effects or upgrade implications 
for Zope installations. This feels like a much better model for 
things like this, especially for production sites.





We have recently become aware of an important security issue 
that affects all released Zope versions including the recent 
2.2 beta 1 release.

The issue involves an inadequately protected method in one of 
the base classes in the DocumentTemplate package that could allow 
the contents of DTMLDocuments or DTMLMethods to be changed 
remotely or through DTML code without forcing proper user 
authorization. 

A hotfix for this issue in the form of an add-on Zope product has 
been made available on zope.org. To install the hotfix, simply 
download and install the package as you would any other Zope add-on 
product (extract it in the root of your Zope installation). Remember 
to restart your Zope installation for the hotfix to take effect.

http://www.zope.org/Products/Zope/Hotfix_06_16_2000/Hotfix_06_16_2000.tg
z

The hotfix will work for all versions of Zope 2.0 and higher, 
including the recent 2.2 alpha and beta releases. The forthcoming 
Zope 2.2 beta 2 release will contain a fix for this issue, and you 
be able to uninstall the hot fix after upgrading to 2.2. (though 
nothing bad will happen if you don't uninstall it).

Note that the 2.1.7 release that was initially made to address this 
issue has been pulled in favor of this hotfix product, which will 
allow managers of Zope sites to address this issue without worrying 
about other implications of upgrading their installations.

While we know of no instances of this issue being used to exploit a 
site, we *highly* recommend that any Zope site that is accessible by 
untrusted clients install the 06/16/2000 hotfix product immediately.


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



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




[Zope-dev] (no subject)

2000-06-16 Thread Ron Bickers

Howdy all,

I discovered something bizarre that happens in my 2.1.4 and 2.2b1
installations.

I have a ZClass based on ObjectManager.  In an instance of the ZClass, I can
"Add" most of the available objects (DTML Documents, DTML Methods, User
Folder, MailHost to name a few).  However, for at least two items (TinyTable
and ZMySQL DB Connection), when I add them, they show up in the container
folder, not in the ZClass instance.  Then, if I check it to delete it, it
gives a "does not exist" error.  Upon refreshing the container folder, the
item still shows, but then I *can* delete it.  Equally interesting is that I
can Copy the item from the container folder and successfully Paste it into
the ZClass instance.  However, since ZMySQL DB Connections don't support
Copy/Paste, that won't work.

What's going on?  Is it a problem with my ZClass, the Product manage_add, or
Zope?  Or me?

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




[Zope-dev] Problem with adding items to ZClass instance

2000-06-16 Thread Ron Bickers

[Doh... I don't read messages without subjects. Here 'tis again. Sorry.]

Howdy all,

I discovered something bizarre that happens in my 2.1.4 and 2.2b1
installations.

I have a ZClass based on ObjectManager.  In an instance of the ZClass, I can
"Add" most of the available objects (DTML Documents, DTML Methods, User
Folder, MailHost to name a few).  However, for at least two items (TinyTable
and ZMySQL DB Connection), when I add them, they show up in the container
folder, not in the ZClass instance.  Then, if I check it to delete it, it
gives a "does not exist" error.  Upon refreshing the container folder, the
item still shows, but then I *can* delete it.  Equally interesting is that I
can Copy the item from the container folder and successfully Paste it into
the ZClass instance.  However, since ZMySQL DB Connections don't support
Copy/Paste, that won't work.

What's going on?  Is it a problem with my ZClass, the Product manage_add, or
Zope?  Or me?

___

Ron Bickers
Logic Etc, Inc.
[EMAIL PROTECTED]


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




Re: [Zope-dev] Re: [Zope] Re: Zope 2.1.5/6/7 upgrading issues

2000-06-16 Thread Adam Karpierz

Hi!

   My vote is here:

On Fri, 16 Jun 2000, Brian Lloyd wrote:
   o retract the 2.1.7 release in favor of getting 2.2 beta 2
 out on Monday, which doesn't have the cruft problem of
 the 2.1.x branch and contains all fixes to date (and
 which will fix SQLMethod problems and support the SiteAccess
 release that Evan is making today).

   I am not running any production servers (yet), so I better will start to
experiment with new Zope, rather than patching old one.
   Other people esp. those who run prod. servers free to have different
opinions :)


For me it's not big problem too (yet:) and better way to trying to use
new beta rather fighting with old patches and hacks.

But.. maybe will be a general problem for contributed products
wchich uses MailHost (such as EMarket, ETailer, maybe WordlPilot etc)
bacause MailHost API (especially MailHost.add)  method was changed
in 2.2 branch (in current 2.1.7 too), due to use of standard smtplib module.

And there is a big and serious problem (I think not only for me:).
On my Win box Zope2.2b1 craches (GFP), dont allow add objects (eg. Folder),
dont allow enter Control Panel if product incorect installed, etc..
2.2b1 is very , very unstable for now. Of course I understand the reasons
(a lot of very important changes).
If I would help to avoid some problems I can test v2.2b2 extensively, especially
on Win32 box (Win98, Win2000) and a little (for comparison of behaviour)
on RH Linux.

PS: appologize for my 'english'

Adam Karpierz
[EMAIL PROTECTED]




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




[Zope] More DCOracle real examples...

2000-06-16 Thread Juan Jose Garcia Garcia

Hello, I have installed DCOracle both in UNIX an Windows Systems and it
is running ok... but.. Where can I get more DCOracle real examples ?? I
need for example, trap Oracle errors via try/except etc,...

Many thanks...



--
-
Juan Jose Garcia
INFORMATICA EL CORTE INGLES S.A.
Departamento de Desarrollo de Plataformas Sectoriales
Laboratorio StoreFlow
Avda. de Cantabria, 51
28042 - MADRID
e-mail: [EMAIL PROTECTED]
Tfno:  91-329-82-00 Ext. 8341
Movil: 629-08-56-73
Fax: 91-329-54-59
-



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

2000-06-16 Thread vikas




Sir,
I am still a new user of zope and I want to use MySQL database with
zope. I have downloaded ZMySQLDA1.4 (stable). I have followed all the
steps for installing properly but still I am unable to use MySQL
connection. I have also added a Product named as ZMySQLDA in the product
management screen but I am not sure how to connect zope with MySQL. Also
sir please guide me where and how do i create ZMySQL connection string.
My OS is Turbolinx 6.0
The database is MySQL which I am using is the one provided with the OS. 
Thanking you in anticipation.
Best Regards,
Vikas






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

2000-06-16 Thread Oleg Broytmann

On Fri, 16 Jun 2000, Ron Bickers wrote:
 I know I'm not the only one running 2.1.4 because of misbehaving ZSQLMethods
 in 2.1.5/6/7, and wondering when my site is going to be exploited because of
 the security issues.  Broken or vulnerable seem to be my two choices.  Not a
 very good selection.

   I run 2.1.4 too, and for the same reason - ZSQL and SiteAccess. I am
afraid I couldn't upgrade to 2.1.5+ nor 2.2+ due to SiteAccess :(

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] Zope security alert and 2.1.7 update [*important*]

2000-06-16 Thread Gregor Hoffleit

Brian,

from the announcement, it sounded like the only change from 2.1.6 to 2.1.7
was the fix to DT_String. Zope-2.1.7-src/doc/CHANGES.txt only lists:

  Bugs Fixed

- An inadequately protected base class method made DTMLDocuments 
  and DTMLMethods vulnerable to having their contents changed by 
  unauthorized users.

But when I diff 2.1.6 and 2.1.7, I get modifications in 29 files, ranging
from MailHost to ZLogger and so on.

I haven't yet groked the patches to 2.1.7 suggested by Adam, but some of
them look like fixes to things that were broken from 2.1.6 to 2.1.7. Judging
from the announcement, I would not have expected that 2.1.7 could break
anything.

Therefore a little plea: Please try to keep the CHANGES.txt accurate and
comprehensive; that's most urgent for security releases like this IMHO: Most
people will install them without much preparation.

thanks,
Gregor


On Thu, Jun 15, 2000 at 05:26:18PM -0400, Brian Lloyd wrote:
 A Zope 2.1.7 release has been made that resolves this issue for 
 Zope 2.1.x users. This release is available from Zope.org:
   
   http://www.zope.org/Products/Zope/2.1.7/
 
 A patch is also available if it is not feasible to update your 
 Zope installation at this time (the patch is based on 2.1.6):
 
   http://www.zope.org/Products/Zope/2.1.7/DT_String.diff

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




[Zope] Problems using zope as a xml-rpc server

2000-06-16 Thread Juan Carlos Coruña
Title: Problems using zope as a xml-rpc server




Hello Zopistas,


I'm trying to implement a xml-rpc server with zope.
If I try to retrieve a default index_html from python
with xmlrpclib there is no problem, but if I try to retrieve a dtml
method with a zsql method inside it responds: xmlrpclib.ProtocolError:
ProtocolError for ntserver:8080/RPC2: 401 Unauthorized.


I test the BasicAuthTransport class from the XML-RPC How To,
but it crashes with error: NameError: encodestring.


After this I changed encodestring with base64.encodestring, the same
result (Unauthorized).


Any ideas?
Thanks in advance.




[Zope] R: [Zope] manage_delObjects

2000-06-16 Thread Marcel Preda



 Hi all  :^)

 I have a problem with manage_delObjects:
 this is the text of one of my dtml-method:

 dtml-var standard_html_header
  dtml-in "PARENTS[0].objectValues(['ObjetBIB'])" sort=key
 dtml-if "id ==QUERY_STRING"
   dtml-call "manage_delObjects(_[id],[REQUEST])"
   dtml-var idBR
 /dtml-if
  /dtml-in
 dtml-var standard_html_footer

 and Zope says me:

Zope Error

Zope has encountered an error while publishing this
 resource.

Error Type: AttributeError
Error Value: __getitem__

 well. does anyone knows the right args for  manage_delObjects?

I have no idea about that :)


But I suppoese that you must use _['id'] or just id instead of _[id]

PM

PS: The pepople from www.euro2000.org seem have problems  with user
authetification.
Help them , register some users there
I hope  they are not using Zope :)





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

2000-06-16 Thread Ragnar Beer

Don't use the version from the ports tree.

That's absolutely right. Use the package instead! You can simply ftp 
the python-1.5.2 package from ftp.openbsd.org or one of its mirrors. 
This way it took me about 5 minutes to get Zope running from source 
under OpenBSD 2.6 on an i386. No need to build Python yourself:)

--Ragnar


Build and install Python yourself -- the ports tree that comes with the
OpenBSD 2.6 disk builds an older version of Python.

Then download, build and install your own copy of Zope from the source
version.

It's actually VERY EASY to build and install Zope from the source, I
recommend that everybody learn that method.

dave

Kevin Schaefer wrote:
  
   I have read great things about OpenBSD's security and would like to build a
   dedicated server just for Zope/MySQL.  Any suggestions before I embark into
   this?
  



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

2000-06-16 Thread Pierre Rougier

Pierre Rougier a écrit :

 Pierre Rougier a écrit :

 Hi all  :^)

 

 I found (thanks to Jerome) that was:

 dtml-call "manage_delObjects(_['id'], REQUEST)"

 this is very hard to find documentation about the manage functions, no?
 the ZQR is not very fine for that
 do u know a place where I can find??

 
  I have a problem with manage_delObjects:
  this is the text of one of my dtml-method:
 
  dtml-var standard_html_header
   dtml-in "PARENTS[0].objectValues(['ObjetBIB'])" sort=key
  dtml-if "id ==QUERY_STRING"
dtml-call "manage_delObjects(_[id],[REQUEST])"
dtml-var idBR
  /dtml-if
   /dtml-in
  dtml-var standard_html_footer
 
  and Zope says me:
 
 Zope Error
 
 Zope has encountered an error while publishing this
  resource.
 
 Error Type: AttributeError
 Error Value: __getitem__
 
  well. does anyone knows the right args for  manage_delObjects?
 
  thanks by advance...
  Piotr
 
  ___
  Zope maillist  -  [EMAIL PROTECTED]
  http://lists.zope.org/mailman/listinfo/zope
  **   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] Worldpilot-no Mail-frameset

2000-06-16 Thread Kai Festersen

Hello,
I installed WorldPilot and CommuniGate.
If I start WorldPilot, there is no mail-framset (Errorcode look at 
foot) - know something the problem and can help me?
Thanks
Kai Festersen 
-
---
Hallo,
ich habe WorldPilot installiert und CommuniGate Pro.
Wenn ich den Pilot starte, bekomme ich kein Mailframeset - kennt 
jemand das Problem und kann mir helfen?
Danke
Kai Festersen 

  Sorry, a Zope error occurred.p
!--
Traceback (innermost last):
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 214, in publish_module
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 179, in publish
  File /usr/local/Zope-2.1.6-src/lib/python/Zope/__init__.py, line 
202, in zpublisher_exception_hook
(Object: RoleManager)
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 165, in publish
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/mapply.py, line 
160, in mapply
(Object: prog)
  File /usr/local/Zope-2.1.6-src/lib/python/ZPublisher/Publish.py, 
line 102, in call_object
(Object: prog)
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WorldPilot.p
y, line 1911, in prog
(Object: RoleManager)
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WorldPilot.p
y, line 1832, in displayIfLoggedOn
(Object: RoleManager)
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WorldPilot.p
y, line 369, in callResource
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/Resource.py, 
line 137, in callResource
  File 
/usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_String.py, 
line 502, in __call__
(Object: string)
  File /usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_In.py, 
line 633, in renderwob
(Object: Logon.getIMAPFoldersList(REQUEST))
  File 
/usr/local/Zope-2.1.6-src/lib/python/DocumentTemplate/DT_Util.py, line 
335, in eval
(Object: Logon.getIMAPFoldersList(REQUEST))
(Info: Logon)
  File string, line 0, in ?
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WorldPilot.p
y, line 446, in getIMAPFoldersList
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WorldPilot.p
y, line 417, in getIMAPFolders
  File 
/usr/local/Zope-2.1.6-src/lib/python/Products/WorldPilot/WPUtil.py, 
line 176, in CreateStruct
  File /var/tmp/python-root/usr/lib/python1.5/re.py, line 117, in 
match
TypeError: len() of unsized object




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

2000-06-16 Thread Nick Garcia

vikas wrote:
 
 Sir,
 I am still a new user of zope and I want to use MySQL database with
 zope. I have downloaded ZMySQLDA1.4 (stable). I have followed all the
 steps for installing properly but still I am unable to use MySQL
 connection. I have also added a Product named as ZMySQLDA in the product
 management screen but I am not sure how to connect zope with MySQL. Also
 sir please guide me where and how do i create ZMySQL connection string.
 My OS is Turbolinx 6.0
 The database is MySQL which I am using is the one provided with the OS.
 Thanking you in anticipation.

If you have the ZMySQLDA Product installed and you can add ZMySQL
Database Connections, then you're pretty muchd one.  You still have to
go in and create a user in MySQL for Zope to use, and the connection
string follows this format:

database_name[@dbserver] [user] [password]

Once a Database Connection has been established, you can create Z SQL
Methods.

-- 
Nick Garcia | [EMAIL PROTECTED]
CodeIt Computing | http://codeit.com

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




[Zope] Comfirming Hotfix is installed.

2000-06-16 Thread Ian Thomas

Is there any way to confirm that the hotfix has been installed?

I extracted the files and restarted Zope but it would be nice if there was
a way to confirm that it is installed.



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

2000-06-16 Thread Oleg Broytmann

On Fri, 16 Jun 2000, Ian Thomas wrote:
 Is there any way to confirm that the hotfix has been installed?
 
 I extracted the files and restarted Zope but it would be nice if there was
 a way to confirm that it is installed.

   Go to Control Panel, Product Management, and watch: is there "Installed
Product" or "Broken Product".
   If it is "broken" - click on it and watch the traceback. If it is
installed - click on it and read README (there is a README tab up there).

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] one more way to make advertisement :)

2000-06-16 Thread Vitaly Osipov

now Zope is even more famous :)))

http://www.securityfocus.com/bid/1354

but i do not see any exploits there... i'd like to know about details -
seems like i'll have to dig into code to reproduce the thing.

regards,
Vitaly.




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

2000-06-16 Thread Brian Lloyd

 Is there any way to confirm that the hotfix has been installed?
 
 I extracted the files and restarted Zope but it would be nice 
 if there was
 a way to confirm that it is installed.

Yes - that is one of the nice side-benefits of doing it this
way: look in the Control_Panel/Products and you will see the 
hotfix product in the listing. Click on it and click the "README" 
tab to view the readme file that describes the hotfix.


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



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




[Zope] Zope Database Connection

2000-06-16 Thread Ivan Raikov


Hi all,

I am trying to figure out a way to use a Zope Database Connection
object from within a Python class, which is then going to be
subclassed by a ZClass. 

In my Python class, I want to have an instance of the parent class of
all Zope Database Connections, so that I can work with all types of
connections (be it Gadfly, Solid, or whatever). However, I am not sure
which class this is. I think it is
Shared.DC.ZRDB.Connection.Connection. Is that correct?

Also, in the creation form of my ZClass, I'd like to have a connection
selection dialog, similar to the one in the creation form of ZSQL
Method.
How do I get a list of connection instances in the current folder?

Thanks,
Ivan Raikov

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




[Zope] dtml-sqltest to support SOUNDEX?

2000-06-16 Thread Kyler B. Laird


I think I've determined that there's no clean
way to specify a function to be used on a
sqltest variable.

I'd like to be able to do something like
dtml-sqltest soundex(lname) column="soundex(last_name)" type=nb optional
but it doesn't seem possible.  I hope that I
am missing something.

Yes, I know there are lots of kludges to get
around this, but then I lose the clean design
of sqltest - especially if I want to use
"optional" or "multiple".

Any suggestions?

Thank you.

--kyler

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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] neted dtml-in and ZSQL methods

2000-06-16 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Suppose, you have a database, items,  that has fields product and scheme.
  
  You are processing a form that has field old_product and new_product.
  
  You have a ZSQL method, get_scheme, with parameter old_product and body
  select * from items where product = dtml-sqlvar old_product type=string.
  
  You also have a ZSQL method, new_scheme, with parameter new_product and
  scheme.
  
  Observation:
  
  dtml-in get_scheme
   dtml-call new_scheme
  /dtml-in
  
  fails, with message
  
Zope Error
  
Zope has encountered an error while publishing this resource. 
  
Error Type: NameError
Error Value: scheme
I can across the same thing yesterday.

The explantion:
  SQL methods are much more stupid than DTML methods!
  If used in the way you do it, SQL methods look only
  in the REQUEST object and not in the namespace.

  This means (if called from a WEB request, i.e. REQUEST is defined):
dtml-call new_scheme is equivalent to dtml-call "new_scheme(REQUEST)".
  Your dtml-in, however, has placed the fields into the
  namespace "_" and not in the REQUEST object.

  You cannot use dtml-call "new_scheme(_)" either, because
  SQL methods require a "get" method from their first parameter
  ("_" does not have it).

For the moment, you have to use on of these ways:

  1.  dtml-call "new_scheme(new_product=new_product, scheme=scheme)"
or
  2.  dtml-call "REQUEST.set('new_product',new_product)"
  dtml-call "REQUEST.set('scheme',scheme)"
  dtml-call new_scheme

I prefered 1. in my 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] get fssession value

2000-06-16 Thread Richard Bartels

Hello,

I'm sure this is simple, but have not been able to come up with the correct way.

If I do this,
dtml-call "FSSession['username'].update(REQUEST.form)"

and then retrieve with,
FSSession['username']

I get {'username':'something'}

when of course all I want is something.

Thanks much,

Rick


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

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




Re: [Zope] Re: Zope 2.1.5/6/7 upgrading issues

2000-06-16 Thread Graham Chiu

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In article [EMAIL PROTECTED]
, Brian Lloyd [EMAIL PROTECTED] writes
  o release a "Product" today that, if you install it and 
restart your Zope (no matter what version), patches the 
hole at runtime (in memory change only).

I'd go for that.


  o retract the 2.1.7 release in favor of getting 2.2 beta 2 
out on Monday, which doesn't have the cruft problem of 
the 2.1.x branch and contains all fixes to date (and 
which will fix SQLMethod problems and support the SiteAccess
release that Evan is making today).


What's the explanation for the breaking of SQLMethods in the first
place?

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

-BEGIN PGP SIGNATURE-
Version: PGPsdk version 1.7.1

iQA/AwUBOUnZILTRdIWzaLpMEQKVJACfQ5/qHCIuo3FMeZKxiCskjuC6zdkAoIST
lLVzFEKQxwWOMajGZfm3vxf0
=JZqc
-END PGP SIGNATURE-

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




Re: [Zope] Containment or context

2000-06-16 Thread Michel Pelletier

Evan Simpson wrote:
 
 - Original Message -
 From: Michel Pelletier [EMAIL PROTECTED]
  Evan Simpson wrote:
   for p in REQUEST['PARENTS']:
   if hasattr(p.aq_explicit, propname):
   return getattr(p, propname)
   raise AttributeError, propname
 
  I think you might be missing an else: and a couple or three tabs. ;)
 
 Eh?  I don't get it.
 
That's because I didn't either.  That's what I get for looking at code
pre-tea.

-- 

-Michel Pelletier

http://www.zope.org/Members/michel/MyWiki

Visit WikiCentral for the latest Zen:

http://www.zope.org/Members/WikiCentral

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




[Zope] Products vs. ZClasses- Design Question

2000-06-16 Thread Garrin Kimmell


Hello,

I would like some thoughts on design strategies for Zope classes. I am
developing a site that will require writing some custom classes. I would
appreciate any opinions anyone could offer. I apologize for such a long
message.

My class will have some instance variables along with some standard Zope
subobjects. My principal concern is that, because the graphical design of
the site is still in development, I will probably be making lots of
changes to the user interface of the class. I will want those changes to
be propogated to existing instances of the class. The underlying logic,
however, should be fairly stable.

I've thought of three ways to develop the class:

1. Develop the entire class as a Zope product in Python.

The advantage I see here is that developing the application logic is
fairly straightforward with Python. I see problems, though, with the
user interface, especially if I want to make changes to it after
instantiating a few objects. It is my understanding that objects created
from a Product are not automatically updated when changes are made to
the class methods (as opposed to ZClasses, where they are). Am I correct
here?

2. Develop the entire class as a ZClass

The principal advantage I see is that changes to the class
methods are dynamically updated in all instances of that ZClass. The
problem is that DTML is (for me, at least) a pain in the ass to write any
complicated application logic with.

3. Develop the application logic as a Product in Python, then use that
class as a mix-in class for a ZClass that implements UI logic with dtml
methods. 

This seems to be the best solution (even if it is the most work). I should
get the advantage of having ZClass instances automatically update changes
to ZClass methods, while having the programability of Python for 
application logic in the Product. If I do take this route, are there any
quirks I should be aware of when inheriting a ZClass from a product?


I am new to Zope and would appreciate any insight into the tradeoffs
among these three strategies. 

Thank you,
Garrin


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

2000-06-16 Thread Rogerio Atem de Carvalho

Hi,

I am a Zope Newbie and would like to ask some questions 
regarding to Zope + MySQL:

1)How can I upload file content to TEXT (plain text) 
and BLOB (images: jpg, gif) using DTML?

2)How can I create interface fields with multiple lines 
to edit (insert and update) MySQL text columns?

3)Is there any way of doing full text search in MySQL 
TEXT fields? I know there is a Perl
module capable of doing complex searches, but I would 
like to use (if exists...)some Zope
facility.

Regards,

Rogerio Atem
---
E-mail enviado pelo servidor do CEFETCampos

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

2000-06-16 Thread Fabio Akita

Hello again. More problems to be solved :)

Now I've been trying some exotic things:) The tests are still going on in a
NT machine.

Here's what I'd like to do : I have installed Apache for NT (yes, I know it's
still beta but I am waiting for a new Linux server that will be here in a few
days :) on default port 80. I also configured IIS to be on port 8090 and ZServer
to be on it's default port 8080.

I'd like to do the following things using the Rewrite module : Point zope.server.com
to www.server.com:8080 and point iis.server.com to www.server.com:8090. I tried
things like these:

RewriteCond %{HTTP_HOST}^zope\.server\.com
RewriteRule ^(.*)   http://zope.server.com:8080$1 [R]

But if I do this the user will see http://zope.server.com:8080/page.htm written
in his's browser instead of http://zope.server.com/page.htm, which I'd prefer.


I am trying to ally this to the Proxy Reverse module to accomplish this result
(and I wouldn't like to use the pcgi version of Zope, I prefer to try ZServer).
The ProxyPass alone do part of the job, when Zope has the Site Access Product,
but cannot accomplish all of these goals.

The other thing is that I'd like to add the static cache feature of the Rewrite
module. Something as the following example:

RewriteCond %{REQUEST_FILENAME}   !-s
RewriteRule ^page\.html$  page.cgi   [T=application/x-httpd-cgi,L]

I'll use the pcgi version if there's no other way and I still want the URL hidding
feature (zope.server.com instead of www.server.com:8080). If all these really
work fine maybe the Apache could be a better alternative to Squid, mainly because
of it's well known robustness, flexibility and log accuracy.

Maybe some of the things I am trying to do will be impossible, but it's exciting
trying to do such things :) If someone know some of these features (mainly,
I'd like to know more about the static cache feature and Rewrite+ProxyPass modules).
And the NT machine is still just for tests, so maybe the Linux version of Apache
can give me more flexibility as I am already used to it.

Thanks.

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

2000-06-16 Thread Jon Brisbin

Has anyone attempted a python-based SMTP server that creates a Zope object
immediately upon recieveing email???

If not, how do you handle email in zope for a web-based system??  just
periodically create objects from the contents of /var/spool/mail/user ... or
use some other method??  ideally, the object's various properties would be
set upon instantiation...stuff like header fields would correspond to
properties...etc...

For those that handle email in Zope, how do you approach this??

thanks!!

Jon Brisbin
jbrisbin.net



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




Re: [Zope] Products vs. ZClasses- Design Question

2000-06-16 Thread Jeff K. Hoffman

On Fri, 16 Jun 2000, Garrin Kimmell wrote:

 Hello,
 

[snip]

 I've thought of three ways to develop the class:
 
 1. Develop the entire class as a Zope product in Python.
 
 The advantage I see here is that developing the application logic is
 fairly straightforward with Python. I see problems, though, with the
 user interface, especially if I want to make changes to it after
 instantiating a few objects. It is my understanding that objects created
 from a Product are not automatically updated when changes are made to
 the class methods (as opposed to ZClasses, where they are). Am I correct
 here?

The user interface for a Python Product is generally specified in .dtml
files distributed with the Product. If you change one of these .dtml
files, all you have to do is restart Zope and you will see the changes.
Whether you have created one instance, or one hundred instances, they will
all change their interface.

What will *not* change (without a little help from you, described below)
are the attributes that have been added or removed from the class. In this
case, new instances will be configured with the new attributes, while old,
previously instantiated instances will retain their old attribute
configuration.

To migrate your existing instances to the new configuration, you need to
write a __setstate__() method in your class, for example (untested):

class MyPersistentClass(Persistent):

  def __setstate__(self):
  Persistent.__setstate__(self, state)
  if not hasattr(self, 'newAttr'):
  self.newAttr = newValue
  if hasattr(self, 'deprecatedAttr'):
  del self.deprecatedAttr

Each time the object's state is loaded from the ZODB, this method will be
invoked. If a previously instantiated instance of your object is loaded,
and does not contain an attribute called newAttr, it will be created.
Likewise, if it contains an attribute called deprecatedAttr, it will be
removed.

ZClasses provide no such facility. You cannot upgrade ZClass instance
attributes automatically, as far as I know. You'd have to write a script
to go through your ZODB and upgrade the old instances manually. Boo.

 2. Develop the entire class as a ZClass
 
 The principal advantage I see is that changes to the class
 methods are dynamically updated in all instances of that ZClass. The
 problem is that DTML is (for me, at least) a pain in the ass to write any
 complicated application logic with.

As explained above, this advantage is shared by Python Products also. You
do *not* want to write application logic with DTML. At a minimum, use
Python Methods. Otherwise, use Python.

 3. Develop the application logic as a Product in Python, then use that
 class as a mix-in class for a ZClass that implements UI logic with dtml
 methods. 
 
 This seems to be the best solution (even if it is the most work). I should
 get the advantage of having ZClass instances automatically update changes
 to ZClass methods, while having the programability of Python for 
 application logic in the Product. If I do take this route, are there any
 quirks I should be aware of when inheriting a ZClass from a product?

This is a good way to go, and provides a nice advantage over vanilla
Python Products: You do not have to restart Zope to see changes to your
UI.

However, you cannot reparent a ZClass after it has been created. Well, you
can, but no one is very happy with the ways you have to do it. So, if you
are a fly by the seat of your pants kind of coder, don't do it. If you do
all of your analysis up front, and will know in advance exactly which
classes your ZClass will inherit from, go for it. But, should you miss
something in your analysis, you will have to reparent your ZClass and
endure the pain involved with that process.

 I am new to Zope and would appreciate any insight into the tradeoffs
 among these three strategies. 

In summation, Python Products are, by far, the most flexible solution. You
can upgrade them. You can write all of your logic in Python. You write 
your UI in DTML. You can manage all of this using CVS (or the version
control system of your choice). Good stuff.

Using ZClasses for your UI can allow you to see updates to your UI in
realtime without having to restart Zope. In addition, ZClasses make your
UI accessible to people who do not have access to the filesystem of your
Zope server. You cannot easily use CVS with ZClasses, since they are
stored in the ZODB and not the filesystem.

Hope this helps!

 Thank you,
 Garrin

--Jeff

---
Jeff K. Hoffman   704.849.0731 x108
Chief Technology Officer  mailto:[EMAIL PROTECTED]
Going Virtual, L.L.C. http://www.goingv.com/


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

Re: [Zope] WebServers with Exotic Features

2000-06-16 Thread Fabio Akita

Hello once again (sorry for bothering so much)

I've found the solution for part of the question I wrote some minutes ago :)


RewriteCond %{HTTP_HOST}^zope\.server\.com\.br
RewriteRule ^(.*)   /zope$1 [P,R]

RewriteCond %{HTTP_HOST}^iis\.server\.com\.br
RewriteRule ^(.*)   /iis$1 [P,R]

ProxyPass /zope/ http://www.server.com.br:8080/
ProxyPassReverse /zope/ http://www.server.com.br:8080/

ProxyPass /iis/ http://www.server.com.br:8060/
ProxyPassReverse /zope/ http://www.server.com.br:8060/

That did the job of the correct URL reassignment between apache/IIS/ZServer.


But the Proxy Static Cache issue still continue. I did not understand very well
the explanation given in the Apache WebSite 
(http://www.apache.org/docs/misc/rewriteguide.html)
under the section "On-the-fly Content-Regeneration", which gives the following
example:

RewriteCond %{REQUEST_FILENAME}   !-s
RewriteRule ^page\.html$  page.cgi   [T=application/x-httpd-cgi,L]

What this means? Maybe that for each static page.htm that I want I need a separate
page.cgi? Is this only cgi-compliant? Can it be linked with the Proxy? Or maybe
I am completely wrong and the Proxy alone is able to do the Static Cache I need?
Just to be more specific: I will have content that will change only on a daily
basis, so I do not want the ZServer to dinamically generate the same page all
day long. If the Rewrite or the Proxy modules could handle the cache of the
page it will be very handy as I will not have to use Squid and can stay with
the Apache alone.

Regards

Hello again. More problems to be solved :)

Now I've been trying some exotic things:) The tests are still going on in a

NT machine.

Here's what I'd like to do : I have installed Apache for NT (yes, I know it's

still beta but I am waiting for a new Linux server that will be here in a few

days :) on default port 80. I also configured IIS to be on port 8090 and ZServer

to be on it's default port 8080.

I'd like to do the following things using the Rewrite module : Point zope.server.com

to www.server.com:8080 and point iis.server.com to www.server.com:8090. I tried

things like these:

RewriteCond %{HTTP_HOST}   ^zope\.server\.com
RewriteRule ^(.*)  http://zope.server.com:8080$1 [R]

But if I do this the user will see http://zope.server.com:8080/page.htm written

in his's browser instead of http://zope.server.com/page.htm, which I'd prefer.



I am trying to ally this to the Proxy Reverse module to accomplish this result

(and I wouldn't like to use the pcgi version of Zope, I prefer to try ZServer).

The ProxyPass alone do part of the job, when Zope has the Site Access Product,

but cannot accomplish all of these goals.

The other thing is that I'd like to add the static cache feature of the Rewrite

module. Something as the following example:

RewriteCond %{REQUEST_FILENAME}   !-s
RewriteRule ^page\.html$  page.cgi   [T=application/x-httpd-cgi,L]


I'll use the pcgi version if there's no other way and I still want the URL
hidding
feature (zope.server.com instead of www.server.com:8080). If all these really

work fine maybe the Apache could be a better alternative to Squid, mainly because

of it's well known robustness, flexibility and log accuracy.

Maybe some of the things I am trying to do will be impossible, but it's exciting

trying to do such things :) If someone know some of these features (mainly,

I'd like to know more about the static cache feature and Rewrite+ProxyPass
modules).
And the NT machine is still just for tests, so maybe the Linux version of Apache

can give me more flexibility as I am already used to it.

Thanks.

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

2000-06-16 Thread Charlie Derr

Jeff wrote:

~ As explained above, this advantage is shared by Python Products also. You
~ do *not* want to write application logic with DTML. At a minimum, use
~ Python Methods. Otherwise, use Python.
~


Let me apologize in advance because i think this is going to turn out to be
a really stupid question.  I'm never gonna know the answer if i don't ask it
though. :-\

I've seen this mentioned a lot (advice not to write application logic in
DTML).  If one wants to use pure python (and not Products and not external
methods) to create complex actions/relationships, then where does one place
this code?  Obviously i can litter my DTML with python expressions, but this
seems to be what is being  recommended against strongly.  Is there a way to
use python "correctly" without writing a product and without encapsulating
it in an external method?

tesmia,
~c


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

2000-06-16 Thread Evan Simpson

Finally, SiteAccess 2 for use with Zope 2.2b1 and up is ready.

http://www.zope.org/Members/4am/SiteAccess2

Cheers,

Evan @ digicool  4-am


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




[Zope] Re: get fssession value

2000-06-16 Thread Hung Jung Lu

--- In [EMAIL PROTECTED], "Richard Bartels" [EMAIL PROTECTED] wrote:
dtml-call "FSSession['username'].update(REQUEST.form)"
... I get {'username':'something'}

Try:

  dtml-call "FSSession.update(REQUEST.form)"

regards,

Hung Jung


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


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




[Zope] Newbie query, localhost:8080 doesnt work!!

2000-06-16 Thread Rajil Saraswat

Hi ,
 I have just installed zope on linux-mandrake . The Zserver is running
but when i point the browser to localhost:8080, nothing comes up. Do i
need to configure something else. 
Is there any guide online which gives step by step information on setting
up zope of Linux/Unix
Please help it is urgent.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   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 query, localhost:8080 doesnt work!!

2000-06-16 Thread Chris McDonough

See
http://www.zope.org/Members/mcdonc/HowTos/zopeinstall/ZOPE-INSTALL-HOWTO

 -Original Message-
 From: Rajil Saraswat [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 16, 2000 7:57 PM
 To: [EMAIL PROTECTED]
 Subject: [Zope] Newbie query, localhost:8080 doesnt work!!
 
 
 Hi ,
  I have just installed zope on linux-mandrake . The Zserver is running
 but when i point the browser to localhost:8080, nothing comes up. Do i
 need to configure something else. 
 Is there any guide online which gives step by step 
 information on setting
 up zope of Linux/Unix
 Please help it is urgent.
 
 
 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   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] ZClass-within-a-ZClass not in subobjects list?

2000-06-16 Thread Matt Behrens

No matter what I do, I can't seem to make a ZClass a subobject of
another ZClass. I'm really not sure what I'm missing. Here's what
I've done:

1.  Created a new product: WhiteboardProduct.

2.  Created a ZClass within that product that inherits from
ObjectManager: Whiteboard. Allowed Zope to create all the
methods.

3.  On Whiteboard's method page, created another ZClass that doesn't
inherit from anything: WhiteboardItem.

If the documentation (ZDG) is to be believed, at this point I would
have a subobject visible in Whiteboard's subobject list. (It is not
so.) If I instantiate Whiteboard, I do not get a drop-down list of
items. Oddly enough, if I select a random item (say, Folder) on
Whiteboard's subobjects list, I now get a drop-down list of items
in my instance that does have WhiteboardItem as a choice (of course,
its meta type, not ``WhiteboardItem'').

What am I doing wrong here?  This is a 2.1.6 installation that I'm
playing around on, btw.

-- 
Matt Behrens [EMAIL PROTECTED]
Owner/Administrator, zigg.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] Re: [Zope-dev] Zope ...2.1.7 update - patch for EMarket 0.1.03

2000-06-16 Thread Steve Spicklemire


Hi Adam,

I looked at your patch...

*** EMarket.py.orig Thu Jun 01 00:06:01 2000
--- EMarket.py  Fri Jun 16 02:56:35 2000
***
*** 258,265 
  newMainF.transactionFolder = newTransF
  
  Products.MailHost.MailHost.add(newMainF, 'eMarketMailhost',
!smtp_host = smtp_host,
!localhost = localhost)
  
  theMailHost = getattr(newMainF,'eMarketMailhost')  ### TODO... change documents 
that send mail to be proxies for Manager
  
--- 258,264 
  newMainF.transactionFolder = newTransF
  
  Products.MailHost.MailHost.add(newMainF, 'eMarketMailhost',
!smtp_host = smtp_host)
  
  theMailHost = getattr(newMainF,'eMarketMailhost')  ### TODO... change documents 
that send mail to be proxies for Manager
  

Looking at the source, it's not clear what was broken by the localhost
line in the factory. so what was the error that prompted the patch?

thanks!
-steve


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

2000-06-16 Thread Brian Lloyd

Hi guys,

First of all, I'd like to apologize for the pain factor here - 
there has been some CM process changes around here and the 
2.1.x branch is suffering as a result :(

I have a proposal, however, that I hope will make this much 
easier. How about if we:

  o release a "Product" today that, if you install it and 
restart your Zope (no matter what version), patches the 
hole at runtime (in memory change only).

  o retract the 2.1.7 release in favor of getting 2.2 beta 2 
out on Monday, which doesn't have the cruft problem of 
the 2.1.x branch and contains all fixes to date (and 
which will fix SQLMethod problems and support the SiteAccess
release that Evan is making today).


I can have the new "hotfix" product ready by 12:00pm EST today.


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] Re: Zope 2.1.5/6/7 upgrading issues

2000-06-16 Thread Oleg Broytmann

Hi!

   My vote is here:

On Fri, 16 Jun 2000, Brian Lloyd wrote:
   o retract the 2.1.7 release in favor of getting 2.2 beta 2 
 out on Monday, which doesn't have the cruft problem of 
 the 2.1.x branch and contains all fixes to date (and 
 which will fix SQLMethod problems and support the SiteAccess
 release that Evan is making today).

   I am not running any production servers (yet), so I better will start to
experiment with new Zope, rather than patching old one.
   Other people esp. those who run prod. servers free to have different
opinions :)

Oleg.(All opinions are mine and not of my employer)
 
Oleg Broytmann  Foundation for Effective Policies  [EMAIL PROTECTED]
   Programmers don't die, they just GOSUB without RETURN.


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




[Zope] (no subject)

2000-06-16 Thread Ron Bickers

Howdy all,

I discovered something bizarre that happens in my 2.1.4 and 2.2b1
installations.

I have a ZClass based on ObjectManager.  In an instance of the ZClass, I can
"Add" most of the available objects (DTML Documents, DTML Methods, User
Folder, MailHost to name a few).  However, for at least two items (TinyTable
and ZMySQL DB Connection), when I add them, they show up in the container
folder, not in the ZClass instance.  Then, if I check it to delete it, it
gives a "does not exist" error.  Upon refreshing the container folder, the
item still shows, but then I *can* delete it.  Equally interesting is that I
can Copy the item from the container folder and successfully Paste it into
the ZClass instance.  However, since ZMySQL DB Connections don't support
Copy/Paste, that won't work.

What's going on?  Is it a problem with my ZClass, the Product manage_add, or
Zope?  Or me?

___

Ron Bickers
Logic Etc, Inc.
[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] Problem with adding items to ZClass instance

2000-06-16 Thread Ron Bickers

[Doh... I don't read messages without subjects. Here 'tis again. Sorry.]

Howdy all,

I discovered something bizarre that happens in my 2.1.4 and 2.2b1
installations.

I have a ZClass based on ObjectManager.  In an instance of the ZClass, I can
"Add" most of the available objects (DTML Documents, DTML Methods, User
Folder, MailHost to name a few).  However, for at least two items (TinyTable
and ZMySQL DB Connection), when I add them, they show up in the container
folder, not in the ZClass instance.  Then, if I check it to delete it, it
gives a "does not exist" error.  Upon refreshing the container folder, the
item still shows, but then I *can* delete it.  Equally interesting is that I
can Copy the item from the container folder and successfully Paste it into
the ZClass instance.  However, since ZMySQL DB Connections don't support
Copy/Paste, that won't work.

What's going on?  Is it a problem with my ZClass, the Product manage_add, or
Zope?  Or me?

___

Ron Bickers
Logic Etc, Inc.
[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] Updated security alert

2000-06-16 Thread Brian Lloyd

Hi all -

I've updated the security alert (below). Short story: a new 
"hotfix product" is available on zope.org that will work for 
all 2.0+ Zopes and has no side effects or upgrade implications 
for Zope installations. This feels like a much better model for 
things like this, especially for production sites.





We have recently become aware of an important security issue 
that affects all released Zope versions including the recent 
2.2 beta 1 release.

The issue involves an inadequately protected method in one of 
the base classes in the DocumentTemplate package that could allow 
the contents of DTMLDocuments or DTMLMethods to be changed 
remotely or through DTML code without forcing proper user 
authorization. 

A hotfix for this issue in the form of an add-on Zope product has 
been made available on zope.org. To install the hotfix, simply 
download and install the package as you would any other Zope add-on 
product (extract it in the root of your Zope installation). Remember 
to restart your Zope installation for the hotfix to take effect.

http://www.zope.org/Products/Zope/Hotfix_06_16_2000/Hotfix_06_16_2000.tg
z

The hotfix will work for all versions of Zope 2.0 and higher, 
including the recent 2.2 alpha and beta releases. The forthcoming 
Zope 2.2 beta 2 release will contain a fix for this issue, and you 
be able to uninstall the hot fix after upgrading to 2.2. (though 
nothing bad will happen if you don't uninstall it).

Note that the 2.1.7 release that was initially made to address this 
issue has been pulled in favor of this hotfix product, which will 
allow managers of Zope sites to address this issue without worrying 
about other implications of upgrading their installations.

While we know of no instances of this issue being used to exploit a 
site, we *highly* recommend that any Zope site that is accessible by 
untrusted clients install the 06/16/2000 hotfix product immediately.


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 )