If you're not using the sandbox copy (I explained how to obtain this in
another mail), you're using an old copy. The bugs with fields displaying
strangely have already been fixed.

Do the following: completely remove any previous Trac install from your
system, then do this:

    svn co http://svn.edgewall.com/repos/trac/sandbox/workflow trac
    cd trac
    python setup.py install

Next, remove any tracnewworkflow plugins you may have in your plugins
directory or installed globally. Then remove any tracnewworkflow related
lines from your trac.ini.

After that, add the following lines to your trac.ini:

    ; Available actions for each ticket status
    [ticket-status]
    new = leave resolve reassign accept
    assigned = leave resolve reassign
    reopened = leave resolve reassign
    resolved = leave reassign reopen verify
    verified = leave reassign reopen retest close
    closed = leave reopen retest

    ; Status states for each action
    [ticket-actions]
    accept = assigned
    resolve = resolved
    reassign = new
    reopen = reopened
    retest = resolved
    verify = verified
    close = closed

Finally, restart Apache.

If all that works, you should have basic workflow. No permissions or
validation is in place yet.

Remember that the workflow will change the way it is configured and used
while it is under development.

If you want to track its development that's fine, just remember it
*will* break. Detailed issue reports are welcome, patches even more so.

If you want to report an issue, an exception traceback is good, but
knowing what the values of variables involved in the traceback are, is
even better. You can put debugging log messages in the code to find this
information. From inside any component:

    self.env.log.debug(str(var))

For example, from the traceback reported earlier:

     File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 125, in
     populate
       self[name] = values.get(name, '')
     File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line 118, in
     __setitem__
       value = value.strip()

Useful things to debug log would be "value" and "name".

On Wed, Jan 18, 2006 at 12:09:57PM +0200, Idan Miller wrote:
> Thanks!
> 
> Will try that now.
> About using checkbox, we haven't added any custom fields at all...
> 
> Also, did you get double summary and description as well?
> And, did your screen get too wide so some of the fields had to be displayed
> out of it?
> Those too were problems we had encountered...
> 
> Also, what is the sandbox? :)

I explained this in another mail:

    svn co http://svn.edgewall.com/repos/trac/sandbox/workflow trac
> 
> Thanks,
> Idan.
> 
> On 1/18/06, Alec Thomas <[EMAIL PROTECTED]> wrote:
> >
> > Aha! I have managed to replicate it and have attached a small patch you
> > can try.
> >
> > However I think you're getting this error because you're using
> > 'checkbox' as a field type, and the code isn't complete yet.
> >
> > On Wed, Jan 18, 2006 at 01:58:40PM +1100, Alec Thomas wrote:
> > > Idan,
> > >
> > > I can't replicate this at all. I've completely reinstalled Trac, the
> > > environment and the plugin and have not seen this error.
> > >
> > > If you try the sandbox and you still get this error, zip up your
> > > Trac environment (*just* the env, nothing else) and mail it to
> > > [EMAIL PROTECTED], and I'll have a look using your environment.
> > >
> > > Thanks,
> > > Alec
> > >
> > > On Tue, Jan 17, 2006 at 09:04:54PM +0200, Idan Miller wrote:
> > > > Hi,
> > > >
> > > > We are very happy to see the workflow patch hapenning since it is a
> > very
> > > > desired feature for us.
> > > >
> > > > I have tried checking out a fresh copy of trac's trunk, applying the
> > > > patch and followed the exact installations notes.
> > > >
> > > > However, when I try to compose a new ticket, the screen layout seems
> > > > wrong, much of the properties go out of the screen to the right and
> > also
> > > > there are duplicate fields like summary and description for the
> > ticket.
> > > >
> > > > I have tried to work with alect on that but we didn't get anywhere, he
> > > > doesn't get the error but I do.
> > > >
> > > > What can be wrong?
> > > >
> > > > Also, when I try to submit a ticket I get the following error:
> > > >
> > > > Traceback (most recent call last):
> > > >  File
> > "/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py",
> > > >  line 206, in handler
> > > >    dispatch_request(mpr.path_info, mpr, env)
> > > >  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 139,
> > in
> > > >  dispatch_request
> > > >    dispatcher.dispatch(req)
> > > >  File "/usr/lib/python2.4/site-packages/trac/web/main.py", line 107,
> > in
> > > >  dispatch
> > > >    resp = chosen_handler.process_request(req)
> > > >  File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
> > 83, in
> > > >  process_request
> > > >    self._do_create(req, db)
> > > >  File "/usr/lib/python2.4/site-packages/trac/ticket/web_ui.py", line
> > 137,
> > > >  in _do_create
> > > >    ticket.populate(req.args)
> > > >  File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line
> > 125, in
> > > >  populate
> > > >    self[name] = values.get(name, '')
> > > >  File "/usr/lib/python2.4/site-packages/trac/ticket/model.py", line
> > 118, in
> > > >  __setitem__
> > > >    value = value.strip()
> > > > AttributeError: 'list' object has no attribute 'strip'
> > > >
> > > > Any ideas what can be wrong? Running on a gentoo system.
> > > >
> > > > And another quick question, what is the sandbox and what does it mean
> > > > that the workflow patch has moved there? does it mean there are more
> > > > changes it will be included in 0.9.4?
> > > >
> > > > Thanks!
> > > >
> > > > Idan Miller.
> > >
> > > --
> > > Evolution: Taking care of those too stupid to take care of themselves.
> > > _______________________________________________
> > > Trac-dev mailing list
> > > [email protected]
> > > http://lists.edgewall.com/mailman/listinfo/trac-dev
> > >
> >
> > --
> > Evolution: Taking care of those too stupid to take care of themselves.
> >
> >
> > _______________________________________________
> > Trac-dev mailing list
> > [email protected]
> > http://lists.edgewall.com/mailman/listinfo/trac-dev
> >
> >
> >
> >

> _______________________________________________
> Trac-dev mailing list
> [email protected]
> http://lists.edgewall.com/mailman/listinfo/trac-dev


-- 
Evolution: Taking care of those too stupid to take care of themselves.
_______________________________________________
Trac-dev mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-dev

Reply via email to