Re: [Zope3-Users] Registering adapter for ListSequence widget in tests

2006-09-06 Thread TAHARA Yusei
Hi. I think you should use zope.app.testing.ztapi.provideAdapter instead. See zope/app/form/browser/tests/test_objectwidget.py, this is a good example. -- TAHARA Yusei ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Philipp von Weitershausen
TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Philipp ___ Zope3-users mailing list

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread TAHARA Yusei
At Wed, 06 Sep 2006 09:29:15 +0200, Philipp von Weitershausen wrote: TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Oh, sorry. I did not know

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Philipp von Weitershausen
TAHARA Yusei wrote: At Wed, 06 Sep 2006 09:29:15 +0200, Philipp von Weitershausen wrote: TAHARA Yusei wrote: I think you should use zope.app.testing.ztapi.provideAdapter instead. No! ztapi.provideAdapter is discouraged. zope.component.provideAdapter is the recommended spelling. Oh, sorry. I

Re: [Zope3-Users] Re: Registering adapter for ListSequence widget in tests

2006-09-06 Thread Darryl Cousins
Ok. Thanks Tahara and Philipp. I am using component.provideAdapter. What I am having trouble with is registering ListSequenceWidget for use in a doctest. I believe the matching zcml from zope.form.browser configure is: view type=zope.publisher.interfaces.browser.IBrowserRequest

[Zope3-Users] need help on

2006-09-06 Thread Denis Shaposhnikov
Hi! I'm thinking on how to use Zope3 for my task and need some help. I have a web application which have different look for different users. Every user need to authenticate and have a some type like an Administrator, Operator, SomeManager, Just-A-User and so on. For example my webapp have an URL

Re: [Zope3-Users] Changing object type in Object field.

2006-09-06 Thread Stephan Richter
On Tuesday 04 July 2006 05:58, [EMAIL PROTECTED] wrote: *First question*: is this design (delegation to subobject implementing specific interface) reasonable, or in Zope I should do that other way? Yes. *Second question*: Can object implementing IDueDateDecider (inherited from IDecider) be

Re: [Zope3-Users] Zope 3 as WSGI app using mod_python

2006-09-06 Thread Stephan Richter
On Saturday 08 July 2006 06:06, Achim Domma wrote: Could somebody tell me what the status of this stuff is? Is it just an experiment which might be dropped in the future? Has somebody experiences to share? Well, first of all, we are totally committed to WSGI, so this support will not go away.

Re: [Zope3-Users] NEWBIE: Using Pluggable Auth in Zope 3

2006-09-06 Thread Stephan Richter
On Wednesday 12 July 2006 03:30, Nick Howden wrote: However, I appear to be stumbling at the very first block of how to initialise my zope3 product using ZCML to include the pluggable auth modules. Is there a document anywhere that will guide me through the process (I've read the

Re: [Zope3-Users] Laying out a Site

2006-09-06 Thread Stephan Richter
On Sunday 23 July 2006 17:24, Gabe Boys wrote: 1)       I create a skin and in that skin a new layer plus the default and rotterdam layers.  Then each view I have in the future, I put on the layer for my skin. In my projects we are not reusing rotterdam at all, because it has too much cruft.

Re: [Zope3-Users] Re: Newbie relationship question

2006-09-06 Thread Stephan Richter
On Thursday 27 July 2006 05:17, Carlo Cardelli wrote: - how do I get all my Customers instances? The Customer class is marked as 'Persistent' and 'IContentType'. You have several choices: 1. Register your customer object as a utility and then do utility lookups. In this case you can reuse

Re: [Zope3-Users] Formlib examples

2006-09-06 Thread Stephan Richter
On Thursday 10 August 2006 22:32, Darryl Cousins wrote: I am having an extraordinary amount of bother coming to grips with the formlib module. Could anyone offer up complex examples with multiple schemas and subforms; and as an extended topic, examples including custom fields and widgets. My

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

2006-09-06 Thread Stephan Richter
On Thursday 17 August 2006 16:39, Steve Juranich wrote: 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? Philipp is teaching a class in Copenhagen, which is full now, but maybe he is doing another one soon. I

Re: [Zope3-Users] need help on

2006-09-06 Thread Albertas Agejevas
On Wed, Sep 06, 2006 at 01:32:29PM +0400, Denis Shaposhnikov wrote: I'm thinking on how to use Zope3 for my task and need some help. I have a web application which have different look for different users. Every user need to authenticate and have a some type like an Administrator, Operator,

Re: [Zope3-Users] Simple Sources tutorial?

2006-09-06 Thread Stephan Richter
On Friday 25 August 2006 17:08, Alec Munro wrote: Anyone have a simple reference on the usage of sources? I'm in need of a vocabulary-like thing, and my understanding is that vocabularies have been replaced by sources, but I am unable to find any documentation on their use. There are numerous

Re: [Zope3-Users] need help on

2006-09-06 Thread Stephan Richter
On Wednesday 06 September 2006 05:32, Denis Shaposhnikov wrote: I'm thinking on how to use Zope3 for my task and need some help. I have a web application which have different look for different users. Every user need to authenticate and have a some type like an Administrator, Operator,

Re: [Zope3-Users] Groups, Principals and Permissions

2006-09-06 Thread Stephan Richter
On Friday 25 August 2006 05:18, Darryl Cousins wrote: So it 'appears' to me that the security looks up the groups differently? Or have I missed something? Your approach is all good. I cannot confirm having problems with groups and I am using them in a customer project. Regards, Stephan --

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread Stephan Richter
On Friday 01 September 2006 09:36, Thierry Florac wrote: I just discovered the z3c.extfile package that I'd like to use in my current Zope3 development. My question is simple : what are the requirements to use this package in a ZEO context with several servers ? We have not tried that yet,

Re: [Zope3-Users] Creating entries via direct HTML links

2006-09-06 Thread Stephan Richter
On Friday 01 September 2006 12:55, stephen tan wrote: How can I insert values using direct HTML links? http://localhost:port/insert_sql?id=234title=manageruser_id=345user_name =fred Why would you do this? This seems like an awful design. Regards, Stephan -- Stephan Richter CBU Physics

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-09-06 Thread Stephan Richter
On Sunday 27 August 2006 08:14, Darryl Cousins wrote: Doesn't pass. I can't figure how to use the test to test for what I expect - which is of course an exception. Two choices that I commonly use for debugging: 1. print browser.contents; this will fail right away, but shows you the HTML that

Re: [Zope3-Users] Functional Tests

2006-09-06 Thread Stephan Richter
On Tuesday 29 August 2006 16:51, David Johnson wrote: I decided it's about time to use functional tests.  I've been setting them up with the following code and I get the following error (I've never gotten it to work): Two comments: 1. Use zope.testbrowser 2. You must use the Zope 3

Re: [Zope3-Users] 4 questions from a newcomer

2006-09-06 Thread Stephan Richter
On Tuesday 05 September 2006 11:10, Christophe Combelles wrote: Hello, I'm currently spending all my time to learn zope3, and while searching some doc, I have gathered some useful links in the following wiki page : http://ccomb.free.fr/wiki/wakka.php?wiki=Zope3 (curr in french, but I will

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Denis Shaposhnikov
Albertas == Albertas Agejevas [EMAIL PROTECTED] writes: behaviour in Zope3? The simplest way as I see is use different skins? But how to dynamically change the skin to user's type? Albertas You can set the skin in a handler to BeforeTraverseEvent. Albertas You can find an example of such

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Denis Shaposhnikov
Stephan == Stephan Richter [EMAIL PROTECTED] writes: Stephan I think Albert's solution is okay, but I would also suggest Stephan that you should consider redirecting to a different URL for Stephan each user. Those different URLs could reflect the different Stephan skins. Do you mean to

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Albertas Agejevas
On Wed, Sep 06, 2006 at 03:32:45PM +0400, Denis Shaposhnikov wrote: Could somebody explain me how to find such information by myself. The my main problem with Zope3 is that I don't known how Zope is working as whole. I mean, what happend and where. I know about ++apidoc++ but it seems no so

Re: [Zope3-Users] 4 questions from a newcomer

2006-09-06 Thread Thierry Florac
Le mercredi 06 septembre 2006 06:54 -0400, Stephan Richter a crit: On Tuesday 05 September 2006 11:10, Christophe Combelles wrote: 2) utf-8 error in i18nfile -- Why do I always get an error when I try to add some utf-8 text into an i18nfile? I just add an

Re: [Zope3-Users] Formlib examples

2006-09-06 Thread Darryl Cousins
Cheers Stephan, I've made quite a bit of progress since my posting of almost a month ago with using formlib, espicially with more complex widgets. By keeping on reading the code and debugging I am getting (slowly) a grip on it. mpg.de has a good short tutorial that helped me with a

Re: [Zope3-Users] Groups, Principals and Permissions

2006-09-06 Thread Darryl Cousins
Hi Stephan, I forget already what I was doing wrong but after some digging in the code I must have found what I was missing. Thanks, Darryl On Wed, 2006-09-06 at 06:35 -0400, Stephan Richter wrote: So it 'appears' to me that the security looks up the groups differently? Or have I missed

Re: [Zope3-Users] Registering adapter for ListSequence widget in tests

2006-09-06 Thread Darryl Cousins
Cheers Stephan, Yup. I added: provideAdapter(CollectionInputWidget,[ISequence, \ ...IBrowserRequest], \ ...IInputWidget) To the test and now more form can be rendered in the doctest. Many thanks, Darryl On Wed, 2006-09-06 at 06:58

Re: [Zope3-Users] Re: pau, testbrowser, HTTP Error 403: Forbidden

2006-09-06 Thread Darryl Cousins
On Wed, 2006-09-06 at 06:45 -0400, Stephan Richter wrote: On Sunday 27 August 2006 08:14, Darryl Cousins wrote: Doesn't pass. I can't figure how to use the test to test for what I expect - which is of course an exception. Two choices that I commonly use for debugging: 1. print

[Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Baiju M
Hi all, (This is about : http://kpug.zwiki.org/Zope3Distilled) This is yet another update of book progress. Few days back I have requested Stephan Richter for using Zope 3 Book's [1] content in this work. Now I got a reply from him, so we can use his works. I have added attribution

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Benji York
Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the Distilled name. I believe computer book titles of that form are protected by an Addison-Wesley trademark. -- Benji York Senior Software Engineer Zope Corporation

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Baiju M
On 9/6/06, Benji York [EMAIL PROTECTED] wrote: Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the Distilled name. I believe computer book titles of that form are protected by an Addison-Wesley trademark. How can I verify

Re: [Zope3-Users] Re: Newbie relationship question

2006-09-06 Thread Carlo Cardelli
Stephan Richter wrote: On Thursday 27 July 2006 05:17, Carlo Cardelli wrote: - how do I get all my Customers instances? The Customer class is marked as 'Persistent' and 'IContentType'. You have several choices: 1. Register your customer object as a utility and then do utility lookups. In

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Benji York
Baiju M wrote: On 9/6/06, Benji York [EMAIL PROTECTED] wrote: Baiju M wrote: (This is about : http://kpug.zwiki.org/Zope3Distilled) I recommend you verify that you can use the Distilled name. I believe computer book titles of that form are protected by an Addison-Wesley trademark.

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread +lupa+
One way is to use the US Patent and Trademark website search. Here is a link to a search for Addison-Wesley in ALL fields there is no mention of distilled being registered as a word mark (not trademark, those are for logos and such).

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread Bernd Dorn
On 01.09.2006, at 15:36, Thierry Florac wrote:   Hi, I just discovered the "z3c.extfile" package that I'd like to use in my current Zope3 development. My question is simple : what are the requirements to use this package in a ZEO context with several servers ?no problem, as stephan said you just

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread David Pratt
Thierry, you may want to consider blobs when they become generally available through zodb. It takes care of the management details for ZEO and files. Regard, David Bernd Dorn wrote: On 01.09.2006, at 15:36, Thierry Florac wrote: Hi, I just discovered the z3c.extfile package that I'd

Re: [Zope3-Users] 4 questions from a newcomer

2006-09-06 Thread Martijn Faassen
Thierry Florac wrote: [snip] I had the same problem in my french site where we use many accentuated characters. The solution I use until now is just to switch my Python interpreter to use UTF-8 as default encoding, via the site.py file of my Python distribution... If it works for you, so be

Re: [Zope3-Users] 4 questions from a newcomer

2006-09-06 Thread Martijn Faassen
Stephan Richter wrote: [snip] 4) workflow: Where is zope.app.workflow? It has never been released with Zope 3, just as an add-on package. People are now encouraged to use zope.wfmc and zope.app.wfmc. There is also a z3lab extension specifically for document workflows. If you

Re: [Zope3-Users] z3c.extfile and ZEO ?

2006-09-06 Thread Thierry FLORAC
On Wed, 2006-09-06 at 14:20 -0300, David Pratt wrote: Thierry, you may want to consider blobs when they become generally available through zodb. It takes care of the management details for ZEO and files. Is there any planned release date for this feature ? Do you think that it could be

Re: [Zope3-Users] need help on skins

2006-09-06 Thread Stephan Richter
On Wednesday 06 September 2006 07:51, Denis Shaposhnikov wrote: Stephan == Stephan Richter [EMAIL PROTECTED] writes:  Stephan I think Albert's solution is okay, but I would also suggest  Stephan that you should consider redirecting to a different URL for  Stephan each user. Those different

Re: [Zope3-Users] Re: Newbie relationship question

2006-09-06 Thread Stephan Richter
On Wednesday 06 September 2006 09:58, Carlo Cardelli wrote: 1. Register your customer object as a utility and then do utility lookups. In this case you can reuse code in zope.app.component.vocabulary. 2. You probably have a convention where to find customers, like a CustomerContainer.

[Zope3-Users] principal annotation alternative?

2006-09-06 Thread Hassan Alirezaei
hello guys. I have been trying to make a homepage that users can register and have their own pages which they can change their settings. I also want these setting to be adjustable by the site owner as well. I hear that I can not use Principal Annotations anymore because principals are not

[Zope3-Users] Page Template not interpreted

2006-09-06 Thread Sébastien VINOT
Hello, I'm working with Philipp Von Weitershausen's book and I get a strong result concerning the Customizing a site's layout (chapt. 8) : After setting up all the files my object receipt displays a page which contains (on the code) the metal tags. I've reduced the receiptview.pt to a title

Re: [Zope3-Users] principal annotation alternative?

2006-09-06 Thread Stephan Richter
On Wednesday 06 September 2006 16:55, Hassan Alirezaei wrote: I have been trying to make a homepage that users can register and have their own pages which they can change their settings. I also want these setting to be adjustable by the site owner as well. I hear that I can not use Principal

Re: [Zope3-Users] Page Template not interpreted

2006-09-06 Thread Stephan Richter
On Wednesday 06 September 2006 17:09, Sébastien VINOT wrote: I'm a bit disappointed because I check several times my code and find nothing different with the example. Does someone has any idea where it can come from ? Your macro is correctly looked up, but it is not rendered and the byte code

[Zope3-Users] Re: z3c.extfile and ZEO ?

2006-09-06 Thread Philipp von Weitershausen
Thierry FLORAC wrote: On Wed, 2006-09-06 at 14:20 -0300, David Pratt wrote: Thierry, you may want to consider blobs when they become generally available through zodb. It takes care of the management details for ZEO and files. Is there any planned release date for this feature ? Do you think

Re: [Zope3-Users] Simple Sources tutorial?

2006-09-06 Thread Fred Drake
On 9/6/06, Stephan Richter [EMAIL PROTECTED] wrote: I still use vocabularies. I still don't get sources. Vocabularies have not been deprecated yet. I think sources have to become much more developer-friendly before finding wide-spread support. Odd that you should mention this. ;-) We have a

Re: [Zope3-Users] Zope 3 Distilled book update 3

2006-09-06 Thread Baiju M
Thanks Benji and Lupa for your suggestions. I am going to change the book title now itself to avoid problems in future. I finalised a simple title for this book, Zope Guide. Yes, no 3 :) Regards, Baiju M ___ Zope3-users mailing list