[Zope3-dev] service names

Marius Gedminas mgedmin@codeworks.lt
Tue, 11 Feb 2003 09:23:21 +0200


On Mon, Feb 10, 2003 at 04:03:09PM -0500, Gary Poster wrote:
> Adapters = 'Adapters'
> Interfaces = 'Interfaces'
> Utilities = 'Utilities'
> Skins = 'Skins'
> Views = 'Views'
> ResourceService = 'Resources'
> Factories = 'Factories'
> 
> HubIds = 'HubIds'
> Events = 'Events'
> Subscription = 'Subscription'
> ErrorReports = 'ErrorReportingService'
> Roles = 'Roles'
> Permissions = 'Permissions'
> Authentication = 'Authentication'

I'd like to see the constant name match its value (i.e. either
ErrorReports = 'ErrorReports' or ErrorReportingService =
'ErrorReportingService'; the same applies to ResourceService/Resources).
Is there a reason to have two different names for the same thing in
different contexts?  I understand that no one is supposed to use string
literals any more, but if the names are different then fixing such
problems is not just a simple matter of dropping the quotes and adding
an import.

Marius Gedminas
-- 
Codeworks is available for Zope consulting -- http://www.codeworks.lt/