[freeside-devel] exporttype2svcdb vs. export_info
ivan
ivan at 420.am
Fri Jun 14 18:08:22 PDT 2002
On Thu, May 30, 2002 at 06:05:07PM -0700, Mark Wells wrote:
> The FS::part_export::exporttype2svcdb function breaks on exporttypes that
> handle more than one svcdb.
Hmm, I'm not sure export types _should_ be handling more than one svcdb.
What is the advantage over making separate exports for the each svcdb it
would apply to?
Notwithstanding that, I agree with your patch.
FS::part_export::exporttype2svcdb can be removed.
> It's also strange in that it's only used in one place (edit/part_svc.cgi),
> to produce a list of all exports matching a particular svcdb. Isn't
> export_info better suited for that? (See my latest patch.) Aside from
> not imposing a one-svcdb-per-exporttype restriction, it follows the data
> structure better (svcdb is the top level in the hierarchy, then
> exporttype, then options).
>
> If we must keep exporttype2svcdb, I suggest that it return a list of _all_
> matching svcdbs for the given exporttype.
>
--
_ivan
More information about the freeside-devel
mailing list