Re: Zusätzlicher folder_button

downtown <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,
da bin ich wieder unter meinem Klarnamen.
Leider bin ich bis jetzt noch nicht wirklich weiter gekommen...
Der Button ist erstellt und  die URL (Expression) ist
string:folder_push2:method. 
Die dafür nötigen Dateien sind erstellt (folder_push2.cpy und
folder_push.cpy.metadata) und es ist auch in der actions.xml eingetragen.
Das ganze funktioniert auch wenn ich die delete funktion benutze
Da ich aber mit paramiko eine SSH Verbindung aufbauen will (funktioniert
prima mit einem content type) wollte ich das in die folder_push2.cpy
eintragen und bekomme dann folgenden Fehler:

User Name (User Id)   admin (admin)
Request URL ***/folder_push2
Exception Type Unauthorized
Exception Value The container has no security assertions. Access to
'SSHClient' of (module 'paramiko' from
'/raid/opt/Python-2.4.6/lib/python2.4/site-packages/paramiko-1.7.4-py2.4.egg/paramiko/__init__.py')
denied.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.CMFFormController.ControllerPythonScript, line 161, in
__call__
    * Module Shared.DC.Scripts.Bindings, line 313, in __call__
    * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
    * Module Products.PythonScripts.PythonScript, line 328, in _exec
    * Module None, line 9, in folder_push2
      <ControllerPythonScript at /lims/folder_push2 used for
/lims/hiddenfolder>
      Line 9
    * Module AccessControl.ImplPython, line 727, in guarded_getattr
    * Module AccessControl.ImplPython, line 669, in aq_validate
    * Module AccessControl.ImplPython, line 563, in validate
    * Module AccessControl.ImplPython, line 333, in validate
    * Module AccessControl.ImplPython, line 808, in raiseVerbose

Unauthorized: The container has no security assertions. Access to
'SSHClient' of (module 'paramiko' from
'/raid/opt/Python-2.4.6/lib/python2.4/site-packages/paramiko-1.7.4-py2.4.egg/paramiko/__init__.py')
denied.

Also dachte ich das ich die Rechte verändern muss, das habe ich auch
probiert:
from AccessControl import ClassSecurityInfo 
da bekomme ich dann folgende Fehlermeldung:

Exception Value   The object is marked as private. Access to
'ClassSecurityInfo' of (module 'AccessControl' from
'/raid/zope-instances/lims/parts/zope2/lib/python/AccessControl/__init__.pyc')
denied.

Traceback (innermost last):

    * Module ZPublisher.Publish, line 119, in publish
    * Module ZPublisher.mapply, line 88, in mapply
    * Module ZPublisher.Publish, line 42, in call_object
    * Module Products.CMFFormController.ControllerPythonScript, line 161, in
__call__
    * Module Shared.DC.Scripts.Bindings, line 313, in __call__
    * Module Shared.DC.Scripts.Bindings, line 350, in _bindAndExec
    * Module Products.PythonScripts.PythonScript, line 328, in _exec
    * Module None, line 3, in folder_push2
      <ControllerPythonScript at /lims/folder_push2 used for
/lims/hiddenfolder>
      Line 3
    * Module AccessControl.ZopeGuards, line 292, in guarded_import
    * Module AccessControl.ImplPython, line 563, in validate
    * Module AccessControl.ImplPython, line 369, in validate
    * Module AccessControl.ImplPython, line 808, in raiseVerbose

Unauthorized: The object is marked as private. Access to 'ClassSecurityInfo'
of (module 'AccessControl' from
'/raid/zope-instances/lims/parts/zope2/lib/python/AccessControl/__init__.pyc')
denied. 
und jetzt weiss ich gerade nicht weiter...
Kann mir hier vielleicht jemand helfen?

Matthias
-- 
View this message in context: http://plone-regional-forums.221720.n2.nabble.com/Zusatzlicher-folder-button-tp5725060p5735702.html
Sent from the Zope & Plone - Germany mailing list archive at Nabble.com.


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.