[better-python] demo1-trivial.py, 'cellcache'

1 view
Skip to first unread message

Reguillo

unread,
Apr 23, 2010, 2:41:08 PM4/23/10
to Better Python
When starting this script an error occurs:

Traceback (most recent call last):
File "./demo1-trivial.py", line 3, in <module>
from mext.reaction.qt_utils import *
File "/usr/lib/python2.6/site-packages/Reaction-0.2-py2.6.egg/mext/
reaction/qt_utils.py", line 115, in <module>
class QtSignals(Component):
File "/usr/lib/python2.6/site-packages/Reaction-0.2-py2.6.egg/mext/
reaction/qt_utils.py", line 124, in QtSignals
@cellcache(reset=None)
TypeError: 'cellcache' object is not callable


This also happens in other files using the "qt_utils.py" module.

--
Mailing list: http://groups.google.com/group/better-python
Unsubscribe: better-pytho...@googlegroups.com

Sergey Schetinin

unread,
Apr 23, 2010, 2:43:53 PM4/23/10
to better...@googlegroups.com
qt_utils were started by Andrew Svetlov, but I recon he doesn't have the time anymore and I'm not supporting that module, so I guess all of Qt stuff will have to be moved to disabled code for now.
--
Best Regards,
Sergey Schetinin

http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

Reguillo

unread,
Apr 23, 2010, 2:56:39 PM4/23/10
to Better Python
Maybe I can this.

On Apr 23, 8:43 pm, Sergey Schetinin <mal...@gmail.com> wrote:
> qt_utils were started by Andrew Svetlov, but I recon he doesn't have the
> time anymore and I'm not supporting that module, so I guess all of Qt stuff
> will have to be moved to disabled code for now.
>
> On 23 April 2010 21:41, Reguillo <reguil...@gmail.com> wrote:
>
>
>
> > When starting this script an error occurs:
>
> > Traceback (most recent call last):
> >  File "./demo1-trivial.py", line 3, in <module>
> >    from mext.reaction.qt_utils import *
> >  File "/usr/lib/python2.6/site-packages/Reaction-0.2-py2.6.egg/mext/
> > reaction/qt_utils.py", line 115, in <module>
> >    class QtSignals(Component):
> >  File "/usr/lib/python2.6/site-packages/Reaction-0.2-py2.6.egg/mext/
> > reaction/qt_utils.py", line 124, in QtSignals
> >    @cellcache(reset=None)
> > TypeError: 'cellcache' object is not callable
>
> > This also happens in other files using the "qt_utils.py" module.
>
> > --
> > Mailing list:http://groups.google.com/group/better-python
> > Unsubscribe: better-pytho...@googlegroups.com<better-python%2Bunsu...@googlegroups.com>
>
> --
> Best Regards,
> Sergey Schetinin
>
> http://s3bk.com/-- S3 Backuphttp://word-to-html.com/-- Word to HTML Converter

Reguillo

unread,
Apr 23, 2010, 2:58:30 PM4/23/10
to Better Python
Fix this I mean.
> >http://s3bk.com/--S3 Backuphttp://word-to-html.com/--Word to HTML Converter

Sergey Schetinin

unread,
Apr 23, 2010, 3:02:10 PM4/23/10
to better...@googlegroups.com
Sure, I suppose you can just take the qt_utils / demos and start from there not depending on either being the reaction distribution, if you end up developing it further I would accept the contributions.
http://s3bk.com/ -- S3 Backup
http://word-to-html.com/ -- Word to HTML Converter

Reguillo

unread,
Apr 23, 2010, 7:11:29 PM4/23/10
to Better Python
First small patch here.
Now things seem to be working better.
Except for the QComponent stuff, I have to look into that deeper.

# HG changeset patch
# User Reguillo Tjon a meeuw <regu...@gmail.com>
# Date 1272064068 -7200
# Node ID 5521be4b761f50ab6fa6fc6a8d17d6d704510dc7
# Parent 64173c137a401d10cd66bfd97acbc78fc94e60ef
changed cellcache to active_cellcache

diff -r 64173c137a40 -r 5521be4b761f mext/reaction/qt_utils.py
--- a/mext/reaction/qt_utils.py Thu Mar 18 20:47:56 2010 +0200
+++ b/mext/reaction/qt_utils.py Sat Apr 24 01:07:48 2010 +0200
@@ -121,7 +121,7 @@
self.ob = ob
self.callbacks = {}

- @cellcache(reset=None)
+ @active_cellcache(reset=None)
def _signals(self, signal, conn):
cell = self.get_cell(signal)
if conn:


On Apr 23, 9:02 pm, Sergey Schetinin <mal...@gmail.com> wrote:
> Sure, I suppose you can just take the qt_utils / demos and start from there
> not depending on either being the reaction distribution, if you end up
> developing it further I would accept the contributions.
>
> > <better-python%2Bunsu...@googlegroups.com<better-python%252Buns...@googlegroups.com>
>
> > > > --
> > > > Best Regards,
> > > > Sergey Schetinin
>
> > > >http://s3bk.com/--S3Backuphttp://word-to-html.com/--Wordto HTML
> > Converter
>
> > > > --
> > > > Mailing list:http://groups.google.com/group/better-python
> > > > Unsubscribe: better-pytho...@googlegroups.com<better-python%2Bunsu...@googlegroups.com>
> http://s3bk.com/-- S3 Backuphttp://word-to-html.com/-- Word to HTML Converter
Reply all
Reply to author
Forward
0 new messages