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
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
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
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
>>
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'),
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
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