Re: [Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Tom Dossis
Darryl Cousins wrote: >> >>> from zope.testbrowser import Browser >> >>> browser = Browser() >> >>> browser.addHeader('Authorization', 'Basic mgr:mgrpw') oops: >> >>> browser = Browser('http://localhost/contents.html') # should be browser.open('http://localho

Re: [Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Darryl Cousins
Hi again, Sorry, I made an error in the previous post when I stated that ftesting.zcml is not being parsed. It is in fact being parsed. But I still can't figure why the authentication header is not allowing the testbrowser object to 'view' @@contents.html. Regards, Darryl Cousins On Wed, 2006-0

Re: [Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Baiju M
On 6/28/06, Darryl Cousins <[EMAIL PROTECTED]> wrote: Hi All, I'm having trouble getting started with testbrowser. The problem is that zopeinstance/etc/ftesting.zcml is not being read. Could someone help me get started here please? The doc test - zopeinstance/lib/python/mypkg/browser/README.tx

[Zope3-Users] Getting started with testbrowser

2006-06-27 Thread Darryl Cousins
Hi All, I'm having trouble getting started with testbrowser. The problem is that zopeinstance/etc/ftesting.zcml is not being read. Could someone help me get started here please? The doc test - zopeinstance/lib/python/mypkg/browser/README.txt: >>> from zope.testbrowser import Browser >>

[Zope3-Users] I18N question

2006-06-27 Thread Frank Burkhardt
Hi, I need a vocabulary that presents i18n'd entries to the user. That's not a problem, when only static data is used: from zope.app.i18n import MessageFactory _=MessageFactory('mpgsite') class MyVocabulary(SimpleVocabulary) def __init__(self): data={ 'foo':_(u'nice Foo'),

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-27 Thread Philipp von Weitershausen
Chris Withers wrote: > Philipp von Weitershausen wrote: >> class IKeyReference(zope.interface.Interface): >> """A reference to an object (similar to a weak reference). >> >> The references are compared by their hashes. >> """ >> >> There, that wasn't so hard... > > Well yeah, but it's

Re: [Zope3-Users] Re: Splitting ZODB ?

2006-06-27 Thread Chris Withers
Philipp von Weitershausen wrote: class IKeyReference(zope.interface.Interface): """A reference to an object (similar to a weak reference). The references are compared by their hashes. """ There, that wasn't so hard... Well yeah, but it's also not very explanatory ;-) If it's simi