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

2007-02-28 Thread Alex Cheng
Thanks. -- powered by python ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

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

2007-02-28 Thread Gary Poster
On Feb 28, 2007, at 5:37 PM, Paul Winkler wrote: On Wed, Feb 28, 2007 at 02:06:39PM -0700, Jeff Shell wrote: On 2/28/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: That's sorta what zope.publisher does. Actually, it figures that if the browser sends an Accept-Charset header, the s

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

2007-02-28 Thread Paul Winkler
On Wed, Feb 28, 2007 at 02:06:39PM -0700, Jeff Shell wrote: > On 2/28/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: > >That's sorta what zope.publisher does. Actually, it figures that if the > >browser sends an Accept-Charset header, the stuff that its sending to us > >would be encoded i

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

2007-02-28 Thread Jonathan
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!) Jonathan ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman

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

2007-02-28 Thread Jeff Shell
On 2/28/07, Philipp von Weitershausen <[EMAIL PROTECTED]> wrote: Jeff Shell wrote: > - Not have any encode / decode errors. 'ascii codec doesn't recognize > character ... at position ...'. I don't want to keep on bullying > through whenever this pops up. You can't just simply do str(some_unicode

[Zope3-Users] Re: principal without dot

2007-02-28 Thread Philipp von Weitershausen
Florian Lindner wrote: Hello, this is the entry from principals.zcml created by mkzopeinstance (a bit modified): but can I set a id that does not contain a dot? I ask because I display DC creator metadata on a page and something like Florian just looks better than something.Florian. Pri

Re: [Zope3-Users] Zope3 startup

2007-02-28 Thread Marius Gedminas
On Wed, Feb 28, 2007 at 11:47:15AM -0500, Giovannetti, Mark wrote: > Hello, > > One of the problems that I've had learning zope 3 (and python > at the same time) is that I did not understand how code 'got > executed'. This was a big stumbling block for someone coming > from a non-object oriented

Re: [Zope3-Users] Can I override IntId's subscriber in overrides.zcml?

2007-02-28 Thread Marius Gedminas
On Wed, Feb 28, 2007 at 04:35:07PM +, Alek Kowalczyk wrote: > I think I'll start another thread (based on > http://permalink.gmane.org/gmane.comp.web.zope.zope3.user/5692) because I > think > this is a new question. > > I would like to override IntId's subscriber (to catch NotYet exception th

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Marius Gedminas
Hi, On Wed, Feb 28, 2007 at 03:01:57PM +0100, Stefan Krumbiegel (Galileo Press) wrote: > 1. Is Zope3 already in use in productive environments? Where are they > (URLs)? Yes. http://launchpad.net/ is one example of a Zope 3 site that uses a SQL database instead of ZODB. > Now, where should we

[Zope3-Users] principal without dot

2007-02-28 Thread Florian Lindner
Hello, this is the entry from principals.zcml created by mkzopeinstance (a bit modified): but can I set a id that does not contain a dot? I ask because I display DC creator metadata on a page and something like Florian just looks better than something.Florian. Thanks, Florian _

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
Philipp von Weitershausen <[EMAIL PROTECTED]> writes: > > I don't think I would like to redesign my objects just because the > > addIntIdSubscriber does not catch NotYet when getting IKeyReference: > > > > adapter(ILocation, IObjectAddedEvent) > > def addIntIdSubscriber(ob, event): > > # ..

[Zope3-Users] Re: Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Philipp von Weitershausen
Philipp von Weitershausen wrote: 1. Is Zope3 already in use in productive environments? Where are they (URLs)? Sure, a lot of people on the zope3-users list are using Zope 3 in production. In particular, many Zope solution providers like Zope Corp, gocept, Infrae, Lovely Systems, etc. are usi

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Philipp von Weitershausen
Alek Kowalczyk wrote: FB <[EMAIL PROTECTED]> writes: It tries that, because it's handler is called by the container's __setitem__ method. Just write your own - like that: class MyContainer(BTreeContainer): def __setitem__(self,key,object) object.__parent__=self object.__name__=

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

2007-02-28 Thread Philipp von Weitershausen
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 last): ... urllib2.HTTPErr

[Zope3-Users] Zope3 startup

2007-02-28 Thread Giovannetti, Mark
Hello, One of the problems that I've had learning zope 3 (and python at the same time) is that I did not understand how code 'got executed'. This was a big stumbling block for someone coming from a non-object oriented background who was used to creating 'normal' websites--i.e. the html/cfm/whatev

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

2007-02-28 Thread Philipp von Weitershausen
Jeff Shell wrote: I continue to feel like an idiot in the face of Unicode. I finally understand what a unicode 'string' really is, and what encode and decode mean (they were previously interchangable in my mind). But I don't know the best practices. My desire is to: - Not have any encode / deco

[Zope3-Users] Can I override IntId's subscriber in overrides.zcml?

2007-02-28 Thread Alek Kowalczyk
Hi, I think I'll start another thread (based on http://permalink.gmane.org/gmane.comp.web.zope.zope3.user/5692) because I think this is a new question. I would like to override IntId's subscriber (to catch NotYet exception there) with my own subscriber. The original subscriber is defined as:

[Zope3-Users] Re: Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Philipp von Weitershausen
Stefan Krumbiegel (Galileo Press) wrote: [skipping questions I can't answer] 1. Is Zope3 already in use in productive environments? Where are they (URLs)? Sure, a lot of people on the zope3-users list are using Zope 3 in production. In particular, many Zope solution providers like Zope Corp,

Re: [Zope3-Users] default page based on roles?

2007-02-28 Thread Garanin Michael
Shailesh Kumar wrote: Hi, Is it possible to control the default page for a particular object based on the roles/permissions that a user has? The browser:defaultPage directive as such doesn't support this. Will I have to write a custom traverser or something like that for this? Thanx in a

[Zope3-Users] default page based on roles?

2007-02-28 Thread Shailesh Kumar
Hi, Is it possible to control the default page for a particular object based on the roles/permissions that a user has? The browser:defaultPage directive as such doesn't support this. Will I have to write a custom traverser or something like that for this? Thanx in advance. With regards, -Shai

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Garanin Michael
Stefan Krumbiegel (Galileo Press) wrote: 3.3 Also there is 'zsqlmap: Zope3 wrapper for SQLObject' (http://www.zope.org/Members/garanin/zsqlmap). This is not really a solution for us because the version number is 0.01b and the author says: 'NOTE: i tested only postgres.' Not really a capable prod

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
FB <[EMAIL PROTECTED]> writes: > It tries that, because it's handler is called by the container's __setitem__ > method. Just write your own - like that: > > class MyContainer(BTreeContainer): >def __setitem__(self,key,object) > object.__parent__=self > object.__name__=key >

Re: [Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Martin Aspeli
I am not an expert and I've never developed a big "pure Zope 3" application, but I have consumed a lot of Zope 3 ilbraries and concepts, from Plone on Zope 2, and mostly that's been a pleasant experience. Zope 3 is incredibly advanced and powerful. The concepts take some time to get used to if you

[Zope3-Users] Zope3 with RDBMS (avoiding ZODB)?

2007-02-28 Thread Stefan Krumbiegel (Galileo Press)
Hi all, our applications are actually running on Zope2. Now we are planning to change the framework to a modern MVC-style one. It will be a reimplementation of our applications from scratch. Two candidates are left over: Zope3 and Django. (We have already built a simple CMS with Django... it w

[Zope3-Users] zope.testbrowser and ZMI?

2007-02-28 Thread Basil Shubin
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 last): File "", line 1, in ? File "/usr/lib/pyth

Re: [Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread FB
Hi, On Wed, Feb 28, 2007 at 12:57:35PM +, Alek Kowalczyk wrote: > Tom Dossis <[EMAIL PROTECTED]> writes: > > I have another issue with IntIds and NotYet: > I have some BTreeContainer-derieved object which is short-living container. > It is never stored in ZoDB > - it is just a result of som

[Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-28 Thread Alek Kowalczyk
Tom Dossis <[EMAIL PROTECTED]> writes: I have another issue with IntIds and NotYet: I have some BTreeContainer-derieved object which is short-living container. It is never stored in ZoDB - it is just a result of some query to external system. It worked fine until I enabled IntIds utility. Now I

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

2007-02-28 Thread Andreas Jung
--On 28. Februar 2007 01:21:41 -0700 Jeff Shell <[EMAIL PROTECTED]> wrote: - HOW do I know what a browser has sent me? There doesn't seem to be a real way of handling this. Do I guess? - Know without a doubt when to encode, and when to decode. I guess the "proper" thing to do is to store

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

2007-02-28 Thread Jeff Shell
I continue to feel like an idiot in the face of Unicode. I finally understand what a unicode 'string' really is, and what encode and decode mean (they were previously interchangable in my mind). But I don't know the best practices. My desire is to: - Not have any encode / decode errors. 'ascii c

Re: [Zope3-Users] Dict Widget

2007-02-28 Thread FB
Hi, On Tue, Feb 27, 2007 at 09:24:10PM +0100, David Johnson wrote: > I've seen posts about this but I am confused. Is there a Dict widget? I > tried it and I received IInputWidget errors. Yes, I've written three Dict widgets: 1. A generic Dict widget (*,*) 2. A (Choice,*) Dict widget 3.