Re: [Webware-discuss] Trying to show a BLOB image field from SQL Server 2000

2005-11-02 Thread deelan
need a table with a primary key (id), a blob field (data) and two convienice fields "size" and "mime_type". -- deelan. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Se

Re: [Webware-discuss] Corrupted File Uploads and mod_webkit2

2005-07-25 Thread deelan
gt; it's fixed in the cvs. later, deelan. --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need

Re: [Webware-discuss] no HTTP_AUTHORIZATION in request.environ

2005-04-12 Thread deelan
ot; header from your webware app. more info here: <http://wiki.w4py.org/httpauthentication.html> i have some working code that perform http basic auth (a SecurePage servlet) -- let me known if you need it :) HTH, deelan --- SF email is

Re: [Webware-discuss] several questions about webware

2005-01-31 Thread deelan
lloyd wrote: (...) i have the opportunity, an unrelated question (which may stem from my conception of contexts as isolated applications): in servlets, is it possible (or even desirable) to have paths interpreted relative to the context root? eg, using the example above, when i reference a chee

Re: [Webware-discuss] continuations in web programming (Correct mail)

2005-01-06 Thread deelan
Enrique Arizón wrote: I was thinking about an alternative design that works similar to the continuations usage but that (I think) is more intuitive from a software developer's point while keeping the same ideas. (...) A list of WVM instructions will look like: 0 "READ formLogin FROM USER"

Re: [Webware-discuss] How to kill a app ?

2004-12-01 Thread deelan
Douglas Soares de Andrade wrote: Hi ! Since we are speaking of this, where i can get a list of all python exceptions ? python's built-in exceptions live in system __builtin__ module. this is a rough list: >>> print [err for err in dir(__builtins__) if err.endswith('Error')] ['ArithmeticError', 'As

Re: [Webware-discuss] WebKit thread deaths cause found?

2004-10-16 Thread deelan
), output is: OK for 2 threads - 20 threads running in parallel 1000 HTH. --deelan --- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions

Re: [Webware-discuss] class variables not persistent across requests ?

2004-09-22 Thread deelan
t.s = self self.write(str(t)) but CacheServletClasses must be set to 1 if I want that webware caches servlet classes, hence page templates. cheers, deelan. --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project

Re: [Webware-discuss] DB Connection pooling (Random AppServer Lockups? )

2004-09-08 Thread deelan
to a new linux server and see if it fixes the problem, but at this time i'm pretty sure it's a database-related problem. thanks for your time. cheers, deelan. --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enter

TaskiKit (Was: [Webware-discuss] Toward a new release: request for thought and discussion)

2004-08-07 Thread deelan
useful to have some some of task scheduling inside webware. cheers, deelan. --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change

Re: [Webware-discuss] Random AppServer Lockups?

2004-07-20 Thread deelan
to do that since i've got some production code running with 0.8.1. cheers, deelan. --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1

Re: [Webware-discuss] Renaming a response.

2004-07-19 Thread deelan
ntent-Type', str(mimeType)) response.setHeader('Content-Length', '%d' % len(data)) response.setHeader('Content-Disposition', 'attachment; filename=%s' % str(name)) self.write(data) cheers, deelan ---

Re: [Webware-discuss] Random AppServer Lockups?

2004-07-17 Thread deelan
John Goodyear wrote: I get the feeling this is some kind of socket lockup, I've developed multi threaded socket servers in C before and I have seen similar lockups. I may take a look at the Adapter code and see if the problem lies there. hi there, this happened to me recently too, running suse l

Re: [Webware-discuss] Testing the CVS, strange 404 error

2004-06-16 Thread deelan
no, extrapathinfo is turned off. cheers, deelan. --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Cen

[Webware-discuss] Testing the CVS, strange 404 error

2004-06-16 Thread deelan
think this is confusing, i'm just requesting something one level below (note the trailing slash on http://localhost:8082/admin/, and BTW this should be handled by apache. the obvios workaround is to name differently the admin.js fi

Re: [Webware-discuss] Couple little additions to CVS

2004-05-28 Thread deelan
Ian Bicking wrote: I've made a couple small additions to CVS. You can now write your configuration files like Python modules, e.g.: #AppServer.config PrintConfigAtStartUp = True Verbose = True Host = '127.0.0.1' this is a welcome addition! Lastly, AutoReload now isn't triggered by updating servl

Re: [Webware-discuss] How to have a servlet return an image?

2004-05-20 Thread deelan
Sebastien Lemieux wrote: Hi fellow webwarer, I'm wondering if Webware can be adapted to return an image (png for instance) instead of a HTML page. I've used that trick through .cgi in the past to have dynamically generated images (most of these .cgi were coded in C). i've done a similar thing i

Re: [Webware-discuss] mod_webkit and file type mapping

2004-05-20 Thread deelan
l index.htm thanks a lot! cheers, deelan. --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http:/

[Webware-discuss] mod_webkit and file type mapping

2004-05-19 Thread deelan
d something, since it stille requires the http://host/wk/ prefix: DocumentRoot D:/vhosts/zyz ServerName xyz Action py-serverpages /wk/ AddType py-serverpages .py WKServer localhost 8086 SetHandler webkit-handler i would love to avoid URL-

[Webware-discuss] My way to mix Webware and Cheetah

2004-05-11 Thread deelan
ybe with some sys._getframe(1) hacking i could grab the caller instance but it's risky to rely on sys._getframe. note that zones are really only required to return strings, nothing prevent us to just return strings for simpler task--just check SitePage

Re: [Webware-discuss] Stand-alone appserver (Unhappy with Adapters)

2004-05-07 Thread deelan
need to have apache installed, you have to install only the package, run a batch file and point the browser to localhost:8080. cheers, deelan --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Mot

Re: [Webware-discuss] Stand-alone appserver (Unhappy with Adapters)

2004-05-05 Thread deelan
led it, created a work dir and run "AppServer.bat http". it started the app and listened to port 8080 for incoming web requests. again, very nice! cheers, deelan. --- This SF.Net email is sponsored by Sleepycat Software Learn develo

Re: [Webware-discuss] Excitement! :D

2004-04-15 Thread deelan
Shayne ONeill wrote: A simple problem that alot fo the examples use is that theres too much at once going on. none really have the simple "just decend from page and self.writeln() your output. self.request() has the form type enviro. Took me a while to figure it out. and don't forget little gotcha

Re: [Webware-discuss] Request headers and basic HTTP auth

2004-03-17 Thread deelan
adapt to my own needs. i'm pretty experimental these days and i wanted to accept http's PUT requests to upload contents to my personal photogalley (using quickput[1] command-line script). it was trivial to do except that, as i wrote, authentication headers didn't pass thru. later,

[Webware-discuss] Request headers and basic HTTP auth

2004-03-16 Thread deelan
it's needed to perform basic HTTP auth is to grab "Authorization" header value and do some trivial processing. it would be good to have such feature. thanks in advance. later, deelan --- This SF.Net email is sponsored by: IBM Linux

[Webware-discuss] XMLRPC and authentication

2004-02-04 Thread deelan
hi there, i was trying the XML-RPC servlet feature of webkit. i started using the demo supplied by the webware documentation [1]: from WebKit.XMLRPCServlet import XMLRPCServlet class xmlrpc(XMLRPCServlet): def exposedMethods(self): return ["multiply", "add", "mylist"] def multipl

[Webware-discuss] XMLRPC and authentication

2004-02-04 Thread deelan
hi there, i was trying the XML-RPC servlet feature of webkit. i started using the demo supplied by the webware documentation [1]: from WebKit.XMLRPCServlet import XMLRPCServlet class xmlrpc(XMLRPCServlet): def exposedMethods(self): return ["multiply", "add", "mylist"] def multipl

[Webware-discuss] XUL/Mime: if you plan to send weird files using WebKit...

2003-10-23 Thread deelan
thon enviroment (think about web hosting scenarios). hope this helps. later, deelan --- This SF.net email is sponsored by OSDN developer relations Here's your chance to show off your extensive product knowledge We want to know what y

[Webware-discuss] WebWare's FormFX package, progress report

2003-10-02 Thread deelan
otype is here: http://www.deelan.com/temp/formfx1.png wheen you don't specify a cheetah template for the form (like in the above example) a default totally unstyled HTML form will be used. i hope to have enough time to finalize a stable release in the next weeks. later, deelan

Re: [Webware-discuss] WebKit strategies and multiple "ThreadedAppServerService"

2003-10-01 Thread deelan
tup auto install c:\appdir_2>python NTService.py --startup auto install ... c:\appdir_n>python NTService.py --startup auto install it works! :) for the record i edited the following lines from NTService.py: appWorkPath = 'd:/WK/deelan-com' webwarePath = 'C:/Pyt

[Webware-discuss] WebKit strategies and multiple "ThreadedAppServerService"

2003-10-01 Thread deelan
or pages, "lib" folder in pythonpath for common classes and modules, mostly data-access code). since i'm pretty happy with the results, i just wanted to let you known the folder structure of a typical site, maybe other are looking for the a similar thing: D:\WK deelan-com

Re: [Webware-discuss] Webware method obsessed?

2003-09-19 Thread deelan
maybe _getActions() should really made "private" with the double underscore: __getActions()? mmm, but maybe it's just my sick Java instinct striking again. later, deelan --- This sf.net

[Webware-discuss] Webware method obsessed?

2003-09-18 Thread deelan
ecap, in hindsight, if you had to rewrite th webware class layout today would you guys make the same decisions? later, deelan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek h

Re: [Webware-discuss] Even more event driven forms (ala ASP.NET)?

2003-09-16 Thread deelan
us...). my head hurts, i need sleep. ^__^ later, deelan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing lis

[Webware-discuss] Even more event driven forms (ala ASP.NET)?

2003-09-16 Thread deelan
in any way a "pickle" expert, so i'm missing somethinbg obvious. i'm just sharing some ideas with you, in the hope that my experiments ring some bells! if you are interested i can post some sources later in the afternoon. i the case some work in th

Config files (Re: [Webware-discuss] Server scoped variables (in-memory))

2003-09-01 Thread deelan
figuration['key']. nice. later, deelan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing lis

[Webware-discuss] So you wanna configuration files, eh?

2003-08-28 Thread deelan
hi there, today i was trying to write a procedure to load per-context configuration information from a text file (once in memory a simply python dict) when context initializes. i thought to store loading instructions in contextInitialize() function inside context's __init__.py file, so i've do

Re: [Webware-discuss] Cheetah and Webware

2003-08-28 Thread deelan
great. later, deelan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/

Re: [Webware-discuss] Cheetah and Webware

2003-08-28 Thread deelan
Tim Roberts wrote: Can someone give me a 10,000 foot overview of Cheetah and Webware playing nicely together? I have a pure Webware site that I would like to play with converting to Cheetah. My experiments have not been, umm, entirely successful. My basic questions, I think, revolve around th

[Webware-discuss] extrapathinfo (Re: virtual paths without mod_rewrite)

2003-08-14 Thread deelan
ources to the client? i'm using apache 2, webware 0.8.0 and python 2.2.2 thanks in advance. later, deelan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available

Re: [Webware-discuss] extrapathinfo (Re: virtual paths without mod_rewrite)

2003-08-14 Thread deelan
27;ll drop extrapathinfo, given its current state it's too much tricky to get everything right. i'm gonna investigate apache's mod_rewrite and possibly generate static HTML pages upon request. thanks to all who partecipated. later, deelan --

Re: [Webware-discuss] Cheetah Template vs Plain Python Class

2003-07-26 Thread deelan
to them too. i can't say the same for pure python DOM calls. oh, by the way you can mix the two techniques together. there's a good intro about the template-approach here: http://jakarta.apache.org/velocity/user-guide.html cheetah is pretty close to velocity on

Re: [Webware-discuss] Split Hierarchy approach to Cheetah+Webware

2003-07-26 Thread deelan
#x27;My demo' then you your parallel TMPL you will write: $servlet.title to access title() output. i'm pretty amazed by the flexibility of the webware/cheetah combo! later, deelan --- This SF.Net email sponsored by: Free pre

Re: [Webware-discuss] Split Hierarchy approach to Cheetah+Webware

2003-07-23 Thread deelan
phics guy" to valid HTML and CSS layouts so i have to pass clean templates to him. this could help the process a lot. If I find anything particularly nice about this approach, or any major flaws, I'll post them to the Cheetah list. thanks. later, deelan

Re: [Webware-discuss] How-to include static HTML + TaskKit Q.

2003-07-21 Thread deelan
e an external TMPL is imported dynamically in the servlet using its name to lookup the right template fiel. a "baseservlet" subclass implements per-page servlet logic and set itself as ref servlet. i'm wondering if there's

[Webware-discuss] How-to include static HTML + TaskKit Q.

2003-07-17 Thread deelan
WeblogPage object: def includeFile(self, fname) included = file(fname, 'r') s = included.read() return s to include an arbitrary file, but i would like to known how you would solve this problem. thanks in advance. later, deelan PS: from the taskkit docs it's not clear to me how to

Re: [Webware-discuss] Half baked idea.

2003-06-29 Thread deelan
Ian Sparks wrote: Its a slow Friday afternoon, I hope folks will forgive my public musings. I was looking at Zope 3's configuration XML scheme, ZCML (1) and thought to myself how horrible using XML files is for web-site configuration tasks. same here, i worked with a .NET MVC framework with an XM

Re: [Webware-discuss] Webware caches objects way too much

2003-06-26 Thread deelan
Gary Perez wrote: Don't know about windows or apache2, but maybe use the OneShot.cgi adapter. It's slower, but loads/runs/shutsdown the appserver every hit. No caching issues. Once satisfied, use the mod_webkit module. Hope this helps. thanks to all who replied. i tried autoreload and seems to

[Webware-discuss] Webware caches objects way too much

2003-06-25 Thread deelan
does autoreload would solve all the above problems? how do you guys avoid the cache-issue while developing with webware? my pc is running: * python 2.2.2 * apache 2 on windows 2000 pro * webware 0.8 running as NT service any hint will be greatly appreciated. later, deelan ---

Re: [Webware-discuss] Newbie Quesiton about DB

2003-06-10 Thread deelan
7;sa', passwd='', cursorclass=DictCursor) later, deelan --- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never