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
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
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
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
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"
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
), 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
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
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
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
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
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
---
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
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
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
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
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
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:/
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-
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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/
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
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
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
--
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
#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
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
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
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
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
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
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
---
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
50 matches
Mail list logo