Skip to Content.
Sympa Menu

comanage-dev - Re: Fwd: [comanage-dev] Notes on CO-172

Subject: COmanage Developers List

List archive

Re: Fwd: [comanage-dev] Notes on CO-172


Chronological Thread 
  • From: Benn Oshrin <>
  • To:
  • Subject: Re: Fwd: [comanage-dev] Notes on CO-172
  • Date: Tue, 13 Sep 2011 07:52:47 -0400

(bring back to dev list)

On 9/13/11 4:36 AM, Marie Huynh wrote:
I ended up adding in these two:

'er.cou.haschild' => 'COUs with children can not be deleted',
'er.cou.wrongco' => 'COUs must be in the same CO',

I try to keep these as short as possible, so I'd probably do something like

er.cou.child
er.cou.co or er.cou.sameco

and fd.cou.parent, fd.cou.parent.desc, and er.cou.cycle for the other ones you might need...

I made the parent COU field on the edit/add pages a dropdown populated
only with COUs in the same CO (other than itself). I think it needs a
check for cycles. What error message would you prefer? 403 COU
Family Tree cycle? Alternatively, I could also remove COUs from the
dropdown that would cause such a cycle so the user shouldn't be able
to cause the error.

Good catch re cycles. The REST error is needed regardless of the dropdown being properly populated, but it seems right to not put it in the dropdown (perhaps also with a text note that you can't select a parent that is a or has any child of the current COU).

How about

403 Parent Would Create Cycle

?

I'm still trying to figure out what all needs to be done for item #6
and what all is connected to it. Whee!

Yeah, that one's going to be fun to figure out :) I think it's going to be a relatively small code diff, though.

-Benn-



Archive powered by MHonArc 2.6.16.

Top of Page