473,626 Members | 3,152 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1428
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******* *************** **************@ python.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(smallta lk) 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
incomprehensibl e. 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******* *************** **************@ python.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(smallta lk) 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
1150
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 with Stackless 3.0. It works very very well! After a few patches to get the includes right, here the installation instructions.
0
1240
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 founded are there. Also there is a link to the new Zope demo page on the new server. http://www.stackless.com/
0
1336
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 *** *** *** *********************************************** has now a settled date: It will take place in Berlin, March 10-14 2004.
28
4843
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 python.org, then downloaded the binary python2.3 release of stackless python from www.stackless.com. This contained three files: python23.dll, python23.lib, python23.exp
13
1507
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 some inherent bug in it. This is the state of the art sine four months. I am currently in a very tight project and have no time to dig into this problem.
0
2116
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 X-Trace: fe12.lga 1108528794 24.46.113.251 (Tue, 15 Feb 2005 21:39:54 MST) NNTP-Posting-Date: Tue, 15 Feb 2005 21:39:54 MST Xref: number1.nntp.dca.giganews.com comp.lang.python:398656
21
1595
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 proprietary database. I need to know whether zope is good for that job. But even the introduction to zope in the zope book was intimidating. Are there any simple options? If so plz tell me how i can obtain it and study it. I should say that i am new to web...
4
385
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, but most if not all of them are related to pre-2.0 Stackless. The issue is, I just can't seem to reach the Stackless website (http://stackless.com). Some specific pages of the site do work (http://stackless.com/spcpaper.htm), but the index itself...
3
1962
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 1: Install ZODB in the Python installation in the usual way. Should I expect problems when I install and run zope with that Python installation? Option 2: Do not install ZODB in the Python installation. Install Zope in the usual
0
8268
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8202
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8707
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8641
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8366
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7199
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4202
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2628
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.