Spring Python 0.2.0 is released

2007-02-01 Thread gregturn
Spring Python is an offshoot of the Java-based SpringFramework and
AcegiSecurityFramework, targeted for Python. Spring provides many
useful features, and I wanted those same features available when
working with Python.

The site is http://springpython.python-hosting.com, with information
about source code, releases, and mailing lists.

The following features have been implemented.
* DatabaseTemplate - Reading from the database requires a
monotonous cycle of opening cursors, reading rows, and closing
cursors, along with exception handlers. With this template class, all
you need is the SQL query and row-handling function. Spring Python
does the rest.
* InversionOfControl - 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.
* AspectOrientedProgramming - Spring Python provides great ways to
wrap advice around objects. It is utilized for remoting. Another use
is for debug tracers and performance tracing.
* DistributedRemoting - It is easy to convert your local
application into a distributed one. If you have already built your
client and server pieces using the IoC container, then going from
local to distributed is just a configuration change.
* PetClinic - A nice sample web application has been built
utilizing CherryPy as the web container. Go check it out for an
example of how to use this framework.
* ApplicationSecurity - Plugin security interceptors to lock down
access to your methods, utilizing both authentication and domain
authorization.
* SpringWiki - Wikis are powerful ways to store and manage
content, so we created a simple one as a demo!

For more details about implemented features, check out the tickets
tied to this baseline at: 
http://springpython.python-hosting.com/query?status=closed&milestone=0.2

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Spring Python 0.2.0 is released

2007-02-02 Thread gregturn
I have managed to update the site documentation on ApplicationSecurity
(the newer module in this release). Took me awhile, and one time I
accidentally browsed to another site and lost what I had started.
Well, it is in there now at 
http://springpython.python-hosting.com/wiki/ApplicationSecurity

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Jython

2007-02-03 Thread gregturn
On Feb 3, 11:21 am, Boris Ozegovic <[EMAIL PROTECTED]>
wrote:
> Hi
>
> Why this doesn't work:
>
> def go():
> for line in open("bobo.txt", "r"):
> print line
>
> go()
>
> python FileReader.py: everything ok
> jython FileReader.py:
>
> Traceback (innermost last):
>   File "FileReader.py", line 6
>   File "FileReader.py", line 3
> AttributeError: __getitem__
>
> --
> "A mi smo stranci u vlastitoj zemlji zbog ljudskog sljama, lipa nasa
> silovana"

Files aren't lists and thus don't have the functions for iteration.

Try:

def go():
for line in open("bobo.txt", "r").readlines():
print line

go()

-- 
http://mail.python.org/mailman/listinfo/python-list