[Zope] Two problems regarding security, and eval in zope 2.2.4

Manuel Amador (Rudd-O) Gerente de desarrollo Alpha amadorm@usm.edu.ec
Sat, 16 Dec 2000 14:34:49 -0500 (ECT)


Hello everyone,

I\'m having a little bit of trouble:
http://boeing:8080/manage_access <- traceback of the manage_Access view in the 
ROOT folder


Traceback (innermost last):
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 222, in 
publish_module
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 187, in 
publish
  File /usr/share/zope/lib/python/Zope/__init__.py, line 221, in 
zpublisher_exception_hook
    (Object: ApplicationDefaultPermissions)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 171, in 
publish
  File /usr/lib/python1.5/site-packages/ZPublisher/mapply.py, line 160, in 
mapply
    (Object: manage_access)
  File /usr/lib/python1.5/site-packages/ZPublisher/Publish.py, line 112, in 
call_object
    (Object: manage_access)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 255, in 
manage_access
    (Object: ApplicationDefaultPermissions)
  File /usr/share/zope/lib/python/App/special_dtml.py, line 120, in __call__
    (Object: access)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_String.py, line 
528, in __call__
    (Object: access)
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_With.py, line 146, 
in render
    (Object: _.namespace(valid_roles=valid_roles()))
  File /usr/lib/python1.5/site-packages/DocumentTemplate/DT_In.py, line 630, in 
renderwob
    (Object: permission_settings)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 182, in 
permission_settings
    (Object: ApplicationDefaultPermissions)
  File /usr/share/zope/lib/python/AccessControl/Role.py, line 177, in 
&lt;lambda&gt;
TypeError: (see above)




that was problem number one.

problem number two.

I\'d like to take the contents of a variable, and they being the name of an 
image object, render it on the web page as an IMG SRC, just like a <dtml-var 
image_id>.  I know this could be done with external python scripts and eval.  
But so far all i get is integeroverflows.



any ideas?  please cc: me because I\'m a little bit busy.  Thanks =)
----------------------------------------------------------
   Universidad Federico Santa Maria - Campus Guayaquil
	 Enviado por:  www.usm.edu.ec/computacion