Re: [Zope3-Users] Generations of Zope and Enterprise Culture

2006-02-10 Thread Lennart Regebro
On 2/9/06, Edward Pollard [EMAIL PROTECTED] wrote: place to be. However, non-Zope development groups on campus have asked me: So, what will we do when another version of Zope comes along that will completely break backwards compatibility again? Nothing. Why would yo do anything? Zope3 will not

Re: [Zope3-Users] Generations of Zope and Enterprise Culture

2006-02-10 Thread Lennart Regebro
On 2/10/06, Edward Pollard [EMAIL PROTECTED] wrote: Is this a viable strategy? We'd really be starting from scratch, so would such an approach enhance our work or hold us back? Five is a viable strategy, but unless you need Zope2 products it will most likely just hold you back. It seems the

[Zope3-Users] updating objects in ZODB

2006-02-10 Thread Lorenzo Gil Sanchez
Hi, I have a question about updating the objects in a ZODB. Suppose I already have 100 objects of class A and then I modify class A adding a new attribute. Then I craete a new object of the class A and now I have two kind of instances of my class A, the old ones and the new one. How do I

Re: [Zope3-Users] updating objects in ZODB

2006-02-10 Thread Thierry FLORAC
On Fri, 2006-02-10 at 11:15 +0100, Lorenzo Gil Sanchez wrote: How do I update the old objects and add the new attribute to them? I can provide a default value for this attribute if that helps. I know this is a common issue with application updates. I also know that during the development

Re: [Zope3-Users] updating objects in ZODB

2006-02-10 Thread Lorenzo Gil Sanchez
Thierry FLORAC wrote: On Fri, 2006-02-10 at 11:15 +0100, Lorenzo Gil Sanchez wrote: How do I update the old objects and add the new attribute to them? I can provide a default value for this attribute if that helps. I know this is a common issue with application updates. I also know that during

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 11:37 schrieb Lennart Regebro: On 2/10/06, Florian Lindner [EMAIL PROTECTED] wrote: It does not implement registrationForm. But I thought that interfaces.registrationForm is only for providing the schema to build the form, because of the for=* it should

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Donnerstag, 9. Februar 2006 22:45 schrieb Bernd Dorn: On 09.02.2006, at 19:27, Florian Lindner wrote: Hello, I try to create a form build from a schema with browser:form: form name=registrationForm.html schema=.interfaces.registrationForm

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
Do you register the 'centershock'skin? Write this part of zcml-code, please. ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 14:05 schrieb Garanin Michael: Do you register the 'centershock'skin? Write this part of zcml-code, please. Yes, there are a number of page directives that use the centershock skin and are working correctly. Florian ___

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 14:22 +0100, Florian Lindner пишет: Am Freitag, 10. Februar 2006 14:05 schrieb Garanin Michael: Do you register the 'centershock'skin? Write this part of zcml-code, please. Yes, there are a number of page directives that use the centershock skin and are working

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Lennart Regebro
On 2/10/06, Florian Lindner [EMAIL PROTECTED] wrote: Right, but when you try to display a page that uses a schema for an object that does not implement that schema, it tries to look up an adapter between the object and the schema. And if that fails, the page will not be displayed. I

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
I simulate this for Buddy from buddydemo (see attached) == it is normal work for Buddy-object! I think you make mistakes: 1) __init__ for 'view' always get 3-parameters (self, context, request) 2) getData must return dictionary. configure xmlns=http://namespaces.zope.org/browser;

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 15:18 schrieb Garanin Michael: I simulate this for Buddy from buddydemo (see attached) == it is normal work for Buddy-object! I think you make mistakes: 1) __init__ for 'view' always get 3-parameters (self, context, request) I've removed __init__ from the view

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Rupert Redington
Florian Lindner wrote: Am Freitag, 10. Februar 2006 15:18 schrieb Garanin Michael: I simulate this for Buddy from buddydemo (see attached) == it is normal work for Buddy-object! I think you make mistakes: 1) __init__ for 'view' always get 3-parameters (self, context, request) I've removed

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Rupert Redington
Florian Lindner wrote: Also specifying an interface and calling the view from an object implementing this interface does not make it work. FYI - Florian, it appears we're doing something very similar - mines a signup/registration form too! Do you intend to submit the form data to a

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 17:18 +0300, Garanin Michael пишет: I simulate this for Buddy from buddydemo (see attached) == it is normal work for Buddy-object! for work my example don't forget insert implements interface=.test.registrationForm / to content class=.buddy.Buddy - tag.

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
I think 'browser:form' will be 'deprecated'. Try use 'zope.formlib' for new automatic-generated forms. It's easy and more undestandable and more flexibility. ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] zope3-users rejects mail

2006-02-10 Thread Florian Lindner
Hello, some (not all) of my postings to zope3-users are being rejected: Final-Recipient: rfc822; zope3-users@zope.org Action: failed Status: 5.0.0 Diagnostic-Code: X-Postfix; host mail.zope.org[63.240.213.173] said: 550 Error: Message content rejected (in reply to end of DATA command)

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
В Птн, 10/02/2006 в 17:47 +0100, Florian Lindner пишет: Am Freitag, 10. Februar 2006 15:55 schrieb Garanin Michael: I think 'browser:form' will be 'deprecated'. Try use 'zope.formlib' for new automatic-generated forms. It's easy and more undestandable and more flexibility. Hi, You have

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Garanin Michael
I've played with zope.formlib before that. I didn't manage to generate a entire form, just the input ... statemenets were generated, without any html headers or anything like that. So I need to add them manually with python code or a template. Can you tell me how I can generate a form.

[Zope3-Users] newbie design questions for UI to external data

2006-02-10 Thread Shaun Cutts
Hello, I'm trying to write a zope3 UI for data in an RDBMS with python business logic. (Hence updates shouldn't go directly to the database; queries are probably best off using the marshalling code in business logic as well, but could use direct query if its especially easy.) I was trying to

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Freitag, 10. Februar 2006 20:10 schrieb Garanin Michael: I've played with zope.formlib before that. I didn't manage to generate a entire form, just the input ... statemenets were generated, without any html headers or anything like that. So I need to add them manually with python code

Re: [Zope3-Users] New User: Zope 2, or Zope 3?

2006-02-10 Thread Stephan Richter
On Thursday 09 February 2006 12:03, Chris Cogdon wrote: That is really strange. I cannot find the SQL-based auth plugin either anymore. I know it exists; I was at the sprint it was written, I   still have the picture in front of me. Darn, Well, it certainly exists, because I installed

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Stephan Richter
On Thursday 09 February 2006 13:27, Florian Lindner wrote: Why that? Anybody knows? Any resolution? (I did not have time to read the entire thread carefully.) If not, this does seem like a bug. Regards, Stephan -- Stephan Richter CBU Physics Chemistry (B.S.) / Tufts Physics (Ph.D. student)

Re: [Zope3-Users] Generations of Zope and Enterprise Culture

2006-02-10 Thread Stephan Richter
On Thursday 09 February 2006 17:53, Max M wrote: Edward Pollard wrote: Second, the existence of Zope 3 has completely shot any support for Zope 2 continuation out of the water in our environment. Is this fair, or is there life left to the Zope 2 tree we've developed some experience in?

[Zope3-Users] Absolute url of an object

2006-02-10 Thread Paulus Zegwaard
Hi, Sorry if I ask a question that is already asked a gazillion times, but I was not able to find the obvious answer. I'm rather new to Zope 3 and I have done a fair amount of Zope 2 development and was used to be able to create dynamic menus by iterating over the objects in the root

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Alen Stanisic
On Fri, 2006-02-10 at 22:18 +0100, Florian Lindner wrote: Thanks for your example. But I've the same error, a 404. in views.py: from zope.formlib.form import EditForm from interfaces import IRegistrationForm class registrationForm(EditForm): form_fields = IRegistrationForm in

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Florian Lindner
Am Samstag, 11. Februar 2006 00:29 schrieb Alen Stanisic: On Fri, 2006-02-10 at 22:18 +0100, Florian Lindner wrote: Thanks for your example. But I've the same error, a 404. in views.py: from zope.formlib.form import EditForm from interfaces import IRegistrationForm class

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Alen Stanisic
On Sat, 2006-02-11 at 00:44 +0100, Florian Lindner wrote: I get a system error: 2006-02-11T00:41:25 ERROR SiteError http://horus:8080/++skin++centershock/cs/registrationForm.html Traceback (most recent call last): File /home/florian/Zope3/src/zope/publisher/publish.py, line 138, in

Re: [Zope3-Users] Absolute url of an object

2006-02-10 Thread Alen Stanisic
On Fri, 2006-02-10 at 14:48 -0800, Paulus Zegwaard wrote: But although I understand Zope 3 has something like that too, I'm unclear how to achieve that every object provides an absolute_url Objects that are contained provide ILocation interface __name__ - object name __parent__ - container

Re: [Zope3-Users] Absolute url of an object

2006-02-10 Thread Paulus Zegwaard
Hi Alen, Thanks a lot. I also begin to understand that in Zope 3 you typically create a package even for simple things, whereas in Zope 2 you often could get away with some scripts and ZPTs. It also seems to me that when the learning curve gets a little less steep writing a customized package

Re: [Zope3-Users] Trying to use browser:form - 404

2006-02-10 Thread Lorenzo Gil Sanchez
El vie, 10-02-2006 a las 22:18 +0100, Florian Lindner escribió: Am Freitag, 10. Februar 2006 20:10 schrieb Garanin Michael: And I try to call it with: /++skin++centershock/cs/registerForm.html whereas cs is a ICentershock object. It still gives a 404. Any guess what's wrong? Stupid

Re: [Zope3-Users] Absolute url of an object

2006-02-10 Thread Paulus Zegwaard
Hi, OK, thanks to Alen and with some further digging, I can sort of answering my own question, I found some answers here: zope3-for-zope2-developers.pdf from Phillip von Weitershausen. Thanks Phillip for thinking of these legions of poor old fashioned zopistas! ;-) So for the other newbies