40 lines
913 B
Python
40 lines
913 B
Python
from objectbroker import Persistence,NoPersistence
|
|
|
|
from hserver.api.WebCallable import WebCallable
|
|
from hserver.api.WebObject import WebObject,NavWebObject
|
|
|
|
from hserver.api.FileObject import FileObject
|
|
from hserver.api.SimpleObject import SimpleObject
|
|
|
|
from hserver.types.FormApplyable import FormApplyable
|
|
|
|
from hserver.api.SessionHandlerObject import SessionHandlerObject
|
|
from hserver.api.CookieSessionHandler import CookieSessionHandler
|
|
|
|
from hserver.api.WebFolder import WebFolder
|
|
|
|
from hserver.templates.DPage import DPage
|
|
|
|
import hserver.api
|
|
|
|
import sys
|
|
|
|
def ListKnownWebObjects():
|
|
r = []
|
|
exp = hserver.api.__dict__
|
|
for t in exp.values():
|
|
try:
|
|
if issubclass(t,WebObject) and issubclass(t,Persistence):
|
|
r.append(t)
|
|
except:
|
|
pass
|
|
return r
|
|
|
|
def findClass(classpath):
|
|
modname = ".".join(classpath[:-1])
|
|
classname = classpath[-1]
|
|
|
|
mod = sys.modules[modname]
|
|
|
|
return getattr(mod,classname)
|