I am a long time WebObjects / Java / Python / Cocoa / NeXT / Lisp / etc
developer that has been building [mostly WebObjects] based internet
related apps/sites for quite a while now.
WebWare seems quite interesting from what little I have played with it
so far. To say the least.
So, far I have had zero trouble installing mod_webkit and working with
WebWare on OS X (save for Python 2.3 incompatibilities, but that is a
problem of my own making).
My next step is to figure out object persistency. My mind is wrapped
around relational based persistency simply because that has been what I
have been doing for a long time (and because I already have a
relational database-- in FrontBase-- full of data in a particular
schema that I wish to interact with from WebWare).
And, yes, WebWare works w/PyObjC -- if anyone is on OS X and wants to
have full access to the Objective-C frameworks, it seems to work.
There will be threading issues, but those are being resolved.
from WebKit.Page import Page
from AppKit import *
for anApp in
self.writeln('%s<br />' % anApp['NSApplicationName'])
The tempfile issue.
The tempfile module has changed in Python 2.3. Specifically, mktemp()
can now take a directory argument, but _counter has been eliminated
from the module. This breaks PSP.
This is the [slightly bogus, admittedly] fix I am successfully using:
def mktemp(suffix="", dir=None):
User-callable function to return a unique temporary
Duplicated from Python's own tempfile with the optional
argument added. This allows customization of the
having to take over the module level variable, tempdir.
@@ 2002-12-08 ce: should submit this to Python
if not dir: dir = tempfile.gettempdir()
pre = tempfile.gettempprefix()
i = tempfile._counter.get_next()
file = os.path.join(dir, pre + str(i) + suffix)
if not os.path.exists(file):
mktemp = tempfile.mktemp