Hello,

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 *
class Main(Page):
def writeContent(self):
self.writeln('<h1>Running Apps</h1>')
for anApp in NSWorkspace.sharedWorkspace().launchedApplications():
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:

import tempfile
try:
tempfile._counter
def mktemp(suffix="", dir=None):
"""
User-callable function to return a unique temporary file name.

Duplicated from Python's own tempfile with the optional "dir"
argument added. This allows customization of the directory, without
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()
while 1:
i = tempfile._counter.get_next()
file = os.path.join(dir, pre + str(i) + suffix)
if not os.path.exists(file):
return file
except:
mktemp = tempfile.mktemp
b.bum



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to