You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
(4) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
(3) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(3) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Greg T. <gtu...@vm...> - 2011-07-27 06:52:51
|
You seem to have uncovered a curious bug. I can't see anything immediately that should cause this issue. Can you identify the version of spring python you are using? Sent from my iPhone On Jul 27, 2011, at 1:16 AM, Daoyu <z....@qq...> wrote: > Hey everyone, > > I got a strange problem, get maximum recursion depth exceeded when I try to indicate more than 1 interceptor. Here's the code: > > @Object > def single(self): > a1 = RegexpMethodPointcutAdvisor( > advice=[SecurityAOP()], > patterns=[".*delete.*"]) > a2 = RegexpMethodPointcutAdvisor( > advice=[LogAOP()], > patterns=[".*delete.*"]) > return ProxyFactoryObject( > target=Person(), > interceptors=[a1,a2]) > > If set the "interceptors=[a1]", or "interceptors=[a2]" it works perfectly. However, maximum recursion depth exceeded for "interceptors=[a1,a2]" . > > Also I notice there's another way to achieve interceptor chain, which the above code could change to: > > @Object > def single(self): > a1 = RegexpMethodPointcutAdvisor( > advice=[SecurityAOP(),LogAOP()], > patterns=[".*delete.*"]) > return ProxyFactoryObject( > target=Person(), > interceptors=[a1]) > > it also works fine, with 2 advice into same pointcut. > > Anyone could tell me what's wrong with the 1st one? > > -- > (sorry for the last email I use a wrong mail box.) > Daoyu > _______________________________________________ > springpython-users mailing list > spr...@li... > https://lists.springsource.com/listmanager/listinfo/springpython-users > Visit our discussion forum at http://forum.springframework.org/forumdisplay.php?f=45 |
From: Angela H. <ang...@gm...> - 2011-05-12 00:25:38
|
Hey , I found a broken link on http://springpython.webfactional.com/1.0.0/reference/html/samples.html and since I was researching computer science and needed the page, I found an updated article online. The broken link to "Howto for Python" is http://www.amk.ca/python/howto/regex/ and I found an article on the front page of http://www.onlinecomputersciencedegree.com/ if you wanted to fix it. Click the tab "Beginner Python Tutorials" to get to the article. Figure I'd send you an email because others may need that link for the same reasons! Thanks! Angela Hill ang...@gm... The purpose of computing is insight, not numbers. - R. Hamming |
From: Christoph B. <chr...@xt...> - 2010-11-05 21:59:26
|
Hi, I wanted to access the Spring Python 1.1.0 Reference in PDF and I get this error: Forbidden You don't have permission to access /1.1.0/reference/pdf/springpython-reference.pdf on this server. Could you please enable access to this document? Thanks, Christoph |
From: Kristian R. <li...@zi...> - 2009-12-18 07:36:34
|
Folks; finally tried to take a deeper dive into spring python and failed pretty quickly, so I ended up downloading the example package and trying to run some of them. Not too successful, unfortunately: -> springwiki: doesn't work, neither using the -noxml or the xml-based implementation: kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ python springwiki/springwiki-noxml.py /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/pymodules/python2.6/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha /usr/lib/python2.6/sets.py:85: DeprecationWarning: functions overriding warnings.showwarning() must support the 'line' argument stacklevel=2) /usr/lib/pymodules/python2.6/amara/bindery.py:4: DeprecationWarning: the sets module is deprecated import sets 2009-12-18 07:55:13,948 - springpython.container.ObjectContainer - DEBUG - === Scanning configuration <noxml.SpringWikiClientAndServer object at 0x38cdb10> for object definitions === 2009-12-18 07:55:13,949 - springpython.config.PythonConfig - DEBUG - ============================================================== [.... ... some logging output ... .....] f50> 2009-12-18 07:55:13,956 - springpython.context.ApplicationContext - DEBUG - Stored object 'filterChainProxy' in container's singleton storage Traceback (most recent call last): File "springwiki/springwiki-noxml.py", line 72, in <module> cherrypy.tree.mount(applicationContext.get_object(name = "read"), '/', config=conf) TypeError: mount() got an unexpected keyword argument 'config' kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ python springwiki/springwiki.py /usr/lib/pymodules/python2.6/cherrypy/lib/cptools.py:3: DeprecationWarning: the md5 module is deprecated; use hashlib instead import md5 /usr/lib/pymodules/python2.6/cherrypy/filters/sessionfilter.py:33: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha Traceback (most recent call last): File "springwiki/springwiki.py", line 20, in <module> from springpython.security.cherrypy31 import AuthenticationFilter, ContextSessionFilter, SecurityFilter File "/usr/local/lib/python2.6/dist-packages/springpython/security/cherrypy31.py", line 94, in <module> class SecurityInterceptorFilter(AbstractSecurityInterceptor, cherrypy.Tool): AttributeError: 'module' object has no attribute 'Tool' kr@n428x64:~/kontext/stapel/springpython-samples-1.0.0.RELEASE$ These are more or less the same errors I get with every example provided by the springpython-samples package. Reading at least the last one, I supposed cherrypy to be the culprit, but at least the cherrrypy version provided by Ubuntu 9.10 doesn't seem to be out of scope of what's supported according to the README: ii python-cherrypy 2.3.0-2 Python web development framework So... what to do about this? What does it need to get spring-python 1.0.0 to work on my platform? :) TIA and all the best, Kristian -- Kristian Rink * http://pictorial.zimmer428.net # ka...@ja... "What was once thought can never be unthought." (Duerrenmatt - 'Die Physiker') |
From: <gre...@mi...> - 2008-08-26 14:49:20
|
Spring Python users, I have made a change on the subversion trunk (not official released yet), which renamed springpython.database.factory.SqliteConnectionFactory to springpython.database.factory.Sqlite3ConnectionFactory. The deprecated springpython.database.Sqlite.SqliteConnectionFactory handles this. If you are using that connection factory, you won't be impacted. I would suggest that you move on to the active connection factory, since at some future release, we will remove that old factory. I have news that while working with IT support staff, we have managed to get a successful test run in the process of configuring continuous integration for Spring Python. Currently, we are reading 83% test coverage with the test suite. To support the current CI environment, MySQL and PostgreSQL tests were disabled, but this only caused a 2% drop in test coverage, thanks to lots of mock testing of Spring Python's code. Perhaps, in the future, we will have some means to add those tests back. But for now, things are moving forward in seeing Spring Python's trunk being tested on a regular basis. When CI configuration is complete, we will have closed the last ticket current targeted for release 0.6 and be able to make a release. Then we can move on to working other issues as Spring Python marches forward. Thanks, Greg |
From: <gre...@mi...> - 2008-08-22 14:16:41
|
Spring Python users, Important information regarding updates to processes, web sites, etc. 1. I am trying to update http://springpython.webfactional.com when I can, so people can track what we are doing while migrating things to our new web space at SpringSource. 2. The trac site is still working, however, the "Browse Source" link takes you into the OLD repository. To view current, and up-and-coming changes, visit https://fisheye.springframework.org/browse/se-springpython-py. This is a viewer. 3. To actually check out a copy of the code, try https://src.springframework.org/svn/se-springpython-py/. 4. Currently, Spring Python is one project in the trunk called "springpython". The idea is that down the road, should we extend Spring Python with other projects, they can be put alongside "springpython" with their own svn space. 5. All the tickets have been migrated to JIRA, and thanks to a little effort, I got them in with the same ticket number. There are new tickets being created. Right now, Spring Python's ticket space is closed to anonymous readers. I can't immediately answer the question of SpringSource's policy on accounts. I also don't know the policy of when this would be made public. Stand by for updates. 6. Spring Python now has a dedicated forum at http://forum.springframework.org/forumdisplay.php?f=45. Go there to track current events. While I make updates from time-to-time at the trac site, the forums are where things are getting kicked around (if not through direct email). I suggest you go there if you want the latest info on what is happening, or if you have questions/comments. 7. SpringSource is working on setting up some wiki space for Spring Python. As soon as that is available, I will start migrating the wiki pages from the trac site over there. 8. Upcoming releases: 0.6 is the next targeted release, and it is currently scheduled for the end of August. We are focused on getting Spring Python working inside SpringSource's continuous integration server, and are making changes as needed to get this working. This will also be the release with SpringSource's official branding. Our chief focus on release 0.6 is quality, and you can't have quality until you start measuring things. This week, I did a test run and also saw overall test coverage of 85%. Hopefully, these stats will be releasable soon through CI, allowing you to also follow the quality assurance of Spring Python. 9. I want to publicly thank Sylvain, who is currently helping me migrate Spring Python sample apps from CherryPy 2 to CherryPy 3. He has been providing good feedback on the current state of affairs while reviewing the code written so far. I also wish to thank Russ, my SpringSource sponsor, who is doing the leg work to get me setup in SpringSource's server space, and also gives me SpringSource's viewpoint on things. Other people on this list have communicated with me in the past about specific issues or interests, and helped to make this a better product. I appreciate all feedback, positive or negative, and will continue to do so in the future. Stay tuned, Greg |
From: <gre...@mi...> - 2008-08-10 19:35:51
|
Spring Python users, Good news! Russ Miles from Spring Source (the company behind the Spring framework, for those who didn't know) recently contacted me and invited Spring Python to become an official Spring Extension. Russ is in charge of the Spring Extensions project, a process they are setting up to incubate projects that can potentially become official parts of Spring Source's software portfolio. We are currently in the process of configuring an instance of JIRA dedicated to tracking Spring Python issues. We are also setting up a subversion repository on Spring Source's servers to host the code. Russ has just informed me that the Spring Python forum has been set up (See http://forum.springframework.org/forumdisplay.php?f=45). Stay tuned! Greg |
From: Gary M. <gm...@mu...> - 2008-07-24 16:39:34
|
That's awesome! I have an immediate need for just this. I will hope to try this out before the end of the weekend. Thanks! Gary ----- Original Message ----- From: <gre...@mi...> To: <mar...@sp...>; <ry...@mo...>; <uh...@us...>; <z28...@mi...>; <al...@up...>; < >; <pk...@us...>; <lil...@us...>; <gm...@mu...> Sent: Thursday, July 24, 2008 12:28 PM Subject: Spring Python - first cut of Hessian remoting support >I have just checked into the trunk baseline, a HessianProxyFactory, which >allows you to easily write a Python client to a Hessian web service. To see >how to use it, you can read the test case I wrote at >https://springpython.webfactional.com/browser/trunk/src/springpython/test/remotingTestCases.py >(down at the bottom of the file). > > This is a programmatic definition, but I will soon extend the tests to > include IoC-based solutions. > > For this test, I wrote some java code to act as the server component > (using jetty as the web container). This demonstrates useful > interoperability between Python and Java. > > Next step I'll be working on is exporting a Spring Python service a la > Hessian. To be complete, there should be three versions: > python-calling-java, java-calling-python, and python-calling-python. That > will prove the ease of integrating Python with other technologies through > this language-neutral communications protocol. > > Greg Turnquist |
From: <gre...@mi...> - 2008-07-24 16:28:40
|
I have just checked into the trunk baseline, a HessianProxyFactory, which allows you to easily write a Python client to a Hessian web service. To see how to use it, you can read the test case I wrote at https://springpython.webfactional.com/browser/trunk/src/springpython/test/remotingTestCases.py (down at the bottom of the file). This is a programmatic definition, but I will soon extend the tests to include IoC-based solutions. For this test, I wrote some java code to act as the server component (using jetty as the web container). This demonstrates useful interoperability between Python and Java. Next step I'll be working on is exporting a Spring Python service a la Hessian. To be complete, there should be three versions: python-calling-java, java-calling-python, and python-calling-python. That will prove the ease of integrating Python with other technologies through this language-neutral communications protocol. Greg Turnquist |
From: Gary M. <gm...@mu...> - 2008-07-14 12:07:10
|
Hi, I am new to Python but have been using Spring / Java for a while. I'm interested in creating a Python based Spring server using Spring Python, but would need it to interoperate (be called by) a Spring based Java server. I saw that Hessian/Burlap is something on the roadmap for this project - is it far along at all? Another option I thought of was trying to get the Java Spring server to speak Pyro (via Jython) to invoke the Spring Python server. Could either of these be a viable near term option? Thanks Gary |
From: <gre...@mi...> - 2008-05-30 14:37:20
|
Spring Python's 0.5.0 has been released on sourceforge.net. This includes updates to DatabaseTemplate and DatabaseTransactions. These changes existed only on the subversion trunk until now. There is a lot more testing of DatabaseTemplate and transactions on MySQL, PostGreSQL, and Sqlite, verifying these databases are well supported. Initial support for Oracle has been added, but due to lack of resources, doesn't have as much testing as the others at this point in time. Declarative transactions have been created, allowing you to wrap code in a pythonic fashion, and apply transactions. Also, propagation level has been introduced in these declarations, allowing you to markup when transactions should begin and end (or not exist should you need it). See https://springpython.webfactional.com/wiki/DatabaseTransactions for more details on how to use this. The Spring Python library has been re-licensed under Apache License 2.0, and this is the official release under that license, making Spring Python a business friendly library. The samples applications are under the same licenses as before. See https://scifi.homelinux.net/mediawiki/index.php/Why_move_Spring_Python_back_to_Apache_License%3F for more details. Greg |
From: <gre...@mi...> - 2008-05-29 19:59:42
|
Spring Python community, This may be a shocker, but I changed the license of the Spring Python library segment back to Apache License 2.0. I wrote up a little article on why at https://scifi.homelinux.net/mediawiki/index.php/Why_move_Spring_Python_back_to_Apache_License%3F. I am pretty comfortable with this, so don't worry about me changing my mind again. (Yeah, I know, seeing is believing...) I just committed the changes to the repository, so to see this, you have to upgrade your subversion release. When I get some time, I will make a formal release on sourceforge.net. The previous releases, which were GPL, of course, will stay that way. I have been debating this ever since I changed over to GPL, and today, I just had to do this. Greg |
From: <gre...@mi...> - 2008-04-24 14:44:12
|
Spring Python users, I have recently made some additions to Spring Python, and just committed them to the trunk. You can now mark up classes with @Transactional and pick your propagation level of support. This allows you to define which methods need transactions, which ones will work within existing transactions, and which ones will NOT. For example, here is a sample bank application. Each method is marked @Transactional, and with different propagation levels. When this class is injected into a DecoratorBasedApplicationContext, and there is defined an AutoTransactionalComponent, the methods are activated to work transactionally! I'm still trying to figure out how to utilize isolation level. Different databases support this differently, and it is not currently part of Python's DB API 2.0 spec. If I can't find a quick solution, I will make a release of the current features soon. Let me know if this is useful to you, and also let me know if you run into any issues. Good luck! To get this release, see https://svn.springpython.webfactional.com/trunk. class TransactionalBankWithLotsOfTransactionalArguments(object): """This sample application can be used to demonstrate the value of atomic operations. The transfer operation must be wrapped in a transaction in order to perform correctly. Otherwise, any errors in the deposit will allow the from-account to leak assets.""" def __init__(self, factory): self.logger = logging.getLogger("springpython.test.testSupportClasses.TransactionalBankWithLotsOfTransactionalArguments") self.dt = DatabaseTemplate(factory) @Transactional(["PROPAGATION_REQUIRED"]) def open(self, accountNum): self.logger.debug("Opening account %s with $0 balance." % accountNum) self.dt.execute("INSERT INTO account (account_num, balance) VALUES (?,?)", (accountNum, 0)) @Transactional(["PROPAGATION_REQUIRED"]) def deposit(self, amount, accountNum): self.logger.debug("Depositing $%s into %s" % (amount, accountNum)) rows = self.dt.execute("UPDATE account SET balance = balance + ? WHERE account_num = ?", (amount, accountNum)) if rows == 0: raise BankException("Account %s does NOT exist" % accountNum) @Transactional(["PROPAGATION_REQUIRED"]) def withdraw(self, amount, accountNum): self.logger.debug("Withdrawing $%s from %s" % (amount, accountNum)) rows = self.dt.execute("UPDATE account SET balance = balance - ? WHERE account_num = ?", (amount, accountNum)) if rows == 0: raise BankException("Account %s does NOT exist" % accountNum) return amount @Transactional(["PROPAGATION_SUPPORTS","readOnly"]) def balance(self, accountNum): self.logger.debug("Checking balance for %s" % accountNum) return self.dt.queryForObject("SELECT balance FROM account WHERE account_num = ?", (accountNum,), types.FloatType) @Transactional(["PROPAGATION_REQUIRED"]) def transfer(self, amount, fromAccountNum, toAccountNum): self.logger.debug("Transferring $%s from %s to %s." % (amount, fromAccountNum, toAccountNum)) self.withdraw(amount, fromAccountNum) self.deposit(amount, toAccountNum) @Transactional(["PROPAGATION_NEVER"]) def nonTransactionalOperation(self): self.logger.debug("Executing non-transactional operation.") @Transactional(["PROPAGATION_MANDATORY"]) def mandatoryOperation(self): self.logger.debug("Executing mandatory transactional operation.") @Transactional(["PROPAGATION_REQUIRED"]) def mandatoryOperationTransactionalWrapper(self): self.mandatoryOperation() self.mandatoryOperation() @Transactional(["PROPAGATION_REQUIRED"]) def nonTransactionalOperationTransactionalWrapper(self): self.nonTransactionalOperation() class DatabaseTxTestDecorativeTransactionsWithLotsOfArguments(DecoratorBasedApplicationContext): def __init__(self, factory): self.factory = factory DecoratorBasedApplicationContext.__init__(self) @component def transactionManager(self): return ConnectionFactoryTransactionManager(self.factory) @component def transactionalComponent(self): return AutoTransactionalComponent(self.transactionManager()) @component def bank(self): results = TransactionalBankWithLotsOfTransactionalArguments(self.factory) return results |
From: <gre...@mi...> - 2008-04-14 02:52:55
|
Some news for Spring Python users: 1. Spring Python's web site has moved to https://springpython.webfactional.com. Our provider (Webfaction) has moved our trac/subversion hosting hto another domain at no charge. The extra services and features provided are fabulous. Code can now be found at https://svn.springpython.webfactional.com. Our provider does have the previous sites pointed at the new ones to help in transition. 2. I have added the code Joe sent me to support cx_Oracle into the baseline, and included mock tests to verify it is working. I also updated the ConnectionFactory interface in order to allow DatabaseTemplate to determine if the user is feeding bound variables in a correct format. MySQL and PostGreSQL accept tuples, while Oracle requires dictionaries. Now, you'll know if you are doing it wrong thanks to a nice runtime exception! (See https://springpython.webfactional.com/ticket/45 for more details) 3. Declarative transactions has been basically implemented. There is more to go regarding having different transaction levels, but we are off to a good start. I worked hard to get transaction testing to pass for both a live MySQL database AND a live PostGreSQL database. Unfortunately, I don't have Oracle, so I can't test that yet. Anybody know about free copies of Oracle? (I mean licensed, not pirated!) (See https://springpython.webfactional.com/ticket/42 for more details). 4. There are plans after this to investigate decorator-based transactional definitions. This would be very similar to Java's annotation-driven mechanism. I can't guarantee anything, since their annotations and python's decorators have a fundamental difference in what they are composed of, but let's see what can happen. (See https://springpython.webfactional.com/ticket/43 for more details). I definitely appreciate those of you who have contacted me in the past with questions, suggestions, and even code. I definitely welcome anyone who is interested to chip in and make Spring Python a better product. Greg |
From: <gre...@mi...> - 2008-04-07 14:20:03
|
Spring Python 0.4 has been released. It includes the much awaited TransactionTemplate. Check out: * http://springpython.python-hosting.com/browser/trunk/src/springpython/test/databaseTransactionTestCases.py - examples of usage * http://springpython.python-hosting.com/wiki/TransactionTemplate - updated wiki documentation So far, I have been able to test it against a transactional MySQL database. You can checkout http://springpython.python-hosting.com/browser/trunk/src/springpython/test/support/setupTestDB.sql to see how it is setup. If we can get a script written to setup a similar database for PostGreSQL, then we can extend the test cases to verify it works there as well. Not sure about the status of Sqlite regarding transactional support. But, none-the-less, Spring Python needs to "handle" it without blowing up. I don't have Oracle on my home computer, so I'm at a disadvantage in testing any solutions for this. |
From: Robert Y. <ry...@mo...> - 2008-03-18 21:00:15
|
I am attempting to implement the spring-python framework specifically the database templates piece. I can get the select sql statements to work, but insert/update statements fail to commit. I have noticed that in springpython.database.core.DatabaseTemplate methods update() and execute() never explicitly issue a commit() on the connection. I am using PostgreSQL as the database. I have implemented my own connection factory. I have tried to use psycopg2 and pgdb both with the sqlAlchemy pooling, but I can't get the insert/update statements to commit. If I modify the springpython code and insert a __db.commit() then I can get the cursor to commit. Am I missing something? How do I get the records to commit? |
From: Robert Y. <ry...@mo...> - 2008-03-17 20:18:25
|
I am attempting to implement the spring-python framework specifically the database templates piece. I can get the select sql statements to work, but insert/update statements fail to commit. I have noticed that in springpython.database.core.DatabaseTemplate methods update() and execute() never explicitly issue a commit() on the connection. I am using PostgreSQL as the database. I have implemented my own connection factory. I have tried to use psycopg2 and pgdb both with the sqlAlchemy pooling, but I can't get the insert/update statements to commit. If I modify the springpython code and insert a __db.commit() then I can get the cursor to commit. Am I missing something? How do I get the records to commit? |
From: Greg <gre...@mi...> - 2007-09-26 03:52:27
|
For those of you keeping up with the project, some of you may be wondering why I made this move. I have already had one user send me a personal email asking me this. I decided to capture my answer in a blog post. See https://scifi.homelinux.net/mediawiki/index.php/Why_move_Spring_Python_to_GPLv3%3F Greg |
From: <gre...@mi...> - 2007-09-19 16:25:32
|
Spring Python 0.3.1 has been released. The key feature in this quick add-on is the DecoratorBasedApplicationContext. I was reading http://blog.interface21.com/main/2006/11/28/a-java-configuration-option-for-spring/, and thought, "this would be great in python!" I know that many pythonistas don't really care for XML. I hope you enjoy it. Greg |
From: <gre...@mi...> - 2007-09-12 12:34:24
|
Spring Python (http://springpython.python-hosting.com) version 0.3.0 has been released. Key features include: * Make the web components WSGI-compatible, firstly working with CherryPy. * Extend PetClinic to use database accounts and have password encoding. * Add an ExceptionTranslationFilter so PetClinic handles errors more sophisticated. * Relicense Spring Python underneath GPLv3. * Generally, clean up the code and test cases. Also start using code coverage tools to improve quality of testing. Took me a little longer to make this release, due to being tied up in other things. But it does feel good to get it out there. |
From: <gre...@mi...> - 2007-05-24 15:06:23
|
>Hello, > >First, thank a lot for your work in spring python, I love it. I like to hear encouraging words. >Secondly, as my "From" mail header said, my name is Alexandre Fernandez, >I'm computing architect into a big socity and work on a personnal >project : snaapy. > >There is a little and basic explanation of my personnal project with >spring python and IoC: >http://snaapy.upasika.org/browser/snaaplet/trunk/doc/README.txt Excellent! >I'm asking to myself if I can use interceptors to negociate with a >caching engine component. I'm sure you could. >I tried to find a simple interceptor example in spring python, I saw >that the interceptor usage is different from pycontainer, is there a >motivation for that ? I started Spring Python using Pycontainer as my IoC container. My approach was to merge their code into my baseline and proceed to use it without the user having to know it was a separate module. I have contacted the original owner of Pycontainer to advise him of this, and invite him to participate to work on Spring Python, since his motivations were similar to my own. He indicated he was no longer interested, and was pursuing other goals. Pycontainer's interceptor mechanism was embedded in the IoC container. This meant you could not use it programmatically. Spring Framework keeps IoC and AOP components separated, and gives you the freedom to use them together or to only use one or the other. I believe that is a good concept, so I proceeded to write my own interceptor mechanisms, partially using code of Pycontainer, but driving myself based on Spring's interface signatures. After getting this working, and verifying unit tests were working, I then decided to not maintain two version of AOP, and thus removed AOP from the IoC container of my forked copy of Pycontainer. I think this is good to let the IoC code only deal with IoC, and thus reduce the code base. I have also wanted to rewrite the IoC container, so that it can be much closer to match the existing Java XML-format. I haven't done that yet, but I like to make the bridge between Java-based Spring apps and Python-based apps as easy to cross as possible. I saw some tool that can allegedly create a python translator based on XSD specs. This seemed like I could feed it Spring's new XSD specs, but so far it hasn't been useful at all. If that tool does actually work in the future, I could simply write an XSD spec that defines the Pycontainer-based schema to create a translator for backwards compatibility. Hopefully, this explains my intentions. In my opinion, the AOP solution now in Spring Python is closer to the one in Spring itself, and it works more smoothly both in and out of the IoC container. |
From: Alexandre F. <al...@up...> - 2007-05-24 12:54:40
|
Hello, First, thank a lot for your work in spring python, I love it. Secondly, as my "From" mail header said, my name is Alexandre Fernandez, I'm computing architect into a big socity and work on a personnal project : snaapy. There is a little and basic explanation of my personnal project with spring python and IoC: http://snaapy.upasika.org/browser/snaaplet/trunk/doc/README.txt I'm asking to myself if I can use interceptors to negociate with a caching engine component. I tried to find a simple interceptor example in spring python, I saw that the interceptor usage is different from pycontainer, is there a motivation for that ? Thank you for your answers :-) Alex. |
From: Greg <gre...@mi...> - 2007-05-12 01:55:37
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 There is a new web site, meant to help sift through all the open source projects out there called Ohloh. I registered Spring Python at http://www.ohloh.net/projects/5253. It has some need features, such as linking in news feeds as well as scanning and tracking the source code repository. I updated http://springpython.python-hosting.com to link to it. This is the place where people can mark their usage of the product and also read up-to-date news along with some code metrics. Ohloh is relatively new and are still shaking out issues with their mechanism of code metrics. They basically count all the commits and give credit to whomever made the commits. A lot of people pointed out that often the commiters weren't the people who actually wrote the patch. I'm sure the are investigating how to deal with that. I sent them an email that they need to integrate with tools like JIRA and Trac and read the tickets. That would expand the view port into code metrics. Someone else deftly pointed out that their labels should be revised to more accurately describe the metric. Ohloh seems to have be listening to the responses. Only time will tell. Happy reading! Greg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGRR6XWo5A/EaBZk4RAg18AKDy0fDBGNWvwAI2bYve8hwOMDqcawCeOg0d zg1W6gRqlNdJAbAwdPXzHnA= =ar8R -----END PGP SIGNATURE----- |
From: Greg T. <gre...@mi...> - 2007-03-06 02:39:15
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Two significant changes have been delivered to the subversion trunk baseline. 1. DaoAuthenticationProvider has been implemented along with an InMemoryUserDetailsService. This code is meant to replace the previous InMemoryAuthenticationProvider. At some time in the future, the deprecated code will be removed. 2. The flag set in both InMemoryUserDetailsService and InMemoryAuthenticationProvider's userMap indicating "disabled" has now been flipped to indicate "enabled", in order to be consistent with the DatabaseUserDetailsService. If you are using such a map in your code, toggle all False to True and vice versa. Right now, Dao authentication is plaintext. There are plans to get at least one encoder written, so we aren't totally in the clear with the next release of Spring Python. Greg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF7NRGWo5A/EaBZk4RAmK3AKDrn9Nikt4WrcdDhePwRugtZKda6wCeLdKJ zxRhhzxul7mT5DyzmHDEOi8= =CM4N -----END PGP SIGNATURE----- |
From: Greg T. <gre...@mi...> - 2007-02-24 04:43:12
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 1. I wrapped up making everything work WSGI-style. PetClinic now works correctly. 2. Implemented an ExceptionTranslationFilter that will bounce the user to a login page if authentication fails or they no credentials, and to an access denied page if they access something not authorized. This makes things much better. Thanks to WSGI, I was able to write this error handling logic pretty simply. Now I can focus on building the UserDetails, UserDetailsService, and the getting the database-accounts working. Greg -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF38JYWo5A/EaBZk4RAixuAKC0Fti22ZiysoibYp8v7oQNXYdR6gCgr0YV ryQRpZfcX1vK4e+ni+C3QZ0= =jJ7/ -----END PGP SIGNATURE----- |