Spring Python takes the concepts implemented by the Java-based Spring
Framework, and applies them to Python. This provides a powerful
library of functionality to help you get back to writing the code that
makes you money. It includes features like data access, transaction
management, remoting,
Spring Python takes the concepts implemented by the Java-based Spring
Framework, and applies them to Python. This provides a powerful
library of functionality to help you get back to writing the code that
makes you money. It includes features like data access, transaction
management, remoting,
I just released Spring Python 0.9.1. One of our users spotted an error
in the a href=http://springpython.webfactional.com/reference/html/
objects.htmlIoC container/a involving constructor arguments, and I
was able to reproduce the problem, patch it, and get it released
quickly to the user
Spring Python, the python version of the Spring Framework, has just
released version 0.9.0. This release includes a key update to
springpython.security.web module, where authorization has been patched
to support CherryPy 3.1.
To download the 0.9.0 release, or an archived release, and for access
Spring Python, the python version of the Spring Framework, has just
released version 0.8.0. This release contains a refactored IoC
container supporting four formats (XMLConfig, PythonConfig/@Object,
PyContainerConfig, and SpringJavaConfig); replacement of the term
component with object in all
The Links section has some faults in it. Here is a corrected copy:
Links:
For more information, please visit the website at
http://springpython.webfactional.com
Framework download at
Spring Python provides an AOP solution (http://
springpython.webfactional.com/reference/html/aop.html). You can define
regexp patterns of what you want to intercept.
Imagine having this service:
class SampleService:
def method(self, data):
return You sent me '%s' % data
def
Spring Python, the python version of the Spring Framework, has just
released version 0.7.1. This patch includes integration with S3,
Spring's new service used to distribute binaries.
Key Features of Spring Python include:
* Inversion Of Control - The idea is to decouple two classes at
the
Key Features
The following features have been implemented:
* Inversion Of Control - The idea is to decouple two classes at
the interface level. This lets you build many reusable parts in your
software, and your whole application becomes more pluggable. You can
use either the
Release 0.7.0 was completed last night, and released to
sourceforge.net.
NOTE: This release included a lot of API scrubbing, in order to bring
things more in tune with PEP-0008 (python's style guide). You're
existing apps PROBABLY were impacted, if you used any of Spring
Python's utility classes.
Spring Python 0.6.0, the python offshoot of the Spring framework and
Spring Security, has been released (http://
springpython.webfactional.com).
See
http://sourceforge.net/project/showfiles.php?group_id=184275package_id=214366release_id=624328
for more details. BTW, if you click on the release
Spring Python (http://springpython.webfactional.com) version 0.5.0 was
released today.
It contains updates to DatabaseTemplate and DatabaseTransactions,
along with more testing underneath MySQL, PostGreSQL, and Sqlite.
Support for Oracle has been added, but only minimally tested so far.
Spring
On Jan 11, 11:45 am, Christian Heimes [EMAIL PROTECTED] wrote:
Damjan wrote:
My question is, shoudn't it be enough to set PYTHONPATH and everything
automagically to work then? Is there some work done on this for python 3.0
or 2.6 perhaps?
I'm working on a PEP for a per user site dir for
Spring Python (http://springpython.python-hosting.com) version 0.3.2
was released yesterday.
It contains a patch to an error discovered 12/19/2007 in
XmlApplicationContext, that broke when PROTOTYPE scoping was used.
Test cases have been updated to detect this bug, and in turn the
correction was
Don't forget to write test cases. If you have a series of addresses,
and confirm they are parsed correctly, you are in a good position to
refine the pattern. You will instantly know if a change in pattern has
broken another pattern.
The reason I'm saying this, is because I think your pattern is
import myPackage
f = myPackage.foo()
print f.__module__ + . + f.__class__.__name__
That should do it!
--
http://mail.python.org/mailman/listinfo/python-list
I had to get the hang of jMock-style testing through the usage of the
pmock library. But it seems to work out pretty well.
See some of my test cases at
http://springpython.python-hosting.com/browser/trunk/src/springpython/test/databaseCoreTestCases.py.
That should provide a hearty sample of uses
Spring Python 0.3.1 was released today. It contains a quick add-on
feature: DecoratorBasedApplicationContext.
This feature lets you define an IoC container using python code and
decorators instead of an XML flat file. It handles things like
dependency injection and fetches things in order as
Spring Python (http://springpython.python-hosting.com) version 0.3.0
was released yesterday.
Key improvements include:
* Make the web components WSGI-compatible, firstly working with
CherryPy.
* Extend PetClinic to use database accounts and have password
encoding.
* Add an
I use MySQL and also sqlite. However, I also use Spring Python (http://
springpython.python-hosting.com) to use both its DatabaseTemplate
utility class and also the remoting functionality. This way, I can
have the database code sitting on the server, and then export the data
access functions
Perhaps Spring Python can help you out (http://springpython.python-
hosting.com). It reuses technologies like Pyro for remoting, offers
database templates, has a plugable security component, an AOP solution
should the need arise, an IoC container, and has a couple of web-app
demos using CherryPy.
On Apr 15, 2:40 pm, Chaz Ginger [EMAIL PROTECTED] wrote:
Thomas Krüger wrote:
Chaz Ginger schrieb:
I am writing a distributed server system using Python. I need to support
authentication and was wondering what approaches are available under
Python and what are the best practices.
Spring
On Apr 5, 7:18 am, Steve Holden [EMAIL PROTECTED] wrote:
Sreelatha G wrote:
Hi
I am new to python .I need your help in solving my problem.
Is there any way to call python files in a java file .How is it possible?
Your other option is to utilize a system exec call, and try and trap
Sounds like phpBB (http://www.phpbb.com/) would do great. I'm not sure
why you want to go write another forum management tool when others are
already out there for usage. I know its not in python, but not
everything has to be in python.
--
http://mail.python.org/mailman/listinfo/python-list
Nothing beats http://diveintopython.org/toc/index.html for getting
into the basics of Python. This guy's writing is great!
--
http://mail.python.org/mailman/listinfo/python-list
I don't think I would use sets at all. They change the semantic
meaning of the original list. What if you have duplicate entries that
you want to keep? Converting to a set and back will strip out the
duplicates of that.
--
http://mail.python.org/mailman/listinfo/python-list
I have a need where I need to create a layer of business logic that
will connect to mysql database at one end and a wxpython based thin
client at the other end.
Spring Python offers something similar (http://springpython.python-
hosting.com/wiki/DistributedRemoting) to link up clients withs
http://www.catb.org/~esr/faqs/smart-questions.html
Don't post homework questions.
--
http://mail.python.org/mailman/listinfo/python-list
I read http://diveintopython.org/ online, and covered a lot of Python
territory nicely with this.
Greg
--
http://mail.python.org/mailman/listinfo/python-list
You can definitely create a web bot with python. It doesn't require
that you drive A real web browser. There are libraries to open web
pages, scrape their contents, and do downloading. That would make your
bot platform neutral. Driving a GUI browser has the risk of being a
brittle script that
I would like to know the interface concept in Python.How the
Interface is defined and implemented in Python?.
One way I have implemented interfaces, is as follows:
class MyInterface(object):
def someMethod(self, argument):
raise NotImplementedError()
If anybody ever uses that
On Mar 5, 1:56 am, bytecolor [EMAIL PROTECTED] wrote:
I have a simple package. I'm trying to add an examples subdirectory
with distutils. I'm using Python 2.4 on Linux. My file layout and
setup.py can be found here:
http://www.deadbeefbabe.org/paste/3870
I've tried using data_files as well,
On Feb 23, 6:44 am, Boris Ozegovic [EMAIL PROTECTED]
wrote:
Can somebody explaint this to me:
I have module a.py
A = 100
import b
print A printing
print B is %s % b.B
and module b.py
B = 2000
import a
print B printing
print A is %s % a.A
I thought that output would be:
B printing
On Feb 20, 8:20 pm, Gregory Piñero [EMAIL PROTECTED] wrote:
Need some decorator help.
I have a class. And I want to add behavior to one of this class's
methods to be run before the class runs the actual method. Is this
what decorators are for?
So the class I want to work with is
On Feb 16, 5:11 am, exhuma.twn [EMAIL PROTECTED] wrote:
Hi all,
Supposing you have two separate processes running on the same box,
what approach would you suggest to communicate between those two
processes.
Spring Python makes it easy to get processes talking to each other.
You can write
On 12/29/06, Stef Mientki [EMAIL PROTECTED] wrote:
Does anyone know the equivalent of the MatLab diff function.
The diff functions calculates the difference between 2 succeeding
elements of an array.
I need to detect (fast) the falling edge of a binary signal.
There's derivate function in
does anyone have any ideas as to how to go about creating a plugin/toolbar
for both/either the IE/Firefox browsers?
For IE, checkout Browser Helper Objects (BHOs). Sample python code
can be found at:
http://aspn.activestate.com/ASPN/Mail/Message/ctypes-users/2263094
Marcus
--
I need to write a fast file reader in python for binary files structured as:
x[0] y[0] z[0] x[1] y[1] z[1]
where c[k] is the k-th element from sequence c. As mentioned, the
file is binary -- spaces above are just for visualization. Each
element, c[k], is a 16-bit int. I can assume I know
On 4/15/05, Michael Spencer [EMAIL PROTECTED] wrote:
class SillyDecimal(object):
A silly class to represent an integer from 0 - 99.
def __init__(self, arg=17):
if isinstance(arg, tuple):
self.tens = arg[0]
self.ones = arg[1]
It is conventional to
I read that IE had the capability to embedd Python scripts, but what
about the others ?
While Python can be set up as a scripting language for IE, this is
normally disabled as it could be a security hole. The open call is
available from Python scripts so a web site could read or destroy
I'd like advice/opinions on when it is appropriate to do
attribute/property validation in python. I'm coming from a C#/Java
background, where of course tons of wasted code is devoted to
property validation. Here is a toy example illustrating my question:
# Example: mixing instance attributes
class Player(object):
def __init__(self, **kw): self.__dict__.update(kw)
def __repr__(self): return 'Player %s'%getattr(self, 'name',
'(anonymous)')
import operator
[p.name for p in sorted(players, key=operator.attrgetter('attacking'),
reverse=True)]
Just happened to read this
42 matches
Mail list logo