Chris Withers wrote:

Nicolas Georgakopoulos wrote:

I will try VerboseSecurity for a last chance ... if it doesn't work I will install the lates Zope release.


No, you haven't anyway taken me through, step by step, what you've done to get where you are...

What release of Zope are you using?

Chris

I unistall zope and install it again with version Zope-2.8.2-final and put your product on C:\Zope-Instance\Products\MailTemplates

I run Zope with admin priviledges and :

1.Created a folder with id MailTesting on the root.

2.Created a MailHost object with id MailHost inside MailTesting folder.

3.Created a MailTemplate object with the id my_mt and selected my MailHost object (from step 2) inside MailTesting folder.

4.Created a python script inside MailTesting folder with the id send_mail and change your code only in the part : mto=('[EMAIL PROTECTED]',[EMAIL PROTECTED]), --> mto='[EMAIL PROTECTED]',

5.Created a file with the id myfile.bin and loaded a txt file inside MailTesting folder.

6.Have changed in _all objects_ and in the _folder_ the _permissions_ on the security tab of each one (_I checked all the checkboxes!!!_)

7.Try to run the python script from the test tab ...........  :
It prompt for user name and password.
User name and password given correct and it keep prompting the same.
Some how this action log me out from Zope.

8.To check the error log I must log in again.There are 2 errors :

A) admin (admin) Unauthorized: You are not allowed to access 'add_file' in this context (when I was trying to test the script with my account )

B) Anonymous User (None) Unauthorized: <strong>You are not authorized to access this resource.</strong> (when I log on again to see the error log)

traceback for A:
Traceback (innermost last):
 Module ZPublisher.Publish, line 113, in publish
 Module ZPublisher.mapply, line 88, in mapply
 Module ZPublisher.Publish, line 40, in call_object
 Module Shared.DC.Scripts.Bindings, line 311, in __call__
 Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec
 Module Products.PythonScripts.PythonScript, line 323, in _exec
 Module None, line 6, in send_mail
  - <PythonScript at /MailTesting/send_mail>
  - Line 6
Unauthorized: You are not allowed to access 'add_file' in this context

traceback for B:
Traceback (innermost last):
 Module ZPublisher.Publish, line 104, in publish
 Module ZPublisher.BaseRequest, line 461, in traverse
 Module ZPublisher.HTTPResponse, line 684, in unauthorized
Unauthorized: <strong>You are not authorized to access this resource.</strong>

9.If I press cancel when I run the python script your product show me this error message:
................
<strong>Error Type: Unauthorized</strong><br/>
<strong>Error Value: You are not allowed to access 'add_file' in this context</strong><br/> ....................

Is that what you want ?

I will install VerboseSecurity (my last hope)....

c u ...
_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to