[Zope] Creating a class in an external method

Pavlos Christoforou pavlos@gaaros.msrc.sunysb.edu
Fri, 7 May 1999 12:00:49 -0400 (EDT)


> 
> import Shared.bend.licapp
> 
> 
> 
> 
> def makedepts():
> 	"Create and display deptmartment list"
> 	
> 	thisapp=licapp.licapp()
> 	
> 	return 'hi'
> 

Unless you have some magic in your __init__.py then probably you need:

from Shared.bend import licapp

and if you need access to the namespace of the calling method then you
need to add self in the external method's argument list. ie:

def makedepts(self):
	...

- Pavlos