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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 00:58 schrieb 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

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

2006-02-11 Thread Helmut Merz
Am Freitag, 10. Februar 2006 22:18 schrieb Florian Lindner: in configure.zcml: ... name=registrationForm.html And I try to call it with: /++skin++centershock/cs/registerForm.html Is this really your code (registrationForm.html vs. registerForm.html)? Then a 404 shouldn't be a

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

2006-02-11 Thread Alen Stanisic
On Sat, 2006-02-11 at 10:10 +0100, Florian Lindner wrote: ForbiddenAttribute: ('blablubb', CS.centershock.centershock.Centershock object at 0xb757a46c) blablubb is a field of my interface. Any idea? Missing security declarations? Hmm.. not sure.. maybe the permission in your zcml

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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 10:18 schrieb Helmut Merz: Am Freitag, 10. Februar 2006 22:18 schrieb Florian Lindner: in configure.zcml: ... name=registrationForm.html And I try to call it with: /++skin++centershock/cs/registerForm.html Is this really your code

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

2006-02-11 Thread Garanin Michael
File /home/florian/Zope3/src/zope/schema/_bootstrapfields.py, line 171, in get return getattr(object, self.__name__) ForbiddenAttribute: ('blablubb', CS.centershock.centershock.Centershock object at 0xb757a46c) That is problem? You object don't have '__name__' attribute. See

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

2006-02-11 Thread Helmut Merz
Am Samstag, 11. Februar 2006 11:21 schrieb Florian Lindner: Am Samstag, 11. Februar 2006 10:18 schrieb Helmut Merz: Is this really your code (registrationForm.html vs. registerForm.html)? Then a 404 shouldn't be a surprise ;-) Yes, that was my fault. I've this registerForm.html in my

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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 12:44 schrieb Helmut Merz: Am Samstag, 11. Februar 2006 11:21 schrieb Florian Lindner: Am Samstag, 11. Februar 2006 10:18 schrieb Helmut Merz: Is this really your code (registrationForm.html vs. registerForm.html)? Then a 404 shouldn't be a surprise ;-)

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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 11:59 schrieb Garanin Michael: File /home/florian/Zope3/src/zope/schema/_bootstrapfields.py, line 171, in get return getattr(object, self.__name__) ForbiddenAttribute: ('blablubb', CS.centershock.centershock.Centershock object at 0xb757a46c) That is

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

2006-02-11 Thread Helmut Merz
Am Samstag, 11. Februar 2006 14:11 schrieb Florian Lindner: blablubb is a field of my interface. Of which interface? IRegistrationForm only or also ICentershock? (and no typos? ;-)) of IRegistrationForm and not of ICentershock I see... Seems to be OK for what you're wanting to do.

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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 16:51 schrieb Helmut Merz: Am Samstag, 11. Februar 2006 14:11 schrieb Florian Lindner: blablubb is a field of my interface. Of which interface? IRegistrationForm only or also ICentershock? (and no typos? ;-)) of IRegistrationForm and not of

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

2006-02-11 Thread Florian Lindner
Am Samstag, 11. Februar 2006 16:40 schrieb Garanin Michael: I still don't understand why it's necessary that the content object needs to implement or be adaptable to the schema from which the form is generated. Florian It's normal and it's right: content object MUST be adaptable to

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

2006-02-11 Thread Lennart Regebro
Look at the recend email from Helmut Merz [EMAIL PROTECTED] in this thread. He did exactly what I want and it works without an implements. Yes, because he is not using browser:form. -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/

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 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

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.

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] 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] 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] 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] Trying to use browser:form - 404

2006-02-09 Thread 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 class=.views.registrationForm permission=zope.Public