[Zope-dev] Bug in Zope 2.9?

2006-04-03 Thread Chris Withers

I see the following the first time a Zope instance is started under 2.9:

2006-04-03T10:59:30 ERROR Zope A problem was found when checking the 
global product registry.  This is probably due to a Product being 
uninstalled or renamed.  The traceback follows.

Traceback (most recent call last):
  File C:\Zope\2.9.2\lib\python\OFS\Application.py, line 260, in 
checkGlobalRegistry

keys=list(self._p_jar.root()['ZGlobals'].keys())
  File C:\Zope\2.9.2\lib\python\OFS\Uninstalled.py, line 46, in 
__getattr__

raise AttributeError, escape(name)
AttributeError: keys

Seems odd. What does it mean? Should I expect it? How come it no longer 
happens on subsequent startups?


cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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] Bug in Zope 2.9?

2006-04-03 Thread Stefan H. Holek

This is an old ZODB, right?

ZGlobals is used by ZClasses. There used to be a time when ZGlobals  
was still a BTree when it should have been a BTrees.BTree. Then some  
migration code was added. I suppose the error comes from the fact  
that BTree.so is now finally no longer part of Zope and your ZODB is  
old. Or something along these lines ;-)


Anyway, as long as you don't use ZClasses (and I seem to remember  
you, err, are pretty explicit about your dislike) forget about it.


Stefan


On 3. Apr 2006, at 12:18, Chris Withers wrote:

I see the following the first time a Zope instance is started under  
2.9:


2006-04-03T10:59:30 ERROR Zope A problem was found when checking  
the global product registry.  This is probably due to a Product  
being uninstalled or renamed.  The traceback follows.

Traceback (most recent call last):
  File C:\Zope\2.9.2\lib\python\OFS\Application.py, line 260, in  
checkGlobalRegistry

keys=list(self._p_jar.root()['ZGlobals'].keys())
  File C:\Zope\2.9.2\lib\python\OFS\Uninstalled.py, line 46, in  
__getattr__

raise AttributeError, escape(name)
AttributeError: keys

Seems odd. What does it mean? Should I expect it? How come it no  
longer happens on subsequent startups?

--
Anything that happens, happens.  --Douglas Adams


___
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] TCP CLOSE_WAIT leaks

2006-04-03 Thread Dieter Maurer
Alan Milligan wrote at 2006-4-3 12:05 +1000:
 ...
#36 0xa86a19b0 in ?? ()
#37 0xa86a19ac in ?? ()
#38 0xb7a07583 in ?? () from
/opt/zope2.8/lib/python/Acquisition/_Acquisition.so
#39 0xb7a83660 in ?? ()
#40 0x in ?? ()


I must confess that I'm quite puzzled that the main thread is also
blocked - DeadlockDebugger's publish magic is not being invoked,
concurring with strace.

Looks as if your Python were compiled without debugging symbols.
You will get much better tracebacks (easier to understand),
when you rebuild your Python with debugging symbols.

The following GDB macros can be used to help in the analysis.
pfr can be called in frames eval_frame to learn
about the Python frame.

def ps
x/s ({PyStringObject}$arg0)-ob_sval
end

def pfr
ps f-f_code-co_filename
ps f-f_code-co_name
#p f-f_lineno
lineno
end

define lineno
set $__co = f-f_code
set $__lasti = f-f_lasti
set $__sz = ((PyStringObject *)$__co-co_lnotab)-ob_size/2
set $__p = (unsigned char *)((PyStringObject *)$__co-co_lnotab)-ob_sval
set $__li = $__co-co_firstlineno
set $__ad = 0
while ($__sz-1 = 0)
  set $__sz = $__sz - 1
  set $__ad = $__ad + *$__p
  set $__p = $__p + 1
  if ($__ad  $__lasti)
# break -- interpreted as breakpoint
set $__sz = -1
  end
  if ($__sz = 0)
set $__li = $__li + *$__p
set $__p = $__p + 1
  end
end
printf %d\n, $__li
end

-- 
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] Another 2.9 bug?

2006-04-03 Thread Chris Withers

Hi All,

I see this intermittently on startup:

2006-04-03 21:21:37 ERROR Zope.ZODBMountPoint Failed to mount database. 
exceptio

ns.ValueError (database_name 'packed' already in databases)
Traceback (most recent call last):
  File 
C:\Zope\2.9.2\lib\python\Products\ZODBMountPoint\MountedObject.py, line

 257, in _getOrOpenObject
conn = self._getMountedConnection(anyjar)
  File 
C:\Zope\2.9.2\lib\python\Products\ZODBMountPoint\MountedObject.py, line

 147, in _getMountedConnection
self._getDB()
  File 
C:\Zope\2.9.2\lib\python\Products\ZODBMountPoint\MountedObject.py, line

 157, in _getDB
return getConfiguration().getDatabase(self._path)
  File C:\Zope\2.9.2\lib\python\Zope2\Startup\datatypes.py, line 280, 
in getDa

tabase
db = factory.open(name, self.databases)
  File C:\Zope\2.9.2\lib\python\Zope2\Startup\datatypes.py, line 178, 
in open

DB = self.createDB(database_name, databases)
  File C:\Zope\2.9.2\lib\python\Zope2\Startup\datatypes.py, line 175, 
in creat

eDB
return ZODBDatabase.open(self, databases)
  File C:\Zope\2.9.2\lib\python\ZODB\config.py, line 105, in open
databases=databases)
  File C:\Zope\2.9.2\lib\python\ZODB\DB.py, line 262, in __init__
raise ValueError(database_name %r already in databases %
ValueError: database_name 'packed' already in databases

I have a ClientStorage named 'packed' that's mounted into the main 
storage using zope.conf.


This worked fine in 2.7, why am I seeing it now?

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
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 )


[ZWeb] Bizarre behaviour with zope.org just now

2006-04-03 Thread Chris Withers

Hi All,

Just been bounced to zope.com from zope.org a few times. philiKON was 
experiencing the same thing...


Any reason why that would happen?

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] Re: [Zopeorg-webmaster] Zope.org redirects to Zope.com

2006-04-03 Thread Chris Withers

Hi Carlos,

[EMAIL PROTECTED] wrote:

I'm having troubles accessing to zope.org, since it redirects to zope.com. So,
I'm not able to download Zope.


We're aware of the problem and people are looking into it.

cheers,

Chris

--
Simplistix - Content Management, Zope  Python Consulting
   - http://www.simplistix.co.uk
___
Zope-web maillist  -  Zope-web@zope.org
http://mail.zope.org/mailman/listinfo/zope-web


[ZWeb] Zope.org site issues

2006-04-03 Thread David Lawson
Is anyone still experiencing problems with the zope.org site  
redirecting to zope.com?  Could you let me know off list if you are,  
please?  Thanks.


--Dave Lawson
Systems Administrator
Zope Corp.
540-361-1722
[EMAIL PROTECTED]



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


Re: [Zope] Rotating Zope Log Files on Windows

2006-04-03 Thread Chris Withers

[EMAIL PROTECTED] wrote:

I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the
python 2.1.3 distribution of from python.org as a service on a Windows 2000
server.


Any chance you could come out of the stone age?
Seriously, you're now 4 major point releases behind what's considered 
current...


I am thinking of using windows scheduler to run this every night at 
midnight.  But I wonder if anyone else worked on a similar solution and 
could pass along any advice.


I know Mark Hammond did some work on signal handling for Zope 2.9. There 
might be something useful there.


Failing that, logrotated in cygwin should do you fine. Remember to use 
copytruncate so you don't have to worry about re-openning log files...


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] Debugging Zope on Windows

2006-04-03 Thread Chris Withers

Dieter Maurer wrote:

[EMAIL PROTECTED] wrote at 2006-3-31 14:47 -0700:

I am using Zope 2.5.0 (binary release, python 2.1, win32-x86), and the
python 2.1.3 distribution of from python.org as a service on a Windows 2000 
server.


I have heard that there is a way to debug zope and save error messages to a 
text file using the STUPID_LOG_FILE parameter however I'm not clear on how 
to implement this.


You use your OS way to set environment variables.
I think, Windows uses set envvar=value.


...and it'll need to go in runzope.bat, if 2.5 actually has that...

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] single sign-on

2006-04-03 Thread Chris Withers

Stefan H. Holek wrote:
You may want to contact Netsight(.co.uk), they have a working NTLM auth 
system for Zope/Plone. It's not gratis though, AFAIK. It's also possible 
to use ActiveDirectory for both Windows and Zope (via LDAPUserFolder).


*mumble* *mumble* It works about 95% of the time. NTLM is the devils own 
faeces, avoid like the plague unless you're gonna get IIS to do the 
actual authentication...


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] zope and nagios

2006-04-03 Thread Chris Withers

robert rottermann wrote:
nagios calls the intranet main page and checks if it finds designed by 
redCOR in the response.
Somehow a not responding (vs not running) zope does not trigger the 
nagios rule.


Maybe you have an error page somewhere which also contains those words?

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 )


[Zope] pass variables in a form

2006-04-03 Thread Dean Hale
Hi,I hope this is the correct forum to add this query, and any help appreciated.I have the following zpt which pulls in the users userid - $uid and some text generated from a python script (myEV - $pass). It works fine however i need to pass the variables along in a form rather than a url. And i'm stuck.the zpt urlspan tal:define="pass here/myEv"    a href="" tal:define="uid python:member.getProperty('uid')" tal:attributes="href string:https://domain/siw_sso.signonUSER=$uidTEXT=$pass" method="post"SSO test/a/span       the form needs to be in a format similar to belowform method="post" action=""https://domain/siw_sso.signon">https://domain/siw_sso.signon"input type="hidden" name="SSO" value="USER=ws0dhaHASH=daf768422238acd0899155a1757c9b5d" This is a test of hardcoded single-signon input type="submit" value="for ws0dha"/formso somehow i need to pass something like belowinput type="hidden" name="SSO" value="USER=$uidTEXT=$pass"hope this makes sense and is it possible?thank youdean    --- Dean Hale  Web Development Manager Library Services  University of Sunderland  w: https://my.sunderland.ac.uk  t: +44 (0) 191 515 2424 f: +44 (0) 191 515 2904  ___
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.org = Zope.com?

2006-04-03 Thread Andreas Krasa
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello everybody,

it seems that currently all HTTP requests to www.zope.org and
dev.zope.org are forwarded to www.zope.com.

I find it hard to believe that this is a desired behavior...

But if yes, where can Zope itself and Zope products be downloaded? The
Zope.com site contains tons of nice eye-candy and marketing-yadayada but
no resources for developers whatsoever.

Regards,
Andreas Krasa

:: Andreas Krasa
   WU  ZID  Information Center :: fon: +43/1/31336/6996
   Augasse 2-6  1090 Wien  .at :: fax:  +43/1/31336/789
 :: icq:  2059600

:: pgp key-id: 0xDA178BDC
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)

iD8DBQFEMO42fmH5mdoXi9wRAmORAJ0QzixhttxVnX/3N0er70AgWMB15wCcDyHd
ufTmW/NYj8N6WIUCkyeZBYo=
=DdsT
-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] Zope.org = Zope.com?

2006-04-03 Thread Lennart Regebro
On 4/3/06, Andreas Krasa [EMAIL PROTECTED] wrote:
 it seems that currently all HTTP requests to www.zope.org and
 dev.zope.org are forwarded to www.zope.com.

Seems to work now. At least for me.

--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Debugging Zope on Windows

2006-04-03 Thread Lennart Regebro
On 4/3/06, Chris Withers [EMAIL PROTECTED] wrote:
 ...and it'll need to go in runzope.bat, if 2.5 actually has that...

My memory of 2.5 is hazy, but I think it was called start.bat then.


--
Lennart Regebro, Nuxeo http://www.nuxeo.com/
CPS Content Management http://www.cps-project.org/
___
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] Zope.org = Zope.com?

2006-04-03 Thread Chris Withers

Lennart Regebro wrote:

On 4/3/06, Andreas Krasa [EMAIL PROTECTED] wrote:

it seems that currently all HTTP requests to www.zope.org and
dev.zope.org are forwarded to www.zope.com.


Seems to work now. At least for me.


This is still happening intermittently for some people.

Jim has raised it with the guys who host zope.org...

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] pass variables in a form

2006-04-03 Thread Tino Wildenhain

Dean Hale schrieb:


Hi,

I hope this is the correct forum to add this query, and any help 
appreciated.


I have the following zpt which pulls in the users userid - $uid and some 
text generated from a python script (myEV - $pass). It works fine 
however i need to pass the variables along in a form rather than a url. 
And i'm stuck.


the zpt url

span tal:define=pass here/myEv
a href= tal:define=uid python:member.getProperty('uid') 
tal:attributes=href 
string:https://domain/siw_sso.signonUSER=$uidTEXT=$pass 
https://domain/siw_sso.signonUSER=$uidTEXT=$pass method=postSSO 
test/a
/span   


the form needs to be in a format similar to below

form method=post action=https://domain/siw_sso.signon;
input type=hidden name=SSO 
value=USER=ws0dhaHASH=daf768422238acd0899155a1757c9b5d
 This is a test of hardcoded single-signon input type=submit 
value=for ws0dha

/form

so somehow i need to pass something like below

input type=hidden name=SSO value=USER=$uidTEXT=$pass

hope this makes sense and is it possible?


Its possible but does not make sense. In HTML-forms
the element has a name which corresponds to the
variable name you get after form data evaluation
by the server. So in your case you really want:

form method=post ... 
 input type=hidden name=USER tal:attributes=value uid /
 input type=hidden name=TEXT tal:attributes=value pass /
 input type=submit value=for ws0dha /
/form

(assumed you nicely pull out uid,pass and so on from your
python script)

btw, if you construct links with parameters, its by far nicer
to do this in your python script, using ZTUtils.make_query()

Regards
Tino
___
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 build a search date range parameter in a search form

2006-04-03 Thread Lucia Colombo








Hi all
I'm trying to build a search form which gets as an input a year and searches 
for all objects which have a (custom) date index set within such year. So after
having built a list 
of the available years to query on, I added in the search form:

select name= getAnno.query:record:list 

id=getAnno

tabindex=

tal:attributes=tabindex tabindex/next;

tal:options repeat=year years_list

option value=# tal:define=start_date python:DateTime(int(year),
1, 1);

end_date python:DateTime(int(year), 12, 31);

date_range python:[start_date, end_date];

tal:attributes=value date_range tal:content=year
2000 /option

/tal:options
/select

input type=hidden name= getAnno.range:record
value=minmax /

(getAnno is my custom date index)
but then I get into the query the string [DateTime(2006/01/01),
DateTime(2006/12/31)] instead of the list of dates.



Actually what I get is a syntaz error, as it is:


 
  
  getAnno
  
  
  {'query': [[DateTime('2005/01/01'),
  DateTime('2005/12/31')]], 'range': 'minmax'}
  
 



How do I get the parameter to be a list of dates?
thanksbye
Lucia








___
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] incorporating jmol into Zope

2006-04-03 Thread gf
Hi,
I am a Zope newbie and would really appreciate some help from
experienced Zope developers. I am trying to incorporate jmol (a
javascript molecule viewer: http://jmol.sourceforge.net/)  into some
web pages. I think that my confusion may have to do with the use of
'directory relative (../)' versus 'server relative (/)' versus
'absolute url (http://)' paths.

The instructions for jmol give an example as follows:

html
  head
titleSimple example/title
script src=../jmol/Jmol.js/script
  /head
  body
script
  jmolInitialize(../jmol); // REQUIRED
  jmolApplet(200, load caffeine.xyz);
/script
  /body
/html

I have set up a folder in Zope for jmol's files (Jmol.js, JmolApplet.jar):
root/javascript/jmol

I have a Zope folder for the molecule files to be viewed:
root/mycontent/images

I have a dtml method for the actual view page:
root/mycontent/view_jmol

I would appreciate very much if someone could help translate the
example above using my Zope folder structure. I have tried many
variations, but they usually end up locking up the browser with a
'downloading applet' message.

Related to this is the following question: should I use use the actual
file names 'Jmol.js' , 'JmolApplet.jar' as their IDs, or should I use
'dotless' names and just set the correct file types?

Thanks for any help and advice you can give.

Best Regards,
gyro


From the jmol website General Recommendations:

- There is one directory on your web server that contains Jmol.js,
JmolApplet.jar, and any other jmol-specific files. For the purposes of
this discussion we will call this directory ../your-jmol-directory.

- Every web page within your site should refer to
../your-jmol-directory using a relative url.

- Directory relative paths which start with . or .. should always be
used. Server relative paths which start with / might be acceptable in
special circumstances. Absolute URLs which start with http:// are evil
and should never be used.

- Every page must contain the following HTML command in the head
section in order to include the Jmol.js library:

  head
...
script src=../your-jmol-directory/Jmol.js/script
...
  /head
Every page must contain a call to jmolInitialize(codebaseDirectory) as
the first call into the Jmol.js library.
___
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] python 2.4.3

2006-04-03 Thread David Bear
Since python 2.4.3 has just been released, are there any
comments/recommendatiosn about running zope 2.9.2 with that version?
The zope site and installed docs recommend python 2.4.2, but it appears
the 2.4.3 is a nice bug fix release. it would be nice to be able to use
it.
-- David BearWhat's the difference between private knowledge and public knowledge?
___
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 build a search date range parameter in a search form

2006-04-03 Thread Dieter Maurer
Lucia Colombo wrote at 2006-4-3 17:49 +0200:
I'm trying to build a search form which gets as an input a year and searches

for all objects which have a (custom) date index set within such year.
 ...
How do I get the parameter to be a list of dates?

You determine start and end date inside a Python script from the
integer year form variable. Then, you form a sequence
(list or tuple) from the two dates.

-- 
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] python 2.4.3

2006-04-03 Thread Andreas Jung



--On 3. April 2006 11:34:52 -0700 David Bear [EMAIL PROTECTED] wrote:


Since python 2.4.3 has just been released, are there any
comments/recommendatiosn about running zope 2.9.2 with that version? The
zope site and installed docs recommend python 2.4.2, but it appears the
2.4.3 is a nice bug fix release. it would be nice to be able to use it.


Zope 2.9.2 was out before Python 2.4.3 so you can not expect to be a 
supported version so far. I doubt that the bugfixes will influcence the 
funcitonality of Zope.


-aj


   ---
  -   Andreas JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---


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


Re: [Zope] python 2.4.3

2006-04-03 Thread Chris Withers

Andreas Jung wrote:


Zope 2.9.2 was out before Python 2.4.3 so you can not expect to be a 
supported version so far. I doubt that the bugfixes will influcence the 
funcitonality of Zope.


Andreas, this is a bit silly really.

Come on, there's no reason to go scare mongering about Python 2.4.3. 
Using it with Zope should be just fine, or you wouldn't have marked it 
as an acceptable version on the 2.9 branch in the last few days, would 
you? ;-)


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] single sign-on

2006-04-03 Thread Fernando Martins
David H wrote:
 Robert,

 You can python + COM your way to a browser startup zope/plone login
 screen.  I cannot see how you automate the authentication of a given
 browser instance that is then handed to your users.


Hmm, that's not automation in this sense. The user logins into the
workstation (Windows, don't know about unix), the user opens the browser and
accesses an INTRANET page. The browser (IE or Firefox with NTLM setup) will
then send authentication information to the Intranet server using the NTLM
protocol. The web server (Apache with NTLM module) checks with some internal
Domain server and sets the environmental variable REMOTE_USER. This is then
sent to a CGI or FastCGI app (zope with FastCGI).

 Maybe someone will correct this.  If so everyone's happy.

Yes, local Intranet users love this, one less login, automatic recognition,
personalisation, instant gratification,... ;-)

Cheers,
Fernando

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

2006-04-03 Thread Dennis Allison

When Zope is run in production (as opposed to debug) mode, modifications 
to External Methods are not sensed.  What's the programatic way to get 
them all refreshed?

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

2006-04-03 Thread Chris Withers

Dennis Allison wrote:
When Zope is run in production (as opposed to debug) mode, modifications 
to External Methods are not sensed.  What's the programatic way to get 
them all refreshed?


Click the edit button on the external method object.

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] External Methods

2006-04-03 Thread Dennis Allison
Too many and too hard to remember where they are.  I have writen a 
FindAndApply external method that uses reloadIfChanged().



On Mon, 3 Apr 2006, Chris Withers wrote:

 Dennis Allison wrote:
  When Zope is run in production (as opposed to debug) mode, modifications 
  to External Methods are not sensed.  What's the programatic way to get 
  them all refreshed?
 
 Click the edit button on the external method object.
 
 cheers,
 
 Chris
 
 

-- 

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

2006-04-03 Thread Chris Withers

Dennis Allison wrote:
Too many and too hard to remember where they are.  I have writen a 
FindAndApply external method that uses reloadIfChanged().


*shrugs*

If you already had a solution, then why on earth did you bother asking?

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] External Methods

2006-04-03 Thread Dennis Allison
Figured it out after the fact  :-(
and have not yet tested it before posting it as a solution

On Mon, 3 Apr 2006, Chris Withers wrote:

 Dennis Allison wrote:
  Too many and too hard to remember where they are.  I have writen a 
  FindAndApply external method that uses reloadIfChanged().
 
 *shrugs*
 
 If you already had a solution, then why on earth did you bother asking?
 
 Chris
 
 

-- 

___
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: Question about Zope and security

2006-04-03 Thread Cyrille Bonnet

Hi Dieter,

thanks for your response. It helps a lot.

It looks like DigestAuth is a step in the right direction, but needs 
more work to be completely secure.


I'll get back to my client and see where they want to go from here.

Thx for your help.

Cheers,

Cyrille

Dieter Maurer wrote:

Cyrille Bonnet wrote at 2006-3-30 14:43 +1200:


...
I did find Dieter Mauer's DigestAuth product: 
http://www.dieter.handshake.de/pyprojects/zope/#DigestAuth


It looks good. I have used other produts from Dieter before and was very 
pleased with the quality of his code.


Now, have other people used it? Does it work with WebDAV?



It should work with WebDAV, provided the WebDAV client supports
HTTP Digest Authentication.


How secure is 
it (I am no security/encryption expert)?



The corresponding RFC (RFC 2617) explains in detail how
secure the basic mechanism is.

My DigestAuth DigestAuthCrumber adds a bit of insecurity:

  *  the passwords must be stored (inside Zope (!) not in the request)
 in plain text.

 This could be improved a bit, either by

   - using two way encryption -- but Zope must be able to get
 the plain text password back.

   - fixing the domain and using storing the MD5 hash
 of username, password and domain instead of the
 plain text password.

 Other authentication schemes would then need to
 be changed -- to use the same MD5 hash.



Also, if it is good, why is not part of default Zope??




There are two sides of an answer: the Zope developpers/maintainers side
and my side.

Adding even a good package to the core means a (rather) long term
commitment to support and maintain this package. When you
follow comp.lang.python (or the corresponding mailing list),
you see how reluctant the Python developpers are to include
additional packages into the Python core -- to avoid these
responsibilities. The Zope maintainers are even stricter: they
look what they can get rid of rather than what they can include

On my side: developping for the Zope core imposes much more overhead
than developping independently: I would have to make a proposal,
follow (partially stupid) style guides, add more tests (than
necessary to convince me that the quality is sufficient)...
Thus, I am reluctant to develop for the Zope core.



___
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: External Methods

2006-04-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dennis Allison wrote:
 When Zope is run in production (as opposed to debug) mode, modifications 
 to External Methods are not sensed.  What's the programatic way to get 
 them all refreshed?

Not a use case for production servers.  Your best bet is:

 #!/bin/sh
 /path/to/zope/instance/bin/zopectl restart

on each instance.

If you know the path of a specific EM, then you can write a script which
forces it to reload, e.g.:

  # Reload a given script
  app.path.to.external_method.reloadIfChanged()

which you will again need to to on each instance (the compiled code is
not persisted to the ZODB).


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   Excellence by Designhttp://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEMc8h+gerLs4ltQ4RAkExAJ9BApgEvQE87o8K7w5YDwnJA3yXVgCfRnsZ
+KPz3mA/4XOsYA8UqfDhj8o=
=nOMh
-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] python 2.4.3

2006-04-03 Thread Andreas Jung



--On 3. April 2006 21:10:50 +0100 Chris Withers [EMAIL PROTECTED] 
wrote:



Andreas Jung wrote:


Zope 2.9.2 was out before Python 2.4.3 so you can not expect to be a
supported version so far. I doubt that the bugfixes will influcence the
funcitonality of Zope.



Come on, there's no reason to go scare mongering about Python 2.4.3.


huh? :-) I just wanted to say that using a newer _minor_ Python version 
was really never a problem. And the time of 2.9.3 will of course support 
Python 2.4.3 but 2.9.3 is not on the roadmap so far.


-aj


   ---
  -   Andreas JungZOPYX Ltd.  Co KG-
 -   E-mail: [EMAIL PROTECTED]   Web: www.zopyx.com, www.zopyx.de -
  ---


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


Re: [Zope] External Methods

2006-04-03 Thread Tino Wildenhain
Dennis Allison wrote:
 Too many and too hard to remember where they are.  I have writen a 
 FindAndApply external method that uses reloadIfChanged().

Well if too many, why not go to full external products?

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