Forum OpenACS Development: Re: AMS pkg NULL value

Collapse
6: Re: AMS pkg NULL value (response to 5)
Posted by Iuri Sampaio on
Hi MAlte,
good news! Somehow i fixed the error. The fileds were inserted using the same proc i was using before, but i changed the list_name to extended_fields. Somehow it worked!

ad_form -extend -name user_info -form [ams::ad_form::elements -package_key "acs-subsite" -object_type "person" -list_name "extra_info"]

ams::ad_form::save -package_key "acs-subsite" -object_type "person" -list_name "extra_info" -form_name "user_info" -object_id $user_id

Then, I changed the api ams::values -package_key ...
to
ams::ad_form::values -package_key "acs-subsite" -object_id $user_id -object_type "person" -list_name "extra_info"

However i did update the pkgs ams and postal-address and the NULL sql error's still there.
are you sure the version commited is ok??

Collapse
7: Re: AMS pkg NULL value (response to 6)
Posted by Malte Sussdorff on
Hi Iuri, i am pretty sure it works. Just look in the postgresql/upgrade directory. If there is nothing there, make a new checkout. You should see this file:
http://cvs.openacs.org/cvs/openacs-4/packages/postal-address/sql/postgresql/upgrade/
Collapse
8: Re: AMS pkg NULL value (response to 7)
Posted by Iuri Sampaio on
hi Malte,

I found the file, i just ran
psql -f conaje/packages/postal-address/sql/postgresql/upgrade/upgrade-0.2d1-0.2d2.sql conaje

and it worked out. I can leave street blank and it doesn;t return any error.

Although the file were there, i didn't see on the GUI (browser) the option to upgrade it.

I was wondering what makes some packages such as ams pkg shows up at the upgrade pkg GUI section.

So how does the kernel recognize the ones to upgrade.

I know the wise developer has to trust in the code instead of the eyes. :)
So i went to the server and both pgks have the same hierarchy of directories.