Hi,

I'm trying to figure out how to reuse ConfigurableForServerSidePath to read
a configuration file. In the doc string for this class, there are a couple
of sentences I don't quite understand:

1. "This is a version of Configurable that provides a customized setting()
method for classes which have a serverSidePath() method."

2. "In other words, relative filenames and directory names are expanded
with the location of the object, NOT the current directory."


What I don't understand is:

A. What is the significance of the value of serverSidePath(), because I see
it is defined and redefined differently in different Webware classes. Does
the value represent the absolute path to the directory that contains the
class which invokes this method?

B. What does sentence 2 above mean? What object? The one that is
instantiated, or the class that contains the object definition?

C. How is ConfigurableForServerSidePath supposed to be used? If I make my
SitePage a subclass of (Page, ConfigurableForServerSidePath), and I try to
retrieve settings, I get a self._serverSidePath attribute not defined
error. So, the constructor for my SitePage obviously needs to set self.
_serverSidePath to some value first, but what is the right value, and
shouldn't this default value properly be in the constructor for either
Configurable or ConfigurableForServerSidePath?

...Edmund.


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to