[Zope-Checkins] SVN: Zope/trunk/ Move to ZODB 3.4a9.

2005-05-12 Thread Tim Peters
Log message for revision 30350:
  Move to ZODB 3.4a9.
  
  Among other things, contains fixes for longstanding
  off-by-1 errors in undoLog() and undoInfo().
  

Changed:
  _U  Zope/trunk/lib/python/
  _U  Zope/trunk/utilities/

-=-

Property changes on: Zope/trunk/lib/python
___
Name: svn:externals
   - zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a3/src/zope
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/ZopeUndo

   + zope   
svn://svn.zope.org/repos/main/Zope3/tags/ZopeX3-3.0.0-Zope-2.8-a3/src/zope
BTrees svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/BTrees
Persistencesvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/Persistence
persistent svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/persistent
ThreadedAsync  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/ThreadedAsync
transactionsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/transaction
ZEOsvn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/ZEO
ZODB   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/ZODB
ZopeUndo   svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/ZopeUndo



Property changes on: Zope/trunk/utilities
___
Name: svn:externals
   - ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a8/src/scripts

   + ZODBTools  svn://svn.zope.org/repos/main/ZODB/tags/3.4.0a9/src/scripts


___
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins


Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Andreas Jung

--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps [EMAIL PROTECTED] 
wrote:

  d = DateTime('2045/30/01')
  d.strftime('%d/%m/%Y')
DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the
range of this Python implementation
I've read that the reason was a validation to avoid int overflows.   I
think this could be fixed using datetime module (new in python 2.3)
instead of old time.localtime
After some testing: datetime has the same problems and it is unlikely that 
we can solve
this problem in Zope as long as the underlying implementation in the libc 
sux (or better is
constrained on 32 bit systems).

-aj

pgpgJg9WCW74N.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Santi Camps
En/na Andreas Jung ha escrit:

--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps 
[EMAIL PROTECTED] wrote:

  d = DateTime('2045/30/01')
  d.strftime('%d/%m/%Y')
DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the
range of this Python implementation
I've read that the reason was a validation to avoid int overflows.   I
think this could be fixed using datetime module (new in python 2.3)
instead of old time.localtime
After some testing: datetime has the same problems and it is unlikely 
that we can solve
this problem in Zope as long as the underlying implementation in the 
libc sux (or better is
constrained on 32 bit systems).

-aj
At least is possible to fix the problem in strftime method.   I attach a 
patch that works for me.   Hope this can be commited.

Santi Camps

Index: lib/python/DateTime/DateTime.py
===
--- lib/python/DateTime/DateTime.py	(revision 30324)
+++ lib/python/DateTime/DateTime.py	(working copy)
@@ -18,6 +18,7 @@
 import re, math,  DateTimeZone
 from time import time, gmtime, localtime
 from time import daylight, timezone, altzone, strftime
+from datetime import datetime
 
 default_datefmt = None
 
@@ -1481,7 +1482,12 @@
 
 def strftime(self, format):
 # Format the date/time using the *current timezone representation*.
-return strftime(format, safelocaltime(self.timeTime()))
+lt = safelocaltime(time())
+ltz = self.localZone(lt)
+zself = self - _tzoffset(self._tz, ltz)/86400.0
+microseconds = int((zself._second - zself._nearsec) * 100)
+return datetime(zself._year, zself._month, zself._day, zself._hour,  
+   zself._minute, int(zself._nearsec), microseconds).strftime(format) 
 
 # General formats from previous DateTime
 def Date(self):
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Andreas Jung

--On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps 
[EMAIL PROTECTED] wrote:

En/na Andreas Jung ha escrit:

--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps
[EMAIL PROTECTED] wrote:
  d = DateTime('2045/30/01')
  d.strftime('%d/%m/%Y')
DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the
range of this Python implementation
I've read that the reason was a validation to avoid int overflows.   I
think this could be fixed using datetime module (new in python 2.3)
instead of old time.localtime
After some testing: datetime has the same problems and it is unlikely
that we can solve
this problem in Zope as long as the underlying implementation in the
libc sux (or better is
constrained on 32 bit systems).
-aj
At least is possible to fix the problem in strftime method.   I attach a
patch that works for me.   Hope this can be commited.

If you provide some unittests then this would make a perfect patch :-)
-aj


pgpo6RG0bY2K7.pgp
Description: PGP signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Santi Camps
En/na Andreas Jung ha escrit:

--On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps 
[EMAIL PROTECTED] wrote:

En/na Andreas Jung ha escrit:

--On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps
[EMAIL PROTECTED] wrote:
  d = DateTime('2045/30/01')
  d.strftime('%d/%m/%Y')
DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the
range of this Python implementation
I've read that the reason was a validation to avoid int overflows.   I
think this could be fixed using datetime module (new in python 2.3)
instead of old time.localtime
After some testing: datetime has the same problems and it is unlikely
that we can solve
this problem in Zope as long as the underlying implementation in the
libc sux (or better is
constrained on 32 bit systems).
-aj

At least is possible to fix the problem in strftime method.   I attach a
patch that works for me.   Hope this can be commited.

If you provide some unittests then this would make a perfect patch :-)
-aj
I'm trying to do it, but one test fails.  I can't understand this behaviour:
 DateTime('2004/01/01')._tz
'GMT+1'
 DateTime('2000/06/16')._tz
'GMT+2'
Why different time zones are assigned ?   I was thinking that the 
machine time zone was always used when not specified

Santi Camps
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] DateTime, strftime and TimeError

2005-05-12 Thread Dieter Maurer
Andreas Jung wrote at 2005-5-12 14:24 +0200:
 ...
After some testing: datetime has the same problems and it is unlikely that 
we can solve
this problem in Zope as long as the underlying implementation in the libc 
sux (or better is
constrained on 32 bit systems).

It would not be too difficult to reimplement strftime
in Python -- especially with the information held in a DateTime.

Maybe an exercise for someone who needs strftime for
dates outside the supported range?


-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] copyzopeskel.py patch

2005-05-12 Thread Dale Hirt
Hi all,

Wonderful product, more than appreciate all the hard work that has been put 
into Zope and all the various products that are out there.

Came across a small issue, and wrote a quick patch for it.  Didn't know who to 
send it to, so I thought I'd send it here.

When creating a new zope instance, using mkzopeinstance.py, and having my files 
under Subversion, copyzopeskel.py also took across my .svn directories.  So I 
created the small patch below to stop that.  Makes it a little more flexible 
for adding in new types, and since you've switched to Subversion anyways, makes 
sense to add it in there.

Again, thanks for your time,

Dale Hirt


Index: copyzopeskel.py
===
--- copyzopeskel.py (revision 30342)
+++ copyzopeskel.py (working copy)
@@ -186,12 +186,12 @@
 print sys.stderr, msg
 sys.exit(1)
 
-CVS = os.path.normcase(CVS)
+CVS_DIRS = [os.path.normcase(CVS), os.path.normcase(.svn)]
 
 def copydir((targetdir, replacements, uid, gid), sourcedir, names):
 # Don't recurse into CVS directories:
 for name in names[:]:
-if os.path.normcase(name) == CVS:
+if os.path.normcase(name) in CVS_DIRS:
 names.remove(name)
 elif os.path.isfile(os.path.join(sourcedir, name)):
 # Copy the file:
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Re: copyzopeskel.py patch

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dale Hirt wrote:

 Wonderful product, more than appreciate all the hard work that has
 been put into Zope and all the various products that are out there.
 
 Came across a small issue, and wrote a quick patch for it. Didn't
 know who to send it to, so I thought I'd send it here.

Next time, you might file a collector issue at:

  http://www.zope.org/Collectors/Zope/

 When creating a new zope instance, using mkzopeinstance.py, and
 having my files under Subversion, copyzopeskel.py also took across my .svn
 directories. So I created the small patch below to stop that. Makes it a
 little more flexible for adding in new types, and since you've switched
 to Subversion anyways, makes sense to add it in there.
 
 Again, thanks for your time,
 
 Dale Hirt
 
 
 Index: copyzopeskel.py
 ===
 --- copyzopeskel.py   (revision 30342)
 +++ copyzopeskel.py   (working copy)
 @@ -186,12 +186,12 @@
  print sys.stderr, msg
  sys.exit(1)
  
 -CVS = os.path.normcase(CVS)
 +CVS_DIRS = [os.path.normcase(CVS), os.path.normcase(.svn)]
  
  def copydir((targetdir, replacements, uid, gid), sourcedir, names):
  # Don't recurse into CVS directories:
  for name in names[:]:
 -if os.path.normcase(name) == CVS:
 +if os.path.normcase(name) in CVS_DIRS:
  names.remove(name)
  elif os.path.isfile(os.path.join(sourcedir, name)):
  # Copy the file:

Thanks for the patch.  I have checked it in for the next release.

Tres.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg7Yu+gerLs4ltQ4RAt1gAJsGpLnVpT884gBe3QVsBfD9mIboAACeOx/y
QcSCnRtE3e67r32TJ5Bl1lU=
=QsNS
-END PGP SIGNATURE-

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


[Zope-dev] Re: DateTime, strftime and TimeError

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Santi Camps wrote:
 En/na Andreas Jung ha escrit:
 


 --On Donnerstag, 12. Mai 2005 18:34 Uhr +0200 Santi Camps
 [EMAIL PROTECTED] wrote:

 En/na Andreas Jung ha escrit:



 --On Mittwoch, 11. Mai 2005 16:08 Uhr +0200 Santi Camps
 [EMAIL PROTECTED] wrote:


   d = DateTime('2045/30/01')
   d.strftime('%d/%m/%Y')
 DateTime.DateTime.TimeError: The time 2369343600.00 is beyond the
 range of this Python implementation

 I've read that the reason was a validation to avoid int overflows.   I
 think this could be fixed using datetime module (new in python 2.3)
 instead of old time.localtime


 After some testing: datetime has the same problems and it is unlikely
 that we can solve
 this problem in Zope as long as the underlying implementation in the
 libc sux (or better is
 constrained on 32 bit systems).

 -aj



 At least is possible to fix the problem in strftime method.   I attach a
 patch that works for me.   Hope this can be commited.



 If you provide some unittests then this would make a perfect patch :-)

 -aj

 I'm trying to do it, but one test fails.  I can't understand this
 behaviour:
 
 DateTime('2004/01/01')._tz
 'GMT+1'
 DateTime('2000/06/16')._tz
 'GMT+2'
 
 Why different time zones are assigned ?   I was thinking that the
 machine time zone was always used when not specified

The local machine's default timezone, including applicable Daylight
Savings / Summer Time rules, is used if no explicit time zone is given.


Tres.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg7aV+gerLs4ltQ4RAofSAJ9XDz+ZcU2BGUQYox34+lS+MgrbhACgobeu
H5PtcCOdS7NF9A1vspN2iMY=
=IYRQ
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Hi all,

I just moved my zope app from 2.7.3 to 2.7.6, plus the mysql db from
5.0.0 to 5.0.4.  After moving everything, I noticed all of my decimal
fields that will no longer display their values in DTML unless I
remove the dollars-and-cents fmt option.

I tried all kinds of things in mysql thinking that was it because I
knew there have been some major changes in that, but I couldnt find
anything there.  I tested a query from the mysql connection test, and
it retrieves the values fine.

Then I noticed, if I remove the fmt=dollars-and-cents, it would
work. Any thoughts on why this is?  Is it a security option on the
folder or other items?

I could just remove all the formatting, but I'd rather not.  Thanks
for any help!
-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to find out the full URL

2005-05-12 Thread Hong Yuan
J Cameron Cooper wrote:
If you simply print the request object, you'll see everything 
available. The CGI environment variables are available: 
http://hoohoo.ncsa.uiuc.edu/cgi/env.html

You can use ACTUAL_URL or URL0 to get the full url+path.
You can use PATH_TRANSLATED or PATH_INFO to get just the path portion.
You can use QUERY_STRING to get the query string.
Thanks for the information. I found out what I need is the variable 
VIRTURL_URL, which includes the complete URL typed into the browser, 
including the traverse_subpath components. Alternatively, I think I can 
use context.REQUEST.URL+'/'.join(context.REQUEST.traverse_subpath).

--
HONG Yuan
Homemaster Trading Co., Ltd.
No. 601, Bldg. 41, 288 Shuangyang Rd. (N)
Shanghai 200433, P.R.C.
Tel: +86 21 55056553
Fax: +86 21 55067325
E-mail: [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: How do I logout using DTML

2005-05-12 Thread Josef Meile
How do I logout current user using DTML
I used dtml-call expr=acl_users.logout(REQUEST) but it didn't work 
and zope gave me this.
 

Site Error
An error was encountered while publishing this resource.
*Error Type: AttributeError*
*Error Value: logout*
**
 
*What did I do wrong??*
You didn't specify which user folder you are using and if, for example,
you use it with CookieCrumbler or other pluggins. If you use
CookieCrumbler, then you can expire the authentication cookies like
this:
dtml-call REQUEST['RESPONSE'].expireCookie('__ac', path='/')
dtml-call REQUEST['RESPONSE'].expireCookie('__ac', path='/')
I think a redirect is also needed, but I'm not sure.
If you aren't using CookieCrumbler, then you can try the method
described here:
http://zdp.zope.org/projects/zfaq/faq/General#973291635
Regards,
Josef
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Can't see new Plone installation

2005-05-12 Thread Brian Hickey



Hi all,

Can't seem to figure this one out:
- Just installed Plone and added a Plone site 
through the ZMI
- After the install the redirect to view the Plone 
site doesn't complete, and I get an 'Action Canceled' error in thebrowser 
(IE6). However, it seems to install fine (a Plone site is created in the 
Zope root with all the usual forms, site error log, cookie crumbler, etc) and I 
can browse through and customise these elements. 
- If I try toview the Plone site 
(mydomain.com:8080/Plone) either directly in the address bar of the browser, or 
by clicking the View tab of my Plone instance,the browserlags for 
about a minute (this varies), then bombs out with an "Action Canceled" or 
a"Page Cannot be Displayed"error. The same effect occurs with Firefox.

Has anyone experienced anything like this 
before? If you need any more info, please let me know.

Thanks for your help,
Brian

PS -Debug info from ZMI:
Zope version: (Zope 2.6.3 (source release, python 
2.1, linux2), python 2.1.3, freebsd4) Python version: 2.1.3 (#1, Aug 14 
2002, 10:53:43) [GCC 2.95.3 20010315 (release) [FreeBSD]] System Platform: 
freebsd4 SOFTWARE_HOME: /usr/local/Zope-2.6.3/lib/python INSTANCE_HOME: 
/usr/local/Zope-2.6.3 CLIENT_HOME: /usr/local/Zope-2.6.3/var Process ID: 
16119 (159627264) Running for: 1 min 25 sec sys.path:  
/usr/local/Zope/lib/python  /usr/local/Zope  /usr/local/Zope 
 /usr/local/lib/python2.1  
/usr/local/lib/python2.1/plat-freebsd4  
/usr/local/lib/python2.1/lib-tk  /usr/local/lib/python2.1/lib-dynload 
 /usr/local/lib/python2.1/site-packages 

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


[Zope] Re: How to find out the full URL

2005-05-12 Thread Tonico Strasser
Hong Yuan schrieb:
I have a page template, say 'products.pt', which takes 
traverse_subpath[0] as one of the variables, so e.g. the URL:
 http://myserver/products/100
will actually call products.pt, which get 100 from the URL and displays 
it in the template.

Now my question is how can I get the full URL from within the tempalte 
'products.pt'? If I use 'request/URL' it will show 
'http://myserver/products' only, with the subpath somehow dropped. How 
can I get the '/100' part back?

Ideally, I'd like to get back the whole URL as entered in the browser as 
a string. From the REQUEST I have to put together URL and QUERY_STRING, 
and the section (#xxx) part of the url can not be found in REQUEST.
Hi, something like this?:
http://webproducer.at/lab/show_url
The script is here:
http://mail.zope.org/pipermail/zope/2004-June/151466.html
HTH
Tonico
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Can't see new Plone installation

2005-05-12 Thread Andreas Jung

--On Donnerstag, 12. Mai 2005 10:29 Uhr +0100 Brian Hickey 
[EMAIL PROTECTED] wrote:

Hi all,
Can't seem to figure this one out:
- Just installed Plone and added a Plone site through the ZMI
- After the install the redirect to view the Plone site doesn't complete,
and I get an 'Action Canceled' error in the browser (IE6).  However, it
seems to install fine (a Plone site is created in the Zope root with all
the usual forms, site error log, cookie crumbler, etc) and I can browse
through and customise these elements.   - If I try to view the Plone site
(mydomain.com:8080/Plone) either directly in the address bar of the
browser, or by clicking the View tab of my Plone instance, the browser
lags for about a minute (this varies), then bombs out with an Action
Canceled or a Page Cannot be Displayed error.  The same effect occurs
You should better use the plone-users mailing lists...you'll find the smart
Plone people there :-)
-aj

pgpXnvlcRk1GD.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How to disable anonymous sessions

2005-05-12 Thread Gaute Amundsen
I thought this must be in the FAQ or something, but 20 min googling does not 
turn up much usefull.

Closest I got was this: http://svn.nuxeo.org/trac/pub/ticket/600

At the moment we have 657 objects in /temp_folder/session_data
and this must be quite a bit of overhead.
We also have over a thousand INFO(0) ZODB conflict error a day, that I 
suspect are related to this.

This should be simple, but I can not spot it :-(

Anyone?

Gaute Amundsen
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Marcin Kasperski

Is it possible to somehow export data from Zope instance and import
into another one preserving somehow bobobase_modification_time info?


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


Re: [Zope] Export/import preserving bobobase_modification_time?

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 12:28, Marcin Kasperski wrote:
Is it possible to somehow export data from Zope instance and import
into another one preserving somehow bobobase_modification_time info?
No it is not.
If you need a time value to store a time you are interested in you  
should create and maintain it yourself in your code.

jens
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] How do I delete acl_users using DTML??

2005-05-12 Thread Allen Huang
How do I delete acl_users using DTML code??
		Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Can't see new Plone installation

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:
 
 
 --On Donnerstag, 12. Mai 2005 10:29 Uhr +0100 Brian Hickey
 [EMAIL PROTECTED] wrote:
 
 Hi all,

 Can't seem to figure this one out:
 - Just installed Plone and added a Plone site through the ZMI
 - After the install the redirect to view the Plone site doesn't complete,
 and I get an 'Action Canceled' error in the browser (IE6).  However, it
 seems to install fine (a Plone site is created in the Zope root with all
 the usual forms, site error log, cookie crumbler, etc) and I can browse
 through and customise these elements.   - If I try to view the Plone site
 (mydomain.com:8080/Plone) either directly in the address bar of the
 browser, or by clicking the View tab of my Plone instance, the browser
 lags for about a minute (this varies), then bombs out with an Action
 Canceled or a Page Cannot be Displayed error.  The same effect occurs
 
 
 You should better use the plone-users mailing lists...you'll find the smart
 Plone people there :-)

Agreed.  Info on those lists is available at http://plone.org/contact.

FWIW, the Mark-One eyeball shows that the OP is running a way
out-of-date Zope / Python;  recent Plone versions are not going to be
compatible with it.  If you are running a Debian installation, then try
installing the zope2.7 package, which will pull in python2.3, as well (I
think).

Tres.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg0H8+gerLs4ltQ4RAgLXAKCtU46dexPnW3qXqp1GqUB+7cYD/gCgjfFQ
gvQgUyEln7sEigAIe6770go=
=wndq
-END PGP SIGNATURE-

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


Re: [Zope] Z SQL Methods and the SQL LIMIT clause

2005-05-12 Thread Garth B.
Assuming MySQL, I found the fix for this was to go the Advanced tab for the ZSQL Method (in the ZMI) and set Maximum Rows to Retrieve to zero.

After that, my limit clause worked without a problem.
On 5/11/05, Asad Habib [EMAIL PROTECTED] wrote:
Is there a reason why Z SQL methods do not allow the use of the LIMITclause? I am absolutely certain that my query has the right syntax since I
executed it against the MySQL server and it gave me the correct results.FYI, I have provided the query below:SELECT course_id FROM courseWHERE course_id  991000ORDER BY course_id DESC LIMIT 1
Furthermore, Zope throws the following error when I try to test this queryvia the ZMI and also when I use it in my application:(1064, You have an error in your SQL syntax; check the manual thatcorresponds to your MySQL server version for the right syntax to use near
'LIMIT 1000' at line 3)Any help would be appreciated. Thank you.- Asad___Zope maillist-Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope** No cross posts or HTML encoding!**(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announcehttp://mail.zope.org/mailman/listinfo/zope-dev )___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Can't see new Plone installation

2005-05-12 Thread Jochen Knuth
Hi Brian,
Brian Hickey wrote:
Hi all,
 
Can't seem to figure this one out:
- Just installed Plone and added a Plone site through the ZMI
- After the install the redirect to view the Plone site doesn't 
complete, and I get an 'Action Canceled' error in the browser (IE6).  
However, it seems to install fine (a Plone site is created in the Zope 
root with all the usual forms, site error log, cookie crumbler, etc) and 
I can browse through and customise these elements. 
- If I try to view the Plone site (mydomain.com:8080/Plone) either 
directly in the address bar of the browser, or by clicking the View tab 
of my Plone instance, the browser lags for about a minute (this varies), 
then bombs out with an Action Canceled or a Page Cannot be 
Displayed error.  The same effect occurs with Firefox.
 
Has anyone experienced anything like this before?  If you need any more 
info, please let me know.
 
Thanks for your help,
Brian
 
PS - Debug info from ZMI:
Zope version: (Zope 2.6.3 (source release, python 2.1, linux2), python 
2.1.3, freebsd4)
Python version: 2.1.3 (#1, Aug 14 2002, 10:53:43) [GCC 2.95.3 20010315 
(release) [FreeBSD]]
System Platform: freebsd4
Have you installed python via the Ports-System? An old Problem (as in 
solved with newer versions of the python-port since i think 2003) for 
errors with Plone on FreeBSD, is that python has to be compiled with a 
bigger stacksize. In the actual port version of Python 2.1 
(python-2.1.3_7) this is fixed.
So first update the Ports-System and then update the python port.


SOFTWARE_HOME: /usr/local/Zope-2.6.3/lib/python
INSTANCE_HOME: /usr/local/Zope-2.6.3
CLIENT_HOME: /usr/local/Zope-2.6.3/var
Process ID: 16119 (159627264)
Running for: 1 min 25 sec
sys.path:
  /usr/local/Zope/lib/python
  /usr/local/Zope
  /usr/local/Zope
  /usr/local/lib/python2.1
  /usr/local/lib/python2.1/plat-freebsd4
  /usr/local/lib/python2.1/lib-tk
  /usr/local/lib/python2.1/lib-dynload
  /usr/local/lib/python2.1/site-packages

Ciao,
Jochen
--
--
Jochen Knuth  WebMaster http://www.ipro.de
IPRO GmbH Phone ++49-7152-93330
Steinbeisstr. 6   Fax ++49-7152-933340
71229 LeonbergEMail: [EMAIL PROTECTED]
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Re: Can't see new Plone installation

2005-05-12 Thread Brian Hickey
Hi Jochen,

Thanks for the info.  This is a strange one - it's a little awkward to find
out what's going on, as it's a shared hosting facility with some kind of
virtual private server setup on it.  There seems to be two versions of
python - 2.3.4 and 2.1.3.  The 2.1.3 was installed when I installed
Zope-2.6.3.  However, if I call python from the command line, I get 2.3.4.
How do I go about updating the version of python that Zope is using?  In
your experience, do you reckon that will solve the issue?

Thanks,
Brian

- Original Message - 
From: Jochen Knuth [EMAIL PROTECTED]
To: zope@zope.org
Sent: Thursday, May 12, 2005 2:27 PM
Subject: [Zope] Re: Can't see new Plone installation


 Hi Brian,

 Brian Hickey wrote:
  Hi all,
 
  Can't seem to figure this one out:
  - Just installed Plone and added a Plone site through the ZMI
  - After the install the redirect to view the Plone site doesn't
  complete, and I get an 'Action Canceled' error in the browser (IE6).
  However, it seems to install fine (a Plone site is created in the Zope
  root with all the usual forms, site error log, cookie crumbler, etc) and
  I can browse through and customise these elements.
  - If I try to view the Plone site (mydomain.com:8080/Plone) either
  directly in the address bar of the browser, or by clicking the View tab
  of my Plone instance, the browser lags for about a minute (this varies),
  then bombs out with an Action Canceled or a Page Cannot be
  Displayed error.  The same effect occurs with Firefox.
 
  Has anyone experienced anything like this before?  If you need any more
  info, please let me know.
 
  Thanks for your help,
  Brian
 
  PS - Debug info from ZMI:
  Zope version: (Zope 2.6.3 (source release, python 2.1, linux2), python
  2.1.3, freebsd4)
  Python version: 2.1.3 (#1, Aug 14 2002, 10:53:43) [GCC 2.95.3 20010315
  (release) [FreeBSD]]
  System Platform: freebsd4

 Have you installed python via the Ports-System? An old Problem (as in
 solved with newer versions of the python-port since i think 2003) for
 errors with Plone on FreeBSD, is that python has to be compiled with a
 bigger stacksize. In the actual port version of Python 2.1
 (python-2.1.3_7) this is fixed.
 So first update the Ports-System and then update the python port.


  SOFTWARE_HOME: /usr/local/Zope-2.6.3/lib/python
  INSTANCE_HOME: /usr/local/Zope-2.6.3
  CLIENT_HOME: /usr/local/Zope-2.6.3/var
  Process ID: 16119 (159627264)
  Running for: 1 min 25 sec
  sys.path:
/usr/local/Zope/lib/python
/usr/local/Zope
/usr/local/Zope
/usr/local/lib/python2.1
/usr/local/lib/python2.1/plat-freebsd4
/usr/local/lib/python2.1/lib-tk
/usr/local/lib/python2.1/lib-dynload
/usr/local/lib/python2.1/site-packages
 
 

 Ciao,
 Jochen
 -- 
 --
 Jochen Knuth  WebMaster http://www.ipro.de
 IPRO GmbH Phone ++49-7152-93330
 Steinbeisstr. 6   Fax ++49-7152-933340
 71229 LeonbergEMail: [EMAIL PROTECTED]

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

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


[Zope] URL rewriting (VHM and browser Id manager)

2005-05-12 Thread Victor Kolisinski
My zope application needs support for sessions without
cookies, 
so url rewriting based on Browser Id manager is used. 
However when Virtual Host Monster is included in
environment browser manager doesn't rewrite URL.
Is it possible that Virtual Host Monster and Browser
Id.
My installation is based on ZServer without Apache. 



Thanks in advance!



Yahoo! Mail
Stay connected, organized, and protected. Take the tour:
http://tour.mail.yahoo.com/mailtour.html

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


RE: [Zope] Underscoring Inaugural Address

2005-05-12 Thread Dan Pozmanter
Is sort of do, since the final object is a wrapper around a unique path.

What about messing aroound with the url?

Is there a way to have it show:

http://foo.com/__init__.py

But really point to

http://foo.com/supercoolfileat__init__.py

?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Paul Winkler
Sent: Wednesday, May 11, 2005 3:56 PM
To: zope@zope.org
Subject: Re: [Zope] Underscoring Inaugural Address

On Wed, May 11, 2005 at 03:50:00PM -0400, Dan Pozmanter wrote:
 Ugh.  I suppose I could ignore the '_' bit (and override 
 BaseRequest.traverse), but the problems are:
 1.  Keeping this thing synced with Zope.
 2.  Accessing the object being traversed to to ensure it is of the 
 correct type.
 
 There is no other way to do this?

Do you have to use URL traversal to reach the final object?
There's no such restriction on query parameters.

http://foo.com/get_file?name=__init__.py

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ZODB caching issue

2005-05-12 Thread David Chandek-Stark
Setup:
  Zope 2.7.0
  Python 2.3.3
  Linux2
  CMF 1.4.4
Problem Area:
  ZPT which contains a call to a ZPT macro
  The ZPT macro gets data from a parsed RSS feed
  Now using CMFSin 0.6.1
  Previously used RDFSummary 2.4
Symptom:
  When a new item is added to the RSS feed (b/c a news item was 
published), my ZPT displays the RSS data inconsistently with each 
browser refresh -- sometimes the new item appears, sometimes not.

At first I thought this was a problem with the RDFSummary product, but I 
have the same issue with CMFSin. Finally, I at least discovered 
something that fixes the problem: flushing the ZODB cache. Obviously, 
I don't want to flush the ZODB cache every time my news feed is updated. 
Is this a known problem that has been resolved in later versions of Zope 
2.7/CMF? Since it's not technically an error, I don't have a traceback.

Thanks for any help,
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Underscoring Inaugural Address

2005-05-12 Thread Paul Winkler
On Thu, May 12, 2005 at 10:52:03AM -0400, Dan Pozmanter wrote:
 Is sort of do, since the final object is a wrapper around a unique path.
 
 What about messing aroound with the url?
 
 Is there a way to have it show:
 
 http://foo.com/__init__.py
 
 But really point to
 
 http://foo.com/supercoolfileat__init__.py
 ?

I don't know of an easy way to do that in zope alone, since the
names beginning with underscore are blocked at a pretty low level
(in ZPublisher).

But, if you have e.g. apache in front, that could be easily done
with a rewrite rule.

-- 

Paul Winkler
http://www.slinkp.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] ack! Zope stopped starting as a Windows Service

2005-05-12 Thread Chris Curvey
Everything was going so well today, too



Zope was installed as part of the Plone 2 installer on Win2K. Has been running fine for several months.



I was adding some issues to my collector, and things started hanging up
on my system. After reboot, the Zope service did not start,
trying to start it manually through the service manager gives



could not start the zope instance at c:\program files\Plone2\Data
service on Local Computer. The service did not return an error.
There could be an internal windows error or an internal service
error.



the last three messages in the error log are:



total failure getting the folderlisting action for the folder

http://compaq.antiques:8080/Knowledgebase/tech/collector.2005-01-07.332951554




trying to restart the server via the service manager does not create a

new event log.



I can start Zope manually via runzope.bat, and it will work, though it gives me this error:



C:\Program Files\Plone 2\Zope\lib\python\Zope\Startup
\run.py -C C:\Program Fil
es\Plone 2\Data\etc\zope.conf
Traceback (most recent call last):
 File C:\Program Files\Plone 2\Zope\lib\python\Products\CMFBoard\Forum.py, li
ne 34, in ?
 from ForumMailReceiver import MailReceiver
 File C:\Program Files\Plone 2\Zope\lib\python\Products\CMFBoard\ForumMailRece
iver.py, line 22, in ?
 from Products.PortalTransport.interfaces.mailreceiver import IMailReceiver
ImportError: No module named PortalTransport.interfaces.mailreceiver
Traceback (most recent call last):
 File C:\Program Files\Plone 2\Zope\lib\python\Products\CMFBoard\Forum.py, li
ne 41, in ?
 from Subscribeable import Subscribeable
 File C:\Program Files\Plone 2\Zope\lib\python\Products\CMFBoard\Subscribeable
.py, line 18, in ?
 from Products.PortalTransport.SubscribeableMember import SubscribeableMember

ImportError: No module named PortalTransport.SubscribeableMember

Help! I was using that Zope instance as a spare brain, and my
last backup is[expletive deleted]... too old to be useful.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Zope developers needed in Vietnam

2005-05-12 Thread Tracy R Reed
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Anyone here Vietnamese or know anyone in Vietnam who develops for
zope/plone? My company really needs someone. No, we aren't going to
outsource or contract with your company so please don't ask. They have
to be our full time employees here in our office.

I will pay a referral bonus to anyone who sends me Vietnamese zope
developer that gets hired and works successfullly for two months also.

Need an experienced Linux person too.

Outsource to Vietnam, it's cheap there! Send Tracy to manage it! my
boss said.

He's Vietnamese, he should know what he's talking about I thought.

Well here I am in Ho Chi Minh City for nearly three months and it turns
out barely anyone here speaks english much less knows anything about
computers!  Don't tell me I'm fsck'd, I've already heard it. I figure if
I can somehow overcome this challenge it will be quite the feather in my
cap! :)

- --
Tracy R Reed
http://ultraviolet.org
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg6HR9PIYKZYVAq0RAhkmAJ4qTm0x152zAYIaPSnnU7KhB7XwlgCgmWxJ
6HTKiQ+88mzlJf2gz0Mw10c=
=v2rt
-END PGP SIGNATURE-
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] monitor / icp server

2005-05-12 Thread Dieter Maurer
Sylvain Thénault wrote at 2005-5-11 18:03 +0200:
 ...
warning: unhandled connect event

This is a medusa/asyncore message
indicating a bug: no application specific connect method
was defined for the asynchronous connect event.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How do I delete acl_users using DTML??

2005-05-12 Thread Dieter Maurer
Allen Huang wrote at 2005-5-12 04:28 -0700:
How do I delete acl_users using DTML code??

In the same way, you delete any other (site building) object:

   container.manage_deleteObjects(ids_of_objects_to_delete)

ids_of_objects_to_delete can be either a single id (a string)
or a list of ids.


-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Running out of sockets

2005-05-12 Thread Dieter Maurer
Gaute Amundsen wrote at 2005-5-12 00:17 +0200:
 ...
Restarting zope has fixed it for now, but 
 ...
lsof -a -U -uzope and lsof -uzope | wc -l
Shows the number of open sockets steadily growing, 
and apparently none closing..

You might be able to determine the second partner for the socket
(with netstat, I think). This may give you a hint
for what purpose the sockets are used.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] How to disable anonymous sessions

2005-05-12 Thread Dieter Maurer
Gaute Amundsen wrote at 2005-5-12 12:15 +0200:
 ...
At the moment we have 657 objects in /temp_folder/session_data
and this must be quite a bit of overhead.

Sessions are created on demand.
When you do not use them, they are not created.

That you see sessions means that you application code
uses them.

When you would disable them (you probably could do that
with a customized SessionDataManager), you would get an
exception at the place where you access the session.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] URL rewriting (VHM and browser Id manager)

2005-05-12 Thread Dieter Maurer
Victor Kolisinski wrote at 2005-5-12 07:13 -0700:
My zope application needs support for sessions without
cookies, 
so url rewriting based on Browser Id manager is used. 
However when Virtual Host Monster is included in
environment browser manager doesn't rewrite URL.

That's surprising.

Maybe a conflict for the __before_publishing_traverse__ hook
used by both features (such that VHM discards the information
previously set by the BIM).

In principle, the BeforeTraverse dispatcher (code
in ZPublisher.BeforeTraverse) has a
priority feature to control such conflicts.
But, probably it is not used.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: ZODB caching issue

2005-05-12 Thread David Chandek-Stark
Dieter Maurer wrote:
Symptom:
 When a new item is added to the RSS feed (b/c a news item was 
published), my ZPT displays the RSS data inconsistently with each 
browser refresh -- sometimes the new item appears, sometimes not.

A bug in RDFSummary which uses a ZODB cache to maintain
the fetched items.
Unfortunately, each connection has its own independent ZODB cache
Using a ZODB cache for this use case is both inefficient
and error prone.
You should contact the RDFSummary authors.
As mentioned in the original post, I am now using CMFSin and having the 
smae problem. Are you saying that this is an issue with the design of 
the product?

Thanks,
David
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Re: Strage behavior in Scripts

2005-05-12 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Luiz Fernando B. Ribeiro wrote:
 Hello,
 
 I have lost already 2 days in it and can't figure whats wrong.
 I'm using PIL to generate barcodes and writen an external method to
 handle this. The script runs fine in the console but inside Zope it
 raises exceptions in PIL files. I decided to write an external script
 and call it with sys.system from the external method but again it raises
 exceptions similar to the other but in other files. What can it bee?
 
 Traceback (most recent call last):
   File /engenho/bin/codigo_barra.py, line 89, in ?
 barra.save(arquivo)
   File /usr/lib/python2.3/site-packages/PIL/Image.py, line 1127, in save
 preinit()
   File /usr/lib/python2.3/site-packages/PIL/Image.py, line 243, in
 preinit
 __import__(%sImagePlugin % m, globals(), locals(), [])
   File /usr/lib/python2.3/site-packages/PIL/GifImagePlugin.py, line
 53, in ?
 class GifImageFile(ImageFile.ImageFile):
 AttributeError: 'module' object has no attribute 'ImageFile'
 
 I'm using zope 2.7 from Debian sarge.

This is an ancient name-collision problem between PIL and Zope.  E.g.,
see http://mail.python.org/pipermail/image-sig/1999-August/000809.html
or http://aspn.activestate.com/ASPN/Mail/Message/zope-list/2290857.

Tres.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCg7LK+gerLs4ltQ4RApBcAJ91EYmzDi4mhvvLAseCwF5HNu5r6wCfXKfX
zK6dTXoyciaEYj+lfB+85+8=
=wJJz
-END PGP SIGNATURE-

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


Re: [Zope] ack! Zope stopped starting as a Windows Service

2005-05-12 Thread J Cameron Cooper
Chris Curvey wrote:
Everything was going so well today, too
Zope was installed as part of the Plone 2 installer on Win2K.  Has been 
running fine for several months.

I was adding some issues to my collector, and things started hanging up 
on my system.  After reboot, the Zope service did not start, trying to 
start it manually through the service manager gives

could not start the zope instance at c:\program files\Plone2\Data 
service on Local Computer.  The service did not return an error.  There 
could be an internal windows error or an internal service error.

the last three messages in the error log are:
total failure getting the folderlisting action for the folder
http://compaq.antiques:8080/Knowledgebase/tech/collector.2005-01-07.332951554 
http://compaq.antiques:8080/Knowledgebase/tech/collector.2005-01-07.332951554

trying to restart the server via the service manager does not create a
new event log.
I can start Zope manually via runzope.bat, and it will work, though it 
gives me this error:

C:\Program Files\Plone 2\Zope\lib\python\Zope\Startup
\run.py -C C:\Program Fil
es\Plone 2\Data\etc\zope.conf
Traceback (most recent call last):
  File C:\Program Files\Plone 
2\Zope\lib\python\Products\CMFBoard\Forum.py, li
ne 34, in ?
from ForumMailReceiver import MailReceiver
  File C:\Program Files\Plone 
2\Zope\lib\python\Products\CMFBoard\ForumMailRece
iver.py, line 22, in ?
from Products.PortalTransport.interfaces.mailreceiver import 
IMailReceiver
ImportError: No module named PortalTransport.interfaces.mailreceiver
Traceback (most recent call last):
  File C:\Program Files\Plone 
2\Zope\lib\python\Products\CMFBoard\Forum.py, li
ne 41, in ?
from Subscribeable import Subscribeable
  File C:\Program Files\Plone 
2\Zope\lib\python\Products\CMFBoard\Subscribeable
.py, line 18, in ?
from Products.PortalTransport.SubscribeableMember import 
SubscribeableMember

ImportError: No module named PortalTransport.SubscribeableMember
Help!  I was using that Zope instance as a spare brain, and my last 
backup is[expletive deleted]... too old to be useful.
CMFBoard apparently can use a 'PortalTransport' product for doing 
something with emails. In my version, the import on Forum.py line 34::

from ForumMailReceiver import MailReceiver
is wrapped in a try/except so it doesn't cause problems if absent. As is 
Subscribable on line 41. When these are absent, they print out the 
exceptions, but they are not fatal. These are not your problem.

Some different diagnostic information is needed. Can you access the 
server when starting with runzope?

		--jcc
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] custom_zodb.py and Control_Panel

2005-05-12 Thread Chris Withers
Jens Vagelpohl wrote:
I suppose it could be argued that custom_zodb.py should simply not be 
read in any longer, or throw big fat warnings.
Why wouldn't it still work fine, apart from some minor Control Panel 
barfage?

Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Firefox manage_changePermissions issue?

2005-05-12 Thread Chris Withers
Hi Tony,
Sory for the age in replying...
Tony Addyman wrote:
Chris: Can you recall whose Firefox you would have been using at the 
time? I have been using the RPM version from SUSE 9.2.
I would have been using a recent Windows binary.
The problem 
occurs a number of times when using POST with the ZMI. The major 
changePermissions problem is just the most obvious. When the problem 
occurs elsewhere simply repeating the interaction within the ZMI makes 
the change stick eventually, i.e. the POST is not followed by the 
phantom GET.

I have just started using the stock tar.gz firefox installer from 
mozilla.org. So far it hasn't shown the problem. Of course, the problem 
doesn't always occur, but it may be progress.
Yeah, sadly, after my initial experience with something that may have 
been caused by this, but which I never actually tracked down, I haven't 
bumped into it again, even though I'm almost exclusively using Firefox 
now...

cheers,
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Generating and Downloading PDF.

2005-05-12 Thread Chris Withers
Fernando Lujan wrote:
I'm calling this external method through a dtml-var gerar_tce_pdf() 
tag, inside a DTML DOCUMENT.
Um? What else is that method returning?
I'd suggest you call getrarTCE directly by URL, check you're setting the 
correct content-type and maybe set a content disposition too...

cheers,
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Python2.4.1 and Zope 2.7.X

2005-05-12 Thread Chris Withers
Andreas Jung wrote:
Has anyone had problems with Python 2.4.1  with the latest Zope 2.7.X
versions?
As documented in doc/INSTALL.txt: Python 2.4 is *not* supported.
But apart from that, the answer is you'd probably be okay ;-)
Heck, I hope Zope runs on Python 2.4 at SOME stage...
Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] question about login

2005-05-12 Thread Chris Withers
Phillip Hutchings wrote:
On 03/05/05, Dennis Allison [EMAIL PROTECTED] wrote:
Another option is to look at the other User Folder products which
do things differently.  Alternatively, you could modify the
CookieCrumbler product to make it fit your model.
I've used exUserFolder before, it can store info in the session rather
than chucking the user's password around ;)
I also posted some patches for CookieCrumbler a while back that do the 
same thing...

Chris
--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] question about login

2005-05-12 Thread Phillip Hutchings
On 13/05/05, Chris Withers [EMAIL PROTECTED] wrote:
 Phillip Hutchings wrote:
  On 03/05/05, Dennis Allison [EMAIL PROTECTED] wrote:
 
 Another option is to look at the other User Folder products which
 do things differently.  Alternatively, you could modify the
 CookieCrumbler product to make it fit your model.
 
  I've used exUserFolder before, it can store info in the session rather
  than chucking the user's password around ;)
 
 I also posted some patches for CookieCrumbler a while back that do the
 same thing...

Hm, time to search the archives, I'm sure it'll be useful.

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


Re: [Zope] custom_zodb.py and Control_Panel

2005-05-12 Thread Jens Vagelpohl
On May 12, 2005, at 21:45, Chris Withers wrote:
Jens Vagelpohl wrote:
I suppose it could be argued that custom_zodb.py should simply not  
be read in any longer, or throw big fat warnings.

Why wouldn't it still work fine, apart from some minor Control  
Panel barfage?
You will agree that it is confusing at best to even allow a  
completely different and totally unmaintained way of configuring  
these things. zope.conf is the way it should be done, and people who  
don't do it yet should be reminded to change their config.

jens
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Thanks Andy.  I do have those versions.  But Python is 2.3.5 because I
didnt want to move to 2.4.x as I think I read something in the README
for Zope stating it was not tested for compatibility. (right?)  I
guess my thought is... Does 2.3.5 have the same issue as 2.4 regarding
the decimals?  For now, I am just going to setup 2.3.4 and run with
it.

I am assuming that you are the same adustman on the mysql-python
project?  Nice job on that, very cool stuff!


On 5/12/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 5/12/05, Greg Fischer [EMAIL PROTECTED] wrote:
  I just moved my zope app from 2.7.3 to 2.7.6, plus the mysql db from
  5.0.0 to 5.0.4.  After moving everything, I noticed all of my decimal
  fields that will no longer display their values in DTML unless I
  remove the dollars-and-cents fmt option.
 
 What version of MySQL-python and ZMySQLDA are you using? For
 MySQL-5.0, you definitely need MySQL-python-1.2.0 or newer and
 ZMySQLDA-2.0.9b3. You aren't using Python-2.4 by any chance, are you?
 2.4 has a decimal type, which MySQL-python will make use of, if it's
 there, and the DECIMAL columns are returned using the Python decimal
 type. Previously they would have been returned as strings, and that
 might account for your breakage.
 
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 


-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Jens Vagelpohl
On May 13, 2005, at 03:21, Greg Fischer wrote:
Thanks Andy.  I do have those versions.  But Python is 2.3.5 because I
didnt want to move to 2.4.x as I think I read something in the README
for Zope stating it was not tested for compatibility. (right?)
Yes, that is correct. Do not use it if you expect anyone here to help  
with problems you encounter.

jens
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Darn!  That didnt fix it.  I just setup python 2.3.4, setup Zope 2.7.6
again, along with mysql-python 1.2.0 and ZMySQLDA-2.0.9b3, and
fmt=dollars-and-cents will not display the data.  Also, I tried just
using the c-style formatting: fmt=$%.2f and I have a different
issue, I get a Type Error - float argument required.  So how do I fix
this decimal or string issue?  Is there something on MySQL needing
setup differently? (which is 5.0.4beta)  Seems more like Python or
Zope issue.

Any ideas to get me in the right direction?

Thanks!


On 5/12/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 5/12/05, Greg Fischer [EMAIL PROTECTED] wrote:
  I just moved my zope app from 2.7.3 to 2.7.6, plus the mysql db from
  5.0.0 to 5.0.4.  After moving everything, I noticed all of my decimal
  fields that will no longer display their values in DTML unless I
  remove the dollars-and-cents fmt option.
 
 What version of MySQL-python and ZMySQLDA are you using? For
 MySQL-5.0, you definitely need MySQL-python-1.2.0 or newer and
 ZMySQLDA-2.0.9b3. You aren't using Python-2.4 by any chance, are you?
 2.4 has a decimal type, which MySQL-python will make use of, if it's
 there, and the DECIMAL columns are returned using the Python decimal
 type. Previously they would have been returned as strings, and that
 might account for your breakage.
 
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 


-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Andy Dustman
On 5/12/05, Greg Fischer [EMAIL PROTECTED] wrote:
 Thanks Andy.  I do have those versions.  But Python is 2.3.5 because I
 didnt want to move to 2.4.x as I think I read something in the README
 for Zope stating it was not tested for compatibility. (right?)  I
 guess my thought is... Does 2.3.5 have the same issue as 2.4 regarding
 the decimals?  For now, I am just going to setup 2.3.4 and run with
 it.

The Python decimal type is new in 2.4.

I don't think you've actually said whether or not you are actually
using a DECIMAL column.

I had forgotten that ZMySQLDA-2.0.9b3 always returns DECIMAL columns
as Python float. If you look in ZMySQLDA/db.py, you can see where it
does this in the DB class. You could try commenting this line out,
which will cause it to be returned as a string, and restarting Zope.
It's something to try, at least.
-- 
Computer interfaces should never be made of meat.
http://www.terrybisson.com/meat.html
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] dollars-and-cents display fails

2005-05-12 Thread Greg Fischer
Oh, it is a decimal(15,2) column.  (all of them are)  Just thought I'd
mention everything too... Running Ubuntu 5.0.4, has the Python 2.4.1
package installed, but I have Python 2.3.4 compiled and installed
separately for Zope.  Zope is compiled with the --with-python flag.

Just tried your suggestion, commenting the 'conv[FIELD_TYPE.DECIMAL] =
float' line, restart Zope, still have the issue.

So, I have the older Python, which I used to have.  I could try
loading an older Zope, but what I might try is loading the MySQL
5.0.0, which I had before.  At least I can hopefully find out which is
causing my problem.  However, I have Zope 2.7.4 with MySQL 5.0.4 and
it works fine, but on Windows using the Egenix adapter.  Now, I cant
remember what I had for the mysql-python version, it's on the other
server at my clients site. (cant get to it right now)

I guess one of my main questions too is, would Zope be getting
anything from the 2.4.1 Ubuntu packages that are installed if I
compiled it with the 2.3.4 python?  (mysql-python is installed
correctly on 2.3.4 too)

On 5/12/05, Andy Dustman [EMAIL PROTECTED] wrote:
 On 5/12/05, Greg Fischer [EMAIL PROTECTED] wrote:
  Thanks Andy.  I do have those versions.  But Python is 2.3.5 because I
  didnt want to move to 2.4.x as I think I read something in the README
  for Zope stating it was not tested for compatibility. (right?)  I
  guess my thought is... Does 2.3.5 have the same issue as 2.4 regarding
  the decimals?  For now, I am just going to setup 2.3.4 and run with
  it.
 
 The Python decimal type is new in 2.4.
 
 I don't think you've actually said whether or not you are actually
 using a DECIMAL column.
 
 I had forgotten that ZMySQLDA-2.0.9b3 always returns DECIMAL columns
 as Python float. If you look in ZMySQLDA/db.py, you can see where it
 does this in the DB class. You could try commenting this line out,
 which will cause it to be returned as a string, and restarting Zope.
 It's something to try, at least.
 --
 Computer interfaces should never be made of meat.
 http://www.terrybisson.com/meat.html
 ___
 Zope maillist  -  Zope@zope.org
 http://mail.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://mail.zope.org/mailman/listinfo/zope-announce
  http://mail.zope.org/mailman/listinfo/zope-dev )
 


-- 
Greg Fischer
1st Byte Solutions
http://www.1stbyte.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Delete user from acl_users folder

2005-05-12 Thread Allen Huang

I tried your method before and it didn't work
I have a folder called conference and inside it there is acl_users folder and I write all my dtmls in the conference folder (by the way, your are talking about manage_delObjects() instead deleteObjects() right??)

I tried to use dtml-call expr="acl_users.manage_deleteObjects(AUTHENTICATED_USER)"
zope tell me an error __get__


I tried to use dtml-call expr="acl_users.manage_deleteObjects(AUTHENTICATED_USER.getUserName())"
even tough it didn't give me any errors, the user name still exists in the acl_users folder

So, any other ideas??
		Yahoo! Mail Mobile 
Take Yahoo! Mail with you! Check email on your mobile phone.___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )