[Zope] Factory method needs superuser authentication

Christian Theune ct@gocept.com
Mon, 30 Jul 2001 17:48:47 +0200


--3lcZGd9BuhuYXNfi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi.

I wrote a product when reading the Developers Guide for
Zope 2.4. Now i ran into a problem I can't resolve:
The Product is registered successfully and i can click "add" in a folder vi=
ew.
Then it asks me some things on the add-form (everything is right til now).
But when i then click add, zope refuses to call the manage_addDefaultCrosst=
able
and prompts me for proper authentication. I have been logged in as manager,
and then changed to the superuser account. As superuser he allowed me to
call the factory method but refused to create the object (naturally).

What do i have to look for? I added some parts of the involved files.

Thanks again

Christian


--- GCrosstable.py
[...]

def manage_addDefaultCrosstable(self, id, REQUEST=3DNone):
        """Factory for instanciating a crosstable."""
	        handler=3DDefaultCrosstable(id, REQUEST)
		        self._setObject(id, handler)

--- __init__.py

import GCrosstable

def initialize(registrar):
    registrar.registerClass(
            GCrosstable.DefaultCrosstable,
	            constructors =3D (GCrosstable.manage_addDefaultCrosstableForm,=
 GCrosstable.manage_addDefaultCrosstable),
		            )

--- dtml/addCrosstable.dtml

<form action=3D"manage_addDefaultCrosstable." method=3D"post">
 <table cellspacing=3D"0" cellpadding=3D"2" border=3D"0">
  <tr>
 =20
--=20
Christian Theune - ct@gocept.com
gocept gmbh & co.kg - schalaunische strasse 6 - 06366 koethen/anhalt
tel.+49 3496 3099112 - fax.+49 3496 3099118 mob. - 0178 48 33 981

reduce(lambda x,y:x+y,[chr(ord(x)^42) for x in 'zS^BED\nX_FOY\x0b'])

--3lcZGd9BuhuYXNfi
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE7ZYHfdUt9X/gknwIRAhfbAKCvO2VkjwI6gyeyVahHyYK1W3u5rwCaAtaQ
wUeA26vvGJSOD5Qk6YQEqRE=
=PDC+
-----END PGP SIGNATURE-----

--3lcZGd9BuhuYXNfi--