durusmail: quixote-users: StaticFiles
StaticFiles
2003-08-28
Re: StaticFiles
2003-08-28
2003-08-28
2003-08-29
StaticFiles
Oleg Broytmann
2003-08-28
Hello.

   If a clas instantiate iteslf (or even worse - another class), the name
of the class must be parametrized, not hardcoded. It would take a lot of
time to fix the Python library... let me start from a simpler case :)
   I want to change method __call__ in StaticFile for some (but not all) of
my files. So I made the name of the class a parameter (and overrideable
class attribute). The very StaticDirectory replaced by self.__class__.

Oleg.
--
     Oleg Broytmann            http://phd.pp.ru/            phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.
reply