Roundup Tracker - Issues

Issue 2550679

classification
Bug in new "devel" template
Type: crash Severity: urgent
Components: Versions: 1.4
process
Status: closed fixed
:
: stefan : hemmecke, stefan
Priority: :

Created on 2010-10-30 04:44 by hemmecke, last changed 2010-11-04 17:56 by stefan.

Messages
msg4186 Author: [hidden] (hemmecke) Date: 2010-10-30 04:47
This is a copy of
http://sourceforge.net/mailarchive/forum.php?thread_name=4CCB409C.5020103%40sympatico.ca&forum_name=roundup-devel

I've just created from trunk@4546

python setup.py sdist

and installed that locally via

python setup.py install --prefix=/some/dir

Then I created a new tracker and chose "devel" template.
Unfortunately, the initialise command complained.

I first tried to copy over the nosyreaction.py from the classic template
in order to get rid of the DeprecationWarning.

But that didn't help. So I've looked up schema.py. And voila, there is
nothing defined that is called "issue". Instead there is bug and task
and milestone. So the nosyreaction.py script must fail.

That should be cleaned up before the next release...

And please, please, please... add more documentation. It's a pain if one
must read the source code in order to understand what the devel template
is for.

In fact, the same comment applies to the classic template. I had to look
into detectors/statusauditor.py in order to learn that replying to a
"resolved" issue reopens it. Well, nice feature, but where is it documented?

Ralf

=====================================================================
>python --version
Python 2.6.6
>roundup-admin -i $TINSTANCE initialise secretpasswd


<string>:1: DeprecationWarning: the sets module is deprecated
Traceback (most recent call last):
  File "/home/hemmecke/scratch/roundup-tmp//local/bin/roundup-admin",
line 6, in <module>
    run()
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/scripts/roundup_admin.py",
line 38, in run
    sys.exit(tool.main())
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/admin.py",
line 1577, in main
    ret = self.run_command(args)
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/admin.py",
line 1455, in run_command
    return self.do_initialise(self.tracker_home, args)
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/admin.py",
line 514, in do_initialise
    tracker.init(password.Password(adminpw))
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/instance.py",
line 203, in init
    db = self.open('admin')
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/instance.py",
line 140, in open
    detector(db)
  File
"/home/hemmecke/scratch/roundup-tmp//trackers/mytrac/detectors/nosyreaction.py",
line 119, in init
    db.issue.react('create', nosyreaction)
  File
"/home/hemmecke/scratch/roundup-tmp//local/lib/python2.6/site-packages/roundup/backends/back_anydbm.py",
line 143, in __getattr__
    raise AttributeError, classname
AttributeError: issue
msg4188 Author: [hidden] (stefan) Date: 2010-10-31 23:17
Thanks for the report. I'm looking into a fix.
msg4189 Author: [hidden] (stefan) Date: 2010-10-31 23:40
I have made the necessary changes to replace "issue" by "bug", "task",
and "milestone", so now all of them use the same nosy list behavior.
(That may not be ideal, but it should be good enough by default.)

Please reopen this issue if something is still wrong with the detectors.
msg4193 Author: [hidden] (hemmecke) Date: 2010-11-03 23:40
trunk@4561
python --version
Python 2.6.6

python setup.py sdist
V=1.4.16
ROUNDUPBASE=$HOME/scratch/roundup-tmp
ROUNDUP=$ROUNDUPBASE/local  ## target directory
ROUNDUPSRC=$ROUNDUPBASE/src ## web sources 
mkdir -p $ROUNDUPSRC 
cp dist/roundup-1.4.16.tar.gz $ROUNDUPSRC
cd $ROUNDUPSRC
tar xzvf roundup-$V.tar.gz
cd $ROUNDUPSRC/roundup-$V
python setup.py install --prefix=$ROUNDUP
export PATH=$ROUNDUP/bin:$PATH
TRACKERS=$ROUNDUPBASE/trackers
mkdir -p $TRACKERS
INSTANCE=mytrac
TINSTANCE=$TRACKERS/$INSTANCE
cd $ROUNDUPBASE
$ROUNDUP/bin/roundup-admin -i $TINSTANCE install
<string>:1: DeprecationWarning: the sets module is deprecated

Fix for this DeprecationWarning can be found at
https://github.com/hemmecke/roundup/commit/e1862c8489e0f3d19818a030a0eef5835d56fe9e

https://github.com/hemmecke/roundup/raw/e1862c8489e0f3d19818a030a0eef5835d56fe9e/share/roundup/templates/devel/detectors/nosyreaction.py
msg4196 Author: [hidden] (stefan) Date: 2010-11-04 17:56
Thanks,

it seems I had missed the migration to anypy.sets_. This is now fixed.

(I suggest opening a new issue for unrelated errors in the devel tracker
template. Also, it would be useful to provide a somewhat more specific
bug title / summary, as I expect there to be a couple of other bugs left
in this tracker template ;-) )

Stefan
History
Date User Action Args
2010-11-04 17:56:55stefansetstatus: open -> closed
messages: + msg4196
2010-11-04 10:53:14stefansetstatus: closed -> open
2010-11-03 23:40:00hemmeckesetmessages: + msg4193
2010-10-31 23:40:45stefansetstatus: open -> closed
type: crash
resolution: fixed
messages: + msg4189
2010-10-31 23:17:58stefansetstatus: new -> open
assignee: stefan
messages: + msg4188
nosy: + stefan
2010-10-30 04:47:33hemmeckesetmessages: + msg4186
2010-10-30 04:44:34hemmeckecreate