[Zope-dev] Product Development

Andre Schubert andre.schubert@geyer.kabeljournal.de
Wed, 19 Apr 2000 15:01:14 +0200


Dies ist eine mehrteilige Nachricht im MIME-Format.
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I'm from german and  i started to program products for my zope. I
understand the work between zope and my python-product, but i have a
problem. I have a class with methods, one method is called person, to
add a person to a list. This method should be called from a from from a
dtml doc. But zope says the following.


<!--
http://server.geyer.kabeljournal.de:8080/Poll/Test_Mail_Liste/Test_Mail_Liste/person

-->

<!--
Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 214,
in publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 179,
in publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 202, in
zpublisher_exception_hook
    (Object: RoleManager)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 151,
in publish
  File
/usr/share/zope/lib/python/Products/SiteAccess/ChangeBehaviors.py, line
166, in traverse
  File /usr/lib/python1.5/site-packages/ZPublisher/HTTPResponse.py, line
511, in notFoundError
NotFound: (see above)

-->

Who can help me, it is very important. Thanks a lot

P.S.: My product files are atteached and sorry for my english

--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-py_auto_file;
 name="__init__.py"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="__init__.py"

aW1wb3J0IE1haWwKCm1ldGFfdHlwZXM9KAogICAgeyduYW1lJzogJ01haWxpc3QnLCdhY3Rp
b24nOiAnbWFuYWdlX2FkZE1haWxsaXN0Rm9ybSd9LAogICAgKQoKbWV0aG9kcz17CiAgICAn
bWFuYWdlX2FkZE1haWxsaXN0Rm9ybSc6IE1haWwuYWRkTWFpbGxpc3RGb3JtLAogICAgJ21h
bmFnZV9hZGRNYWlsbGlzdCc6IE1haWwuYWRkTWFpbGxpc3QsCiAgICB9CgpfX2FjX3Blcm1p
c3Npb25zX189KAogICAgKCdBZGQgTWFpbGxpc3QnLCgnbWFuYWdlX2FkZE1haWxsaXN0Rm9y
bScsJ21hbmFnZV9hZGRNYWlsbGlzdCcpKSwKICAgICgnQ2hhbmdlIE1haWxsaXN0JywgKCkp
LAogICAgKCdQZXJzb24nLCgncGVyc29uJywpLCgnTWFuYWdlcicsKSksCiAgICApCg==
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-dtml_auto_file;
 name="addMail.dtml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="addMail.dtml"

ICAgICAgICA8aHRtbD4KICAgICAgICAgIDxoZWFkPjx0aXRsZT5BZGQgTWFpbGxpc3Q8L3Rp
dGxlPjwvaGVhZD4KICAgICAgICAgIDxib2R5IGJnY29sb3I9IiNGRkZGRkYiPgoKICAgICAg
ICAgICAgPGgyPkFkZCBNYWlsPC9oMj4KCiAgICAgICAgICAgIDxmb3JtIGFjdGlvbj0ibWFu
YWdlX2FkZE1haWxsaXN0IiBtZXRob2Q9IlBPU1QiPgogICAgICAgICAgICAgIDx0YWJsZSBj
ZWxsc3BhY2luZz0iMiI+CgogICAgICAgICAgICA8dHI+CiAgICAgICAgICAgICAgPHRoIGFs
aWduPSJMRUZUIiB2YWxpZ249IlRPUCI+SWQ8L3RoPgogICAgICAgICAgICAgIDx0ZCBhbGln
bj0iTEVGVCIgdmFsaWduPSJUT1AiPgogICAgICAgICAgICAgICAgICAgIDxpbnB1dCB0eXBl
PSJURVhUIiBuYW1lPSJpZCIgc2l6ZT0iNTAiPgogICAgICAgICAgICAgICAgICA8L3RkPgog
ICAgICAgICAgICA8L3RyPgoKICAgICAgICAgICAgPHRyPgogICAgICAgICAgICAgIDx0aCBh
bGlnbj0iTEVGVCIgdmFsaWduPSJUT1AiPjxlbT5UaXRsZTwvZW0+PC90aD4KICAgICAgICAg
ICAgICA8dGQgYWxpZ249IkxFRlQiIHZhbGlnbj0iVE9QIj4KICAgICAgICAgICAgICAgICAg
ICA8aW5wdXQgdHlwZT0iVEVYVCIgbmFtZT0idGl0bGUiIHNpemU9IjUwIj4KICAgICAgICAg
ICAgICAgICAgPC90ZD4KICAgICAgICAgICAgPC90cj4KCiAgICAgICAgICAgIDx0cj4KICAg
ICAgICAgICAgICA8dGggYWxpZ249IkxFRlQiIHZhbGlnbj0iVE9QIj5TZXJ2ZXI8L3RoPgog
ICAgICAgICAgICAgIDx0ZCBhbGlnbj0iTEVGVCIgdmFsaWduPSJUT1AiPgogICAgICAgICAg
ICAgICAgICAgIDxpbnB1dCB0eXBlPSJURVhUIiBuYW1lPSJyZWNobmVyIiBzaXplPSI1MCI+
CiAgICAgICAgICAgICAgICAgIDwvdGQ+CiAgICAgICAgICAgIDwvdHI+CgogICAgICAgICAg
ICA8dHI+CiAgICAgICAgICAgICAgPHRkPjwvdGQ+CiAgICAgICAgICAgICAgPHRkPjxicj48
aW5wdXQgdHlwZT0iU1VCTUlUIiB2YWx1ZT0iQWRkIj48L3RkPgogICAgICAgICAgICA8L3Ry
PgoKICAgICAgICAgICAgPC90YWJsZT4KICAgICAgICAgICAgPC9mb3JtPgogICAgICAgICAg
PC9ib2R5PgogICAgICAgIDwvaHRtbD4K
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-dtml_auto_file;
 name="editMail.dtml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="editMail.dtml"

ICAgICAgICA8aHRtbD4KICAgICAgICAgIDxoZWFkPjx0aXRsZT5FZGl0IE1haWxsaXN0PC90
aXRsZT48L2hlYWQ+CiAgICAgICAgICA8Ym9keSBiZ2NvbG9yPSIjRkZGRkZGIj4KCiAgICAg
ICAgICA8IS0tI3ZhciBtYW5hZ2VfdGFicy0tPgoKICAgICAgICAgICAgPGgyPkVkaXQgTWFp
bGxpc3Q8L2gyPgoKICAgICAgICAgICAgPGZvcm0gYWN0aW9uPSJtYW5hZ2VfZWRpdCIgbWV0
aG9kPSJQT1NUIj4KICAgICAgICAgICAgICA8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JNSVQi
IHZhbHVlPSJFZGl0Ij48L3RkPgogICAgICAgICAgICA8L3RyPgoKICAgICAgICAgICAgPC90
YWJsZT4KICAgICAgICAgICAgPC9mb3JtPgogICAgICAgICAgPC9ib2R5PgogICAgICAgIDwv
aHRtbD4K
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-dtml_auto_file;
 name="formMail.dtml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="formMail.dtml"

PGgyPkFkZCBhIFBlcnNvbiB0byBMaXN0PC9oMj4KPHA+PCEtLSN2YXIgc2VydmVyLS0+PC9w
Pgo8cD5UaGVyZSBhcmUgY3VycmVudGx5IGluc2VydGVkPC9wPgogCjxmb3JtIGFjdGlvbj0i
PCEtLSN2YXIgaWQtLT4vcGVyc29uIiBtZXRob2Q9InBvc3QiPgo8aW5wdXQgdHlwZT0idGV4
dCIgbmFtZT0icGVyc29uX25hbWUiPgo8IS0tI2lmIGFjdGlvbi0tPgo8aW5wdXQgdHlwZT0i
aGlkZGVuIiBuYW1lPSJhY3Rpb24iIHZhbHVlPSI8IS0tI3ZhciBhY3Rpb24tLT4iPgo8IS0t
Iy9pZi0tPgo8aW5wdXQgdHlwZT0ic3VibWl0IiB2YWx1ZT0iUGVyc29uIj4KIAo8L2Zvcm0+
Cg==
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-dtml_auto_file;
 name="mail.dtml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="mail.dtml"

PGh0bWw+CjxoZWFkPgo8dGl0bGU+CjwvdGl0bGU+CjwvaGVhZD4KPGJvZHk+Cgo8IS0tI3Zh
ciBmb3JtLS0+Cgo8L2JvZHk+CjwvaHRtbD4K
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-py_auto_file;
 name="Mail.py"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="Mail.py"

aW1wb3J0IEFjcXVpc2l0aW9uCmltcG9ydCB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xlPSdFZGl0ZWQnLAoJ
CW1lc3NhZ2U9JzxzdHJvbmc+JXM8L3N0cm9uZz4gaGFzIGJlZW4gZWRpdGVkLicgJQoJCXNl
bGYuaWQsCgkJYWN0aW9uID0nLi9tYW5hZ2VfbWFpbicsCgkJKSAgICAgICAKCQkJCQkJCQkJ
CQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJICAgIAphZGRNYWlsbGlzdEZvcm09SFRNTEZp
bGUoJ2FkZE1haWwnLCBnbG9iYWxzKCkpCgpkZWYgYWRkTWFpbGxpc3Qoc2VsZixpZCx0aXRs
ZSxyZWNobmVyLFJFUVVFU1Q9Tm9uZSk6CiAgICBtYWlsPU1haWwoaWQsIHRpdGxlLCByZWNo
bmVyKQogICAgc2VsZi5fc2V0T2JqZWN0KGlkLCBtYWlsKQogICAgaWYgUkVRVUVTVCBpcyBu
b3QgTm9uZToKCXJldHVybiBzZWxmLm1hbmFnZV9tYWluKHNlbGYsUkVRVUVTVCkK
--------------A53670C4D2A5F1187FEB5D8C
Content-Type: application/x-unknown-content-type-dtml_auto_file;
 name="view.dtml"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="view.dtml"

PGh0bWw+PGhlYWQ+PHRpdGxlPjwvdGl0bGU+PC9oZWFkPjxib2R5Pgo8aDI+QWRkIGEgUGVy
c29uIHRvIExpc3Q8L2gyPgo8cD48IS0tI3ZhciBzZXJ2ZXItLT48L3A+CjxwPlRoZXJlIGFy
ZSBjdXJyZW50bHkgaW5zZXJ0ZWQ8L3A+Cgo8Zm9ybSBhY3Rpb249IjwhLS0jdmFyIGlkLS0+
L3BlcnNvbiIgbWV0aG9kPSJwb3N0Ij4KPGlucHV0IHR5cGU9InRleHQiIG5hbWU9InBlcnNv
bl9uYW1lIj4KPCEtLSNpZiBhY3Rpb24tLT4KPGlucHV0IHR5cGU9ImhpZGRlbiIgbmFtZT0i
YWN0aW9uIiB2YWx1ZT0iPCEtLSN2YXIgYWN0aW9uLS0+Ij4KPCEtLSMvaWYtLT4KPGlucHV0
IHR5cGU9InN1Ym1pdCIgdmFsdWU9IlBlcnNvbiI+Cgo8L2Zvcm0+CjwvYm9keT4KPC9odG1s
Pgo=
--------------A53670C4D2A5F1187FEB5D8C--