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