Forum OpenACS Development: Re: Using ad_conn in and outside HTTP connections

Collapse
Posted by Tom Jackson on

Library code should not use ad_conn unless it deals with something requiring a conn. Just because the data is in ad_conn doesn't mean that is the place to get it in every circumstance. Maybe we should identify things that shouldn't be in ad_conn and remove them if that is the problem, or provide built in workarounds inside ad_conn so it can find some data not related to a conn. But I have seem some library code using ad_conn for no good reason. The Calendar package has that problem, or had it.