Vedr. [Zope3-Users] Web Component Development with Zope 3 (2nd edition)

2007-03-01 Thread Torvald Bringsvor
--- Jonathan [EMAIL PROTECTED] skrev: For whoever may be interested... Amazon.com is finally shipping the second edition of Philipp's book (ordered Dec 6/06, shipped on Feb 24/07, arrived today!) I got mine from amazon.co.uk ages ago. Well, you are in for a good read then. -Torvald

Re: [Zope3-Users] What is the difference between acquisition and trivial?

2007-03-01 Thread Chris Withers
Alex Cheng wrote: Thanks. What 'trivial' are you referring to? cheers, Chris -- Simplistix - Content Management, Zope Python Consulting - http://www.simplistix.co.uk ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] Re: Unicode for Stupid Americans (like me)?

2007-03-01 Thread Raphael Ritz
Jeff Shell schrieb: [..] I feel like I know enough to squeak by, but that's no longer acceptable. Sometimes I quiver in terror, waiting for everything to fall down because of something so seemingly basic like strings/text. It may be a lot of technical debt, or it may be extremely easy to pay

[Zope3-Users] Default value for an interface attribute

2007-03-01 Thread Douglas Douglas
Hi everybody. I have this interface: class INews(IPage): A news page for the application. date = Date( title=_(uPublication Date), description=_(uThe intended date for this news), default=date.today(), required=False ) My problem is that I

[Zope3-Users] Re: zope.testbrowser and ZMI?

2007-03-01 Thread Basil Shubin
Philipp von Weitershausen wrote: Basil Shubin wrote: Hi friends! Hmm... strange thing... With this code I got: browser = Browser('http://localhost:8080/') browser.addHeader('Authorization', 'Basic admin:admin') browser.open('http://localhost:8080/manage') Traceback (most recent call

Re: [Zope3-Users] Re: zope.testbrowser and ZMI?

2007-03-01 Thread Stephan Richter
On Thursday 01 March 2007 10:17, Basil Shubin wrote:   browser.addHeader('Authorization', 'Basic admin:admin') This authorization is not correct. You need to use: manager.addHeader('Authorization', 'Basic mgr:mgrpw') At least this is the default. Regards, Stephan -- Stephan Richter CBU

Re: [Zope3-Users] Default value for an interface attribute

2007-03-01 Thread Maciej Wisniowski
I have this interface: class INews(IPage): A news page for the application. date = Date( title=_(uPublication Date), description=_(uThe intended date for this news), default=date.today(), required=False ) With formlib (in Five

[Zope3-Users] Re: Default value for an interface attribute

2007-03-01 Thread Raphael Ritz
Maciej Wisniowski schrieb: I have this interface: class INews(IPage): A news page for the application. date = Date( title=_(uPublication Date), description=_(uThe intended date for this news), default=date.today(), required=False ) With

Re: [Zope3-Users] Re: Default value for an interface attribute

2007-03-01 Thread Douglas Douglas
--- Raphael Ritz [EMAIL PROTECTED] wrote: How about checking whether the value of 'default' is a callable and if so call it to obtain the default value. That way defautl=date.today (without the ())should do what Douglas expects (maybe this is even the case already?). I tried

Re: [Zope3-Users] Re: Default value for an interface attribute

2007-03-01 Thread Maciej Wisniowski
How about checking whether the value of 'default' is a callable and if so call it to obtain the default value. Yup... but evaluation of this is done internally by Zope schema package in Field class I think. Seems for me that there is no way to define 'default' as callable. -- Maciej

Re: [Zope3-Users] Re: Unicode for Stupid Americans (like me)?

2007-03-01 Thread Paul Winkler
On Wed, Feb 28, 2007 at 09:08:03PM -0500, Gary Poster wrote: It's been years since I dug into this, but I'm better than 90% sure that the browser is expected to make its requests in the encoding of the response (i.e., the one set by Content-Type). It's been too long for me to tell you

Re: [Zope3-Users] Re: Default value for an interface attribute

2007-03-01 Thread Christian Theune
Hi, Am Donnerstag, den 01.03.2007, 16:54 +0100 schrieb Maciej Wisniowski: How about checking whether the value of 'default' is a callable and if so call it to obtain the default value. Yup... but evaluation of this is done internally by Zope schema package in Field class I think. Seems for

[Zope3-Users] Re: zope.testbrowser and ZMI?

2007-03-01 Thread Philipp von Weitershausen
Stephan Richter wrote: On Thursday 01 March 2007 10:17, Basil Shubin wrote: browser.addHeader('Authorization', 'Basic admin:admin') This authorization is not correct. You need to use: manager.addHeader('Authorization', 'Basic mgr:mgrpw') At least this is the default. In most Zope 3

[Zope3-Users] Widget for displaying Text das HTML

2007-03-01 Thread Florian Lindner
Hello, has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs? Like a text becomes: Hello,br / has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs?br / pA paragraph/ when rendered. Is something

Re: [Zope3-Users] Widget for displaying Text das HTML

2007-03-01 Thread Maciej Wisniowski
If not, how would you implement it? (just the concept, not the code) ;-) Take a look at 'Zope3 developer's handbook' by Stephan Richter (there is online version I think). You'll find a example of custom HTML field and widget there. It is not exactly what you're looking for but I think it may be

Re: [Zope3-Users] Widget for displaying Text das HTML

2007-03-01 Thread Christophe Combelles
Florian Lindner a écrit : Hello, has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs? Like a text becomes: Hello,br / has anyone yet developed a widget for displaying text as HTML and keeping the linebreaks / paragraphs?br / isn't it just

[Zope3-Users] Re: zope.testbrowser and ZMI?

2007-03-01 Thread Basil Shubin
Philipp von Weitershausen wrote: Stephan Richter wrote: On Thursday 01 March 2007 10:17, Basil Shubin wrote: browser.addHeader('Authorization', 'Basic admin:admin') This authorization is not correct. You need to use: manager.addHeader('Authorization', 'Basic mgr:mgrpw') At least this