+ @staticmethod
+ def _register_subclass(cls):
+ """Register this class with its enumeration."""
+ # This would be a classmethod, except that subclasses (e.g.
+ # TranslationPackagingJob) need to be able to override it and call
+ # into it, and there's no syntax to call a base class's version of a
+ # classmethod with the subclass as the first parameter.
I think super(BranchJobDerived, cls)._register_subclass() might work.
[2]
+class BranchMailJobSource(BaseRunnableJobSource):
+ """Source of jobs that send mail about branches."""
+
+ memory_limit = 2 * (1024 ** 3)
Looks good.
[1]
+ @staticmethod subclass( cls): agingJob) need to be able to override it and call
+ def _register_
+ """Register this class with its enumeration."""
+ # This would be a classmethod, except that subclasses (e.g.
+ # TranslationPack
+ # into it, and there's no syntax to call a base class's version of a
+ # classmethod with the subclass as the first parameter.
I think super(BranchJob Derived, cls)._register_ subclass( ) might work.
[2]
+class BranchMailJobSo urce(BaseRunnab leJobSource) :
+ """Source of jobs that send mail about branches."""
+
+ memory_limit = 2 * (1024 ** 3)
2GB is quite a high limit. Is that correct?