Forum OpenACS Development: Re: contraint: one object type per package

Collapse
Posted by Dave Bauer on
Use the object_type as the package_name.

That is how the function names are contructed

ie:

{object_type}__function is the same as
{package_name}__function

Check out some of the existing object types to see.

It is totally unrelated to the OpenACS package name/package_key unless by coincidence the package_key is the same as the object_type.

Collapse
Posted by Iuri Sampaio on
Thanks Dave,
I will see what I can do to use object_type as the package name. Plus, I will have a look and follow the examples.

By the way, I buildt this datamodel looking at acs-subsite and acs-kernel SQL's files.

Mainly, it was the datamodel for persons, parties and acs_objects

Furthermore, I am reading docs and I found a broken link that would describe to me more concepts about pl/sql packages. Here it is bellow

At page https://openacs.org/doc/apm-design.html

in the API block there is the paragraph:

Authoring a Package

Full instructions on how to prepare an OpenACS package are available in Packages. The API here can be invoked manually by a package's data model creation script, but need not to be used. This API is part of the APM PL/SQL package.

The broken link is

https://openacs.org/api-doc/plsql-subprogram-one?type=PACKAGE&name=APM

Cheers,