Forum OpenACS Q&A: Project Manager Package problem

Collapse
Posted by Odelon Miranda on
Hi, i have installed OpenACS 5.02 and installed Project Manager package. i have mounted in with no problem. the problem start when i try to edit a task that i have assigned to a user. does anyone have the same problem? or can anyone help me solve this delema.

thank you very much,

odie

Collapse
Posted by Jade Rubick on
Can you post the exact error you get?

I'm doing a lot of work on project-manager right now, so keep in mind that it's in /contrib mostly to look at. Updates are not supported yet (and aren't even recommended).

Collapse
Posted by Odelon Miranda on
thanks jade, below are the errors the i got when editing a task.

-------------------

can't set "column_value": variable is array
    while executing
"set column_value [ns_set value $selection $i]"
    ("while" body line 12)
    invoked from within
"while { [db_getrow $db $selection] } {
            incr counter
            if { [info exists array_val] } {
                unset array_val
        ..."
    ("uplevel" body line 5)
    invoked from within
"uplevel 1 $code_block "
    invoked from within
"db_with_handle -dbn $dbn db {
        set selection [db_exec select $db $full_statement_name $sql]

        set counter 0
        while { [db_getrow $..."
    (procedure "db_foreach" line 36)
    invoked from within
"db_foreach get_old_tasks { } {

        set task_title_arr($i)          $task_title
        set description_arr($i)        $description
        set e..."
    invoked from within
"if {![ad_form_new_p -key task_id]} {

    set i 1

    db_foreach get_old_tasks { } {

        set task_title_arr($i)          $task_title
        set..."
    ("uplevel" body line 246)
    invoked from within
"uplevel {
          set debug 0

if {[string equal $debug 1]} {
    ns_log notice task add edit page
    set mypage [ns_getform]
    if {[string equal ""..."
    (procedure "code::tcl::/var/lib/aolserver/nmi/packages/project-manager/w..." line 2)
    invoked from within
"code::tcl::$__adp_stub"
    invoked from within
"if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init tcl $__adp_stub
..."
    ("uplevel" body line 3)
    invoked from within
"uplevel {

    if { [file exists $__adp_stub.tcl] } {

      # ensure that data source preparation procedure exists and is up-to-date
      adp_init t..."
    (procedure "adp_prepare" line 2)
    invoked from within
"adp_prepare "
    (procedure "template::adp_parse" line 30)
    invoked from within
"template::adp_parse [file root [ad_conn file]] {}"
    (procedure "adp_parse_ad_conn_file" line 7)
    invoked from within
"$handler"
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
                $handler
            } ad_script_abort val {
                # do nothing
            }"
    invoked from within
"rp_serve_concrete_file [ad_conn file]"
    (procedure "rp_serve_abstract_file" line 60)
    invoked from within
"rp_serve_abstract_file "$root/$path""
    ("uplevel" body line 2)
    invoked from within
"uplevel $code"
    invoked from within
"ad_try {
    rp_serve_abstract_file "$root/$path"
    set tcl_url2file([ad_conn url]) [ad_conn file]
    set tcl_url2path_info([ad_conn url]) [ad_conn path_inf..."

Collapse
Posted by Jade Rubick on
Project manager is still pretty buggy. I'm cleaning things up right now.

I probably won't get to this until tomorrow.

Collapse
Posted by Jade Rubick on
Hi Odie,

I'm getting exactly the same error you are, so it's not just you. 😊

I've done some substantial amounts of work on project manager in the last few days. I'll be committing soon, after I've fixed this and a few other significant bugs.

I can commit updated code on Monday. Hope that works for you. If not, and you'd like to delve into it yourself, feel free. However, you might want to email me before you fix other errors, because they might be fixed already 😊 This error you're running into right now is one I haven't fixed yet, however.

Collapse
Posted by Odelon Miranda on
Hi, thanks jade, look forward on that fix.

odie

Collapse
Posted by Jade Rubick on
Sorry it's taken so long to upload the code.

I had to add in loop checking for dependencies, and that ended up being a little hairy.

I'd like to wait a couple more days before commiting, because I actually don't have an instance that I can test my upload on. If you don't care, I can upload the code today or tomorrow, but I can't guarantee that it will definitely work, because I'll be hand-editing out custom code, and sometimes that has broken things in the past.

(I'm really looking forward to Arch, although I imagine it won't be for a few years that we all move to it)

Collapse
Posted by Odelon Miranda on
Hi Jade,

Thanks for being there. :D, anyway it fine with me if its still on the process of developement, i can wait and also i can try it now :D, just to see the diff. :).

if you feel that its ok for me to have it now, just give a link where i can get it.

best regards,

Odie

Collapse
Posted by Jade Rubick on
Odelon, project-manager is definitely not release ready at this point, but it will be released within the next few weeks.

I've committed project-manager version 0.8 to CVS. It hasn't been tested very thoroughly, and there are definitely bugs in it, but it should be better for experimenting and getting an idea of how project-manager works. It also hasn't had any optimization at all, so it may be slow.

If you've already installed project-manager, make sure you run the drop script by hand before upgrading to the new project manager

psql -f sql/postgresql/project-manager-drop.sql >& output.txt

Collapse
Posted by Jade Rubick on
Oh, and the bug you posted has been fixed. Thanks!