"Spring Python is an offshoot of the Java-based Spring Framework and Spring Security, targeted for Python. Spring provides many useful features, and I wanted those same features available when working with Python." -- Greg Turnquist, project lead

Home

Objective comparison to Zope Component Architecture

Spring Python forum - Mon, 02/08/2010 - 08:59
Is there an objective comparison of Spring Python to Zope Component Architecture (ZCA) anywhere ?
Would such a thing be relevant/useful ?

Event-driven architecture

Spring Python forum - Mon, 02/08/2010 - 08:50
Hi,

Is there an easy way to incorporate events into Spring Python (i.e. in process not just using JMS) ?

Pre-order your copy of Spring Python 1.1 book today!

Spring Python blog - Wed, 02/03/2010 - 17:04
Pre-order your copy of the Spring Python book! “Create powerful and versatile Spring Python applications using pragmatic libraries and useful abstractions Maximize the use of Spring features in Python and develop impressive Spring Python applications Explore the versatility of Spring Python by integrating it with frameworks, libraries, and tools Discover the non-intrusive Spring way of wiring together Python components Packed [...]

Error installing Spring Python on jython 2.5.1

Spring Python forum - Thu, 01/28/2010 - 16:33
I checked out r738 of trunk/springpython, changed directory to src, and tried to run jython build.py install (based on the README.TXT which indicates to do the same, but with setup.py, which isn't present).

The setup seemed to be running fine, then came to the following error:

Quote: running install
...
copying springpython\LICENSE.txt -> build\lib\springpython
running build_scripts
creating build\scripts-2.5
error: file 'plugins\coily' does not exist Sure enough, the only file in plugins is coily-template. I copied plugins/coily-template to plugins/coily and now the setup completed successfully.

Was that the correct fix? If not, what do you recommend to install Spring Python under jython?

Spring Python 1.1.0.M1 Released

Spring Python forum - Fri, 01/22/2010 - 15:37
We're please to announce the release of Spring Python 1.1.0.M1.

Read SpringSource's release notice.

Spring Python 1.1.0.M1 Released

Spring Python blog - Fri, 01/22/2010 - 15:15
See http://www.springsource.org/node/2282 for the official announcement. I chatted with Mark Pollack earlier this week and asked if we wouldn’t mind me taking over. He said no problem, and I was able to get keys later to push releases up to SpringSource’s S3 site. This release is first milestone in our new 1.1 baseline. More features, improvements, and [...]

how to get the last inserted ID from the most recent INSERT

Spring Python forum - Mon, 12/21/2009 - 18:02
Hi,

Does any one know how to get the last inserted ID from the most recent INSERT on an AUTO_INCREMENT field through spring-python?

For example, lets suppose that I've defined pets.id as AUTO_INCREMENT below, if I have:

Code:     def addPet(self, owner_id, name, birthDate, type):
        """Store a new pet in the database."""
        rowsAffected = self.database_template.execute("""
                INSERT INTO pets
                (id, name, birth_date, type_id, owner_id)
                values
                (null, ?, ?, ?, ?)
            """, ( name, birthDate, type, owner_id))
        return rowsAffected How could I get the id of the most recent insert into the pets table?
Can the database_template return the id, instead of the rows affected?
Do I need to create another mysql query and make another trip to the db to find out which is the latest pets.id value?
Please let me know, I am looking forward to hearing news from you. Thank you very much in advance.

I’m going to work for SpringSource

Spring Python blog - Sat, 12/12/2009 - 14:05
Starting January 11th, I’m going to be working for SpringSource. I told my daughter, Audrey, and look what she had to say! I’m glad she approves. No, they didn’t hire me to work on Spring Python. That is still in my spare time. Hopefully, I can become sponsor and not have to bug Mark Pollack. Anyway, my first [...]

replacing Amara with ElemenTree

Spring Python forum - Fri, 12/11/2009 - 04:02
Hello,

I've seen on the spring python blog that there is a patch that replaces Amara with standard python ElementTree. In which version would this change be included (and when may this happen)?


regards,
Jedrek

List in python question?

Spring Python forum - Tue, 11/24/2009 - 05:53
What I need to do is make a list that lets the user input names, and then a list that lets users input values for those names. Also, I need to output the list in alphabetical value. I've been able to do that so far.

But how do I make it so when it prints the name, it prints the associated value instead of printing the values in the original order.

Are the samples supposed to be working?

Spring Python forum - Tue, 11/24/2009 - 04:36
I downloaded springpython-1.0.0.RELEASE along with the springpython-samples-1.0.0.RELEASE and have been unable to get to any of the webapps (petclinic, springirc and springwiki) to respond to web requests.

In all cases, they look to actually be running, but I cannot connect to them. In the case of petclinic it looks like the Pyro stuff is running (I can telnet to the exported ports and something responds) but I cannot seem to get to the actual applications.

I see that the samples say in all cases that they do not work with cherrypy3. However, if I run with cherrypy2-ish, the software will not run at all. If I try to run the apps with cherrypy2 it will die complaining about missing cherrypy.Tool. If I run against cherrypy3, the software loads up and looks like it is waiting for incoming connections.

I am testing on Ubuntu 8.10.

Having trouble with Spring Python Ldap + Jython

Spring Python forum - Mon, 11/16/2009 - 11:26
If you check http://jira.springframework.org/brow...NGPYTHONPY-121, you will see a stack trace, as well as links to source code, showing the bug I hit trying to wrap Spring Security/Spring LDAP with Jython.

Any ideas to get it working?

Is there a spring python jar type file as there is a spring.jar for the java version?

Spring Python forum - Thu, 11/05/2009 - 10:47
Hi,

I am new using spring python and python, but I've used spring java for many years. In spring java we have a jar file that we add into our lib directory and we are all set ready to go.

Is there any jar file type for spring python that I could do just the same? or how do you guys import it into your application? just making sure that the spring python directory is in the python path? how do you handle deployments?

Please let me know. I really appreciate your help.
Thank you very much in advance.

reliable object relational mapping frameworks to work with spring python

Spring Python forum - Wed, 11/04/2009 - 14:07
Hi,
I've worked with spring and hibernate for many years, and we successful implemented many applications! I am trying to integrate spring-python on a new project that will be using python, and I would like to ask the community about reliable object relational mapping frameworks in python. We are planing to use MySQL db. Any experiences? preferences?, does spring-python offers sport for ORM frameworks as spring does? please advise.
Thank you very much in advance.

See how Spring Python works with Jython

Spring Python blog - Thu, 10/15/2009 - 14:59
I recently completed a patch that replaces the amara library with python’s default elementTree library. As much as I like amara’s API, its C-extension basis was unacceptable. I just merged the patch into the trunk, and verified it works with Jython 2.5.1.FINAL. When Spring Python’s 1.1.0.M2 release comes out, we will be Jython-compatible. With this change, [...]
Syndicate content