joey: thuban/Extensions/wms capabilities.py,1.7,1.8
joey at infodrom.org
Thu Apr 1 17:33:42 CEST 2004
Bernhard Herzog wrote:
> > cvs at intevation.de wrote:
> >> @@ -126,6 +133,10 @@
> >> self.capabilities = self.getCapabilities(resource, self.wmsVersion)
> >> if not self.capabilities:
> >> self.wmsVersion = None
> >> + self.errorMsg \
> >> + = _("Resource '%s' "
> >> + + "does support neither WMS version 1.1 nor 1.0") \
> >> + % resource
> It's better written as
> self.errorMsg \
> = _("Resource '%s' "
> "does support neither WMS version 1.1 nor 1.0") \
> % resource
> I.e. without the +. Python automatically concatenates string literals,
> pretty much like C and xgettext supports it too.
Ah, great! Didn't know that it's valid without the +, but I was
tempted (not enough, though) to just try it. Will change it.
It's practically impossible to look at a penguin and feel angry.
More information about the Thuban-devel