| <n...@paragon.no> |
el's
- class name to parcelClass. For example:
-
- parcelClass = 'CalendarFile.CalendarClass'
-
- CalendarFile is the python file (without the .py extension) that
- contains the class CalendarClass contained in the file which is
- the parcel class.
-
- For examples, look in the parcel directory.
-
- The method now takes two directory arguments, baseDir and relDir.
- baseDir should be a directory containing parcel subdirectories,
- while relDir is only used when recursing through directories below
- baseDir.
- """
- path = os.path.join(baseDir, relDir)
- assert (os.path.exists (path) and os.path.isdir(path))
-
- if (relDir and \
- (os.path.exists(os.path.join (path, "__init__.py")) or \
- os.path.exists(os.path.join (path, "__init__.pyc")) or \
- os.path.exists(os.path.join (path, "__init__.pyo"))) \
- ):
- importArgument = relDir.replace (os.sep, '.')
- """
- Import the parcel, which should define parcelClass.
-
- If you get an error like: Import can't find module,
- or can't find name in module: No module named XYZ.XYZ
- on the following statement, you probablyf startTLS(self, ctx):
+ assert not self.TLS
+ self.stopReading()
+ self.stopWriting()
+- self._startTLS()
+- self.socket = SSL.Connection(ctx.getContext(), self.soc-25foundation.org> |
Sat, 31 Mar, 03:27 |