473,320 Members | 1,883 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Preview of a Stackless Zope Application

Howdy,

I made a little demo of Stackless Zope.
It is just a quick hack to see how things
can work. The example is a long-running
Python method which "prints" lines to the
browser.
The key to this surprizing solution is
tasklets, channels, and thread pickling.

Let me know your thoughts...

http://www.centera.de/tismer/stackless/zope_demo

--
Christian Tismer :^) <mailto:ti****@tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/


Jul 18 '05 #1
5 1416
Christian Tismer wrote:

Let me know your thoughts...

http://www.centera.de/tismer/stackless/zope_demo


Seems to work only of I allow the site to set
a cookie and thus retrieve a session. But if so
doing the same thing the old fashioned way is
also very simple.

Istvan.

Jul 18 '05 #2
Istvan Albert wrote
Let me know your thoughts...

http://www.centera.de/tismer/stackless/zope_demo


Seems to work only of I allow the site to set
a cookie and thus retrieve a session. But if so
doing the same thing the old fashioned way is
also very simple.


your lack of imagination is rather stunning.

</F>


Jul 18 '05 #3
Christian Tismer <ti****@tismer.com> wrote in message news:<ma************************************@pytho n.org>...
Howdy,

I made a little demo of Stackless Zope.
It is just a quick hack to see how things
can work. The example is a long-running
Python method which "prints" lines to the
browser.
The key to this surprizing solution is
tasklets, channels, and thread pickling.

Let me know your thoughts...

http://www.centera.de/tismer/stackless/zope_demo

Does this mean we can implement a Seaside(smalltalk) like application server ?
How cool is that.

Regards,

Huy
Jul 18 '05 #4
Christian Tismer <ti****@tismer.com> writes:
Let me know your thoughts...

http://www.centera.de/tismer/stackless/zope_demo


The link

http://www.centera.de/tismer/stackle...pe_demo.pickle

sometimes gets a runtime error:

Zope has encountered an error while publishing this resource.

Error Type: RuntimeError
Error Value: You cannot __reduce__ the tasklet which is current.
Also I think you should make the demo go from 1 to 5 instead of 10, so
there's not so much button pushing.

Finally, as a non-Zope and non-Stackless user, I find the source code
incomprehensible. It would be much simpler in a conventional web
framework, especially if you can put a generator into a session
variable. Generator pickling would help with that, of course.
Jul 18 '05 #5
Huy Do wrote:
Christian Tismer <ti****@tismer.com> wrote in message news:<ma************************************@pytho n.org>...
http://www.centera.de/tismer/stackless/zope_demo

Please check the above URL again, I changed it a little,
to fit on smaller screens.
Does this mean we can implement a Seaside(smalltalk) like application server ?
How cool is that.


Oh yes (just looked into Seaside), I think it is very
much like that.
You can write one single program that deals with different
input of the user until his data form is filled correctly,
for instance.
It needs some design work to make the necessary framework
and to have a standard way to do this, but technically
it is solved.

If you have proposals, let me know.

ciao - chris
--
Christian Tismer :^) <mailto:ti****@tismer.com>
Mission Impossible 5oftware : Have a break! Take a ride on Python's
Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/
14109 Berlin : PGP key -> http://wwwkeys.pgp.net/
work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776
PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04
whom do you want to sponsor today? http://www.stackless.com/
Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Christian Tismer | last post by:
Dear friends, just by chance, I got into the position to try out Zope 2.7.0 beta 1/2, and since it needs Python 2.2.3 at least, and Stackless 3.0 was just ported to that, I tried to build Zope...
0
by: Christian Tismer | last post by:
Hi Stackless friends, There is a small update of the Stackless web site. The binaries are updated, the CVS address is corrected, and a few words about the Stackless Python Alliance to be...
0
by: Christian Tismer | last post by:
As already announced, the *********************************************** *** *** *** S t a c k l e s s S p r i n t *** *** ...
28
by: Matt Leslie | last post by:
Hi, I'm trying to use microthreads under stackless python, since they sound like exactly what I am after, but I am having very little success. I've got a fresh install of python 2.3.3 from...
13
by: Christian Tismer | last post by:
(re-sent and modified, after I recognized that my hardware-clock is broken, need a new note-buck) Dear community, I would love to publish Stackless 3.1, of course. Also I know that there is...
0
by: Unigroup of New York | last post by:
Content-Type: multipart/mixed; boundary="------------C465DF38DCB38DD2AF7117E0" Lines: 327 Date: Tue, 15 Feb 2005 23:36:38 -0500 NNTP-Posting-Host: 24.46.113.251 X-Complaints-To: abuse@cv.net...
21
by: godwin | last post by:
Hi all, I wanna thank Martin for helping out with my ignorance concerning execution of stored procedure with python. Now i have decided to write a web app that googles into my companies...
4
by: Xavier Morel | last post by:
Some time ago, I finally decided to check what Stackless was (exactly) and which were the theorical concepts behind it (continuations and all). I managed to find some documentations and papers,...
3
by: Rene Pijlman | last post by:
I have a productional Linux web server with a Python/Zope/Plone. Now I'd like to install a non-Zope Python/ZODB application on the same server. What is the recommended way of doing that? Option...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.