Bugzilla::*.pm and Bugzilla.pm

Christian Robottom Reis kiko at async.com.br
Mon Aug 16 20:28:12 UTC 2004

On Sun, Aug 08, 2004 at 12:22:12PM +1000, Bradley Baetz wrote:
> On Sat, Aug 07, 2004 at 03:41:13PM -0300, Christian Robottom Reis wrote:
> > > >    Should Bugzilla::Bug.pm be allowed to depend on Bugzilla.pm?
> > > 
> > > Why shouldn't it be?
> > 
> > Because Bugzilla.pm is (AFAIK) a support module for CGI files, and if we
> > want Bugzilla::* to be reusable for other situations apart from CGI
> > files, depending on Bugzilla.pm would be "bad".
> Not really. Its all heavily CGI-based at the moment because thats all we 
> have available.

Have you had a look at what Bugzilla.pm does currently? It basically
offers a convenient set of wrapper functions around Template, CGI and
Login functionality -- which is all very CGI-specific (even in a
mod_perl context). If we remove that from Bugzilla.pm, well, not much
would be left.

Maybe Bugzilla->user should just forward its request to Bugzilla::Auth,
which would store the currently active User object. That way
Bugzilla::Bug could just grab that from Bugzilla::Auth without having to
worry about circular dependencies.

Take care,
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3361 2331

More information about the developers mailing list