[Zope3-Users] Trying to use browser:form -> 404
Florian Lindner
mailinglists at xgm.de
Sat Feb 11 05:21:07 EST 2006
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 (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 history and tend to
select it accidently. But it's still a error:
2006-02-11T10:04:48 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
publish
result = publication.callObject(request, object)
File "/home/florian/Zope3/src/zope/app/publication/zopepublication.py", line
161, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/home/florian/Zope3/src/zope/publisher/publish.py", line 113, in
mapply
return debug_call(object, args)
File "/home/florian/Zope3/src/zope/publisher/publish.py", line 119, in
debug_call
return object(*args)
File "/home/florian/Zope3/src/zope/formlib/form.py", line 738, in __call__
self.update()
File "/home/florian/Zope3/src/zope/formlib/form.py", line 707, in update
self.setUpWidgets()
File "/home/florian/Zope3/src/zope/formlib/form.py", line 770, in
setUpWidgets
adapters=self.adapters, ignore_request=ignore_request
File "/home/florian/Zope3/src/zope/formlib/form.py", line 337, in
setUpEditWidgets
field = form_field.field
AttributeError: 'str' object has no attribute 'field'
when using form_fields = IRegistrationForm.
If I change it to form_fields = form.Fields(IRegistrationForm) like proposed
in another mail I get another error:
2006-02-11T10:07:02 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
publish
result = publication.callObject(request, object)
File "/home/florian/Zope3/src/zope/app/publication/zopepublication.py", line
161, in callObject
return mapply(ob, request.getPositionalArguments(), request)
File "/home/florian/Zope3/src/zope/publisher/publish.py", line 113, in
mapply
return debug_call(object, args)
File "/home/florian/Zope3/src/zope/publisher/publish.py", line 119, in
debug_call
return object(*args)
File "/home/florian/Zope3/src/zope/formlib/form.py", line 738, in __call__
self.update()
File "/home/florian/Zope3/src/zope/formlib/form.py", line 707, in update
self.setUpWidgets()
File "/home/florian/Zope3/src/zope/formlib/form.py", line 770, in
setUpWidgets
adapters=self.adapters, ignore_request=ignore_request
File "/home/florian/Zope3/src/zope/formlib/form.py", line 373, in
setUpEditWidgets
value = field.get(adapter)
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>)
blablubb is a field of my interface.
Regards,
Florian
More information about the Zope3-users
mailing list