[Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
Hi All,

Just updated today to zope3 svn revision the latest trunk and my browser
tests are hanging. After hunting for a while within my own package
(assuming my own fault) I finally came up with a test that fails using a
clean zope3 install with none of my own configuration.

It hangs on getControl (but not on every test). Seems that I can open
browser instance and do a few things before it hangs. I can return
self.mech_browser from getControl and I think it hangs on forms().

The hanging is determined btw, Ctrl-C isn't enough, it takes `kill -s 15
$PIDTEST`.

I'm still not convinced that the problem doesn't lie with me and would
like to know if I'm alone with it.

For now I'll try an earlier revision (I was using rev 69228 prior to the
update).

Best regards,

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Baiju M

On 8/17/06, Darryl Cousins [EMAIL PROTECTED] wrote:

Hi All,

Just updated today to zope3 svn revision the latest trunk and my browser
tests are hanging. After hunting for a while within my own package
(assuming my own fault) I finally came up with a test that fails using a
clean zope3 install with none of my own configuration.

It hangs on getControl (but not on every test). Seems that I can open
browser instance and do a few things before it hangs. I can return
self.mech_browser from getControl and I think it hangs on forms().

The hanging is determined btw, Ctrl-C isn't enough, it takes `kill -s 15
$PIDTEST`.

I'm still not convinced that the problem doesn't lie with me and would
like to know if I'm alone with it.

For now I'll try an earlier revision (I was using rev 69228 prior to the
update).


Today (Thursday, August 17 2006) is bugday to make 3.3 beta2, so
please report this in collector.  Also try 3.3 branch.

 svn co svn://svn.zope.org/repos/main/Zope3/branches/3.3 Zope33

Regards,
Baiju M
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
Cheers for the reply,

I still think it might be me. I rolled back to the zope3 revision I had
and it still hangs. Same with the 33 branch you suggested.

This time I have attached the files that will cause the browser test to
hang.

I should just keep looking I guess.

Regards,
Darryl

On Thu, 2006-08-17 at 11:57 +0530, Baiju M wrote:
 On 8/17/06, Darryl Cousins [EMAIL PROTECTED] wrote:
  Hi All,
 
  Just updated today to zope3 svn revision the latest trunk and my browser
  tests are hanging. After hunting for a while within my own package
  (assuming my own fault) I finally came up with a test that fails using a
  clean zope3 install with none of my own configuration.
 
  It hangs on getControl (but not on every test). Seems that I can open
  browser instance and do a few things before it hangs. I can return
  self.mech_browser from getControl and I think it hangs on forms().
 
  The hanging is determined btw, Ctrl-C isn't enough, it takes `kill -s 15
  $PIDTEST`.
 
  I'm still not convinced that the problem doesn't lie with me and would
  like to know if I'm alone with it.
 
  For now I'll try an earlier revision (I was using rev 69228 prior to the
  update).
 
 Today (Thursday, August 17 2006) is bugday to make 3.3 beta2, so
 please report this in collector.  Also try 3.3 branch.
 
   svn co svn://svn.zope.org/repos/main/Zope3/branches/3.3 Zope33
 
 Regards,
 Baiju M
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users
##
#
# Copyright (c) 2005, 2006 Tree Fern Web Services Ltd
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED AS IS AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##

tfws for Zope 3: Package tfws.address.browser

$Id: ftests.py 281 2006-08-16 10:29:37Z darryl.cousins $



import unittest
from zope.testing import doctest
from zope.app.testing.functional import FunctionalDocFileSuite


def test_suite():
return unittest.TestSuite((
FunctionalDocFileSuite(
browser.txt,
optionflags=doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE),
))

if __name__ == '__main__':
unittest.main(defaultTest='test_suite')



Get a browser started using the ftesting Manager

 from zope.testbrowser.testing import Browser
 browser = Browser()
 browser.addHeader('Authorization', 'Basic mgr:mgrpw')

Add a folder

 
browser.open('http://localhost/@@contents.html?type_name=BrowserAdd__zope.app.folder.folder.Folder')
 browser.getControl(name='new_value').value = u'test'
 browser.getControl('Apply').click()

 browser.open('http://localhost/test/EditMetaData.html')
 browser.getControl(name='dctitle').value = 'Test'
 browser.getControl(name='dcdescription').value = 'Test folder'
 browser.getControl(name='save').click()
 print browser.getControl(name='dctitle').value
Test

So far so good. Try another folder.

 
browser.open('http://localhost/@@contents.html?type_name=BrowserAdd__zope.app.folder.folder.Folder')
 browser.getControl(name='new_value').value = u'test2'
 browser.getControl('Apply').click()

 browser.open('http://localhost/test/EditMetaData.html')
 browser.getControl(name='dctitle').value = 'Test 2'
 browser.getControl(name='dcdescription').value = 'Test folder'
 browser.getControl(name='save').click()
 print browser.getControl(name='dctitle').value
Test 2

Try a test manager

 browser.open('http://localhost/test/addSiteManager.html')

Try a utility

 browser.open('http://localhost/test/++etc++site/default/contents.html')
 browser.getLink('Unique Id Utility').click()
 browser.getControl('Apply').click()
 browser.getControl('Register this object').click()
 browser.getControl(name='field.actions.register').click()
 'This object is registered' in browser.contents
True

Try anything

 browser.open('http://localhost/test/contents.html')
 browser.getLink('ZPT Page').click()
 browser.getControl(name='field.source').value = 'spanTest/span'
 browser.getControl(name='add_input_name').value = 'page'
 browser.getControl(name='UPDATE_SUBMIT').click()

 browser.getLink('page').click()

And here the test hangs using 90+% of cpu.

 ctrl = browser.getControl(name='field.source')
 print ctrl
 #browser.getControl(name='form.source').value = 'spanMyTest/span'
 #browser.getControl(name='form.actions.apply').click()
 #'MyTest' in browser.contents


[Zope3-Users] NTLM and Active Directory based authentication for Zope 3

2006-08-17 Thread thealx
Hello,

I need to setup single sign on for Zope 3. My Zope 3.2 is running stand alone 
on Windows server. 
I'd like to authenticate users using NTLM against windows domain (Active 
Directory).

Are there any solutions ready (or in progress) for such purpose? It is crucial 
feature to spread Zope apps in intranets. 
I already found 3 folders ldapauth, ldappas and ldapadapter, but I'm not 
sure if any of this LDAP-based solutions is able to authenticate against Active 
Directory and if they are Zope-3 or Zope-2 solutions... 

Could you help me to find a proper way to achieve the goal?
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Darryl Cousins
Hi,

Python version maybe? The timing is about right with a debian upgrade, I
am now running Python 2.4.4c0. Guess I better figure out how to
downgrade and see what happens then with the tests.

Regards,
Darryl

On Thu, 2006-08-17 at 19:21 +1200, Darryl Cousins wrote:
 Cheers for the reply,
 
 I still think it might be me. I rolled back to the zope3 revision I had
 and it still hangs. Same with the 33 branch you suggested.
 
 This time I have attached the files that will cause the browser test to
 hang.
 
 I should just keep looking I guess.
 
 Regards,
 Darryl
 
 On Thu, 2006-08-17 at 11:57 +0530, Baiju M wrote:
  On 8/17/06, Darryl Cousins [EMAIL PROTECTED] wrote:
   Hi All,
  
   Just updated today to zope3 svn revision the latest trunk and my browser
   tests are hanging. After hunting for a while within my own package
   (assuming my own fault) I finally came up with a test that fails using a
   clean zope3 install with none of my own configuration.
  
   It hangs on getControl (but not on every test). Seems that I can open
   browser instance and do a few things before it hangs. I can return
   self.mech_browser from getControl and I think it hangs on forms().
  
   The hanging is determined btw, Ctrl-C isn't enough, it takes `kill -s 15
   $PIDTEST`.
  
   I'm still not convinced that the problem doesn't lie with me and would
   like to know if I'm alone with it.
  
   For now I'll try an earlier revision (I was using rev 69228 prior to the
   update).
  
  Today (Thursday, August 17 2006) is bugday to make 3.3 beta2, so
  please report this in collector.  Also try 3.3 branch.
  
svn co svn://svn.zope.org/repos/main/Zope3/branches/3.3 Zope33
  
  Regards,
  Baiju M
  ___
  Zope3-users mailing list
  Zope3-users@zope.org
  http://mail.zope.org/mailman/listinfo/zope3-users
 ___
 Zope3-users mailing list
 Zope3-users@zope.org
 http://mail.zope.org/mailman/listinfo/zope3-users

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] testbrowser hangs

2006-08-17 Thread Benji York

Darryl Cousins wrote:

Hi,

Python version maybe? The timing is about right with a debian upgrade, I
am now running Python 2.4.4c0. Guess I better figure out how to
downgrade and see what happens then with the tests.


That's the problem.  There was a bug introduced to Python (both the 2.4 
an 2.5 branches) when trying to fix an sgmllib bug.  This was discovered 
yesterday by John J. Lee of the mechanize project (which testbrowser uses).


A Python downgrade is advised. :)
--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] NTLM and Active Directory based authentication for Zope 3

2006-08-17 Thread Benji York

[EMAIL PROTECTED] wrote:

Hello,

I need to setup single sign on for Zope 3. My Zope 3.2 is running stand alone on Windows server. 


We (Zope Corp.) just open sourced zc.winauth.  It's not single 
sign-on, but shared sign-on, but it might be helpful.  You can view 
the README here: 
http://svn.zope.org/zc.winauth/trunk/src/zc/winauth/README.txt?rev=69546view=markup


You could build a true single sign-on system on top of it, if you're 
willing to be IE-only.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] Blog package

2006-08-17 Thread Florian Lindner
Hello,
is there a blog package for Zope3 around?

Thanks,

Florian
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Blog package

2006-08-17 Thread Stephan Richter
On Thursday 17 August 2006 09:37, David Pratt wrote:
 I have looked at it and thought it would be a nice package to finish
 however I haven't yet got how to perform the nice traversal tricks for
 nice urls for entries (I had written to the five list in July). Any
 pointers or an explanation would be appreciated. From my post to five list:

Null problemo with z3c.traverser. :-)

Seriously, the pluggable traverser and the plugins are the way to go. We use 
them for the lovely package heavily to do logic paths.

Regards,
Stephan
-- 
Stephan Richter
CBU Physics  Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] Blog package

2006-08-17 Thread David Pratt

Hi Stephan. Many thanks for this excellent example! :-)

Regards,
David

Stephan Richter wrote:

On Thursday 17 August 2006 10:32, David Pratt wrote:

Hi Stephan. Yes, I have seen this added recently with great interest.

:-) I'm hoping to experiment with this shortly to see how this works.

Can you point to any code using this at the moment that I may see a
practical demonstration of its integration. Many thanks.


Here is the basic idea:

  !-- Make IBlog traversing pluggable for browser access only --
  view
  for=.interfaces.IBlog
  type=zope.publisher.interfaces.browser.IBrowserRequest
  provides=zope.publisher.interfaces.browser.IBrowserPublisher
  factory=z3c.traverser.browser.PluggableBrowserTraverser
  permission=zope.Public
  /

  !-- Make sure container item traversal is available for all containers --
  subscriber
  for=zope.app.container.interfaces.IReadContainer
   zope.publisher.interfaces.browser.IBrowserRequest
  provides=z3c.traverser.interfaces.ITraverserPlugin
  factory=z3c.traverser.traverser.ContainerTraverserPlugin
  /

  !-- A plugin that traverses all years --
  subscriber
  for=.interfaces.IBlog
   zope.publisher.interfaces.browser.IBrowserRequest
  provides=z3c.traverser.interfaces.ITraverserPlugin
  factory=.blog.YearTraverser
  /

In Python something like that:

import zope.interface
from zope.location import location
from zope.publisher.interfaces import NotFound
from z3c.traverser import interfaces

class YearTraverser(object):
zope.interface.implements(interfaces.ITraverserPlugin)

def __init__(self, context, request):
self.context = context
self.request = request

def publishTraverse(self, request, name):
yearNumber = int(name)
if yearNumber  2000:
raise NotFound(name)
year = YearProxy()
location.locate(year, self.context, name)
return tag

Regards,
Stephan


___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] What kind of Zope3 classes are available?

2006-08-17 Thread Steve Juranich
I finally got my company to pony up and send me to the Zope 3 for
Developers class done by the Zope foundation in Fredricksburg, VA.  But
the lady in charge of making the arrangements was told that the class was
being phased out (it was also quickly removed from the Zope.com site).

I'm nearly positive that my company won't want to spend the dough on on-site
training (starting at $15,000), so what are my options?

I was told that there was a class /possibly/ being offered in California,
but there's nothing firm on that yet.

Can anybody clue me in on what classes might be available for me to get a
little better acquainted with Zope3?

I have the Zope 3 Developer's Handbook, and it's servicable, but I'm
afraid I'm much more of an auditory learner.

Anyway, any pointers would be appricated.

Thanks.

-- 
Steve Juranich
Tucson, AZ
USA

___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


Re: [Zope3-Users] What kind of Zope3 classes are available?

2006-08-17 Thread Tom Dossis
Steve Juranich wrote:
 Can anybody clue me in on what classes might be available for me to get a
 little better acquainted with Zope3?

http://lovelysystems.com/training/lovely-zope-3-training-copenhagen


 I have the Zope 3 Developer's Handbook, and it's servicable, but I'm
 afraid I'm much more of an auditory learner.

There's also 'Web Component Development with Zope3 -
http://worldcookery.com/About .  It offers a different slant to the
Developers Handbook.  Some parts of it are now out of date wrt Zope 3.3.
 There are also some tutorials on worldcookery.com.

Regards,
-Tom
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users