Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Patch to support Autoreloading under Jython 2.5.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeremy Ouellette  
View profile  
 More options Sep 1, 9:02 pm
From: Jeremy Ouellette <jeremy.ouelle...@gmail.com>
Date: Tue, 1 Sep 2009 18:02:28 -0700 (PDT)
Local: Tues, Sep 1 2009 9:02 pm
Subject: Patch to support Autoreloading under Jython 2.5.0
Hello-

I recently started working with CherryPy 3.1.2 under Jython 2.5.0, and
everything seems to work very nicely so far with the exception of one
minor threading patch I found in a blog post and autoreloading.

To get autoreloading working, it seems raising a SystemRestart
exception is the correct mechanism on Jython (there's similar code in
the Django autoreload utility).  I updated the _do_execv method in
wspbus.py as follows:

    def _do_execv(self):
        """Re-execute the current process.

        This must be called from the main thread, because certain
platforms
        (OS X) don't allow execv to be called in a child thread very
well.
        """

        if sys.platform[:4] == 'java':
            from _systemrestart import SystemRestart
            raise SystemRestart
        else:
            args = sys.argv[:]
            self.log('Re-spawning %s' % ' '.join(args))
            args.insert(0, sys.executable)
            if sys.platform == 'win32':
                args = ['"%s"' % arg for arg in args]
            os.execv(sys.executable, args)

What's the appropriate mechanism to contribute patches to the
project?  I suspect I'll be working through more minor issues as I
continue working with CherryPy on Jython.

Thanks,
Jeremy


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Robert Brewer  
View profile  
 More options Sep 1, 11:04 pm
From: "Robert Brewer" <fuman...@aminus.org>
Date: Tue, 1 Sep 2009 20:04:01 -0700
Local: Tues, Sep 1 2009 11:04 pm
Subject: RE: [cherrypy-devel] Patch to support Autoreloading under Jython 2.5.0

Thanks!!

> What's the appropriate mechanism to contribute patches to the
> project?  I suspect I'll be working through more minor issues as I
> continue working with CherryPy on Jython.

http://www.cherrypy.org/newticket is best. There's a guest name/pw on
every page. If you end up doing a sizable chunk of work, join #cherrypy
on irc.oftc.net and we'll get you set up with a dev account.

Robert Brewer
fuman...@aminus.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Ouellette  
View profile  
 More options Sep 1, 11:23 pm
From: Jeremy Ouellette <jeremy.ouelle...@gmail.com>
Date: Tue, 1 Sep 2009 20:23:23 -0700 (PDT)
Local: Tues, Sep 1 2009 11:23 pm
Subject: Re: Patch to support Autoreloading under Jython 2.5.0
Excellent- just submitted it (apologies for the poorly formatted
defect text, pasted in the code and clicked submit before I realized
there was an "attach" option).

On Sep 1, 11:04 pm, "Robert Brewer" <fuman...@aminus.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google